query("SELECT u.CustomPermissions FROM users_main AS u WHERE u.ID='$UserID'"); list($Customs)=$DB->next_record(MYSQLI_NUM, false); $Defaults = get_permissions_for_user($UserID, array()); $Delta=array(); if (isset($_POST['action'])) { authorize(); foreach ($PermissionsArray as $Perm => $Explaination) { $Setting = (isset($_POST['perm_'.$Perm]))?1:0; $Default = (isset($Defaults[$Perm]))?1:0; if ($Setting != $Default) { $Delta[$Perm] = $Setting; } } if (!is_number($_POST['maxcollages']) && !empty($_POST['maxcollages'])) { error("Please enter a valid number of extra personal collages"); } $Delta['MaxCollages'] = $_POST['maxcollages']; $Cache->begin_transaction('user_info_heavy_'.$UserID); $Cache->update_row(false, array('CustomPermissions' => $Delta)); $Cache->commit_transaction(0); $DB->query("UPDATE users_main SET CustomPermissions='".db_string(serialize($Delta))."' WHERE ID='$UserID'"); } elseif (!empty($Customs)) { $Delta = unserialize($Customs); } $Permissions = array_merge($Defaults,$Delta); $MaxCollages = $Customs['MaxCollages'] + $Delta['MaxCollages']; function display_perm($Key,$Title) { global $Defaults, $Permissions; $Perm=''.$Title.'
'; echo $Perm; } show_header($Username.' > Permissions'); ?>

> Permissions

Before using permissions, please understand that it allows you to both add and remove access to specific features. If you think that to add access to a feature, you need to uncheck everything else, YOU ARE WRONG. The checkmarks on the left, which are grayed out, are the standard permissions granted by their class (and donor/artist status), any changes you make to the right side will overwrite this. It's not complicated, and if you screw up, click the defaults link at the top. It will reset the user to their respective features granted by class, then you can check or uncheck the one or two things you want to change. DO NOT UNCHECK EVERYTHING. If you need further clarification, ask A9 before using this tool.

Extra personal collages