Changeset 147 for trunk/services/admins.php
- Timestamp:
- Jun 5, 2006 1:31:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/admins.php
r143 r147 202 202 } 203 203 204 if (getFormData('user_type') == 'root' && 'root' != $auth->get Val('user_type')) {204 if (getFormData('user_type') == 'root' && 'root' != $auth->get('user_type')) { 205 205 $fv->addError('user_type', sprintf(_("You do not have clearance to create a user with root privileges."), null)); 206 206 } … … 343 343 $qid = $db->query("SELECT COUNT(*) from admin_tbl"); 344 344 list($num_admins) = mysql_fetch_row($qid); 345 if ('root' == $user_type && 'root' != $auth->get Val('user_type')) {345 if ('root' == $user_type && 'root' != $auth->get('user_type')) { 346 346 // Only root users can delete root users! 347 347 $app->raiseMsg(_("You do not have clearance to delete a root administrator."), MSG_NOTICE, __FILE__, __LINE__); … … 349 349 // There must always be at least one admnistrator! 350 350 $app->raiseMsg(_("You cannot delete the only administrator in the database. There must be at least one to log in and create other users."), MSG_NOTICE, __FILE__, __LINE__); 351 } else if ($auth->get Val('user_id') == $id) {351 } else if ($auth->get('user_id') == $id) { 352 352 // Do not delete yourself! 353 353 $app->raiseMsg(_("You cannot delete yourself."), MSG_NOTICE, __FILE__, __LINE__); … … 388 388 '" . $db->escapeString($frm['email']) . "', 389 389 '" . $db->escapeString($frm['user_type']) . "', 390 '" . $db->escapeString($auth->get Val('user_id')) . "',390 '" . $db->escapeString($auth->get('user_id')) . "', 391 391 NOW() 392 392 ) … … 435 435 email = '" . $db->escapeString($frm['email']) . "', 436 436 user_type = '" . $db->escapeString($frm['user_type']) . "', 437 modified_by_user_id = '" . $db->escapeString($auth->get Val('user_id')) . "',437 modified_by_user_id = '" . $db->escapeString($auth->get('user_id')) . "', 438 438 modified_datetime = NOW() 439 439 WHERE admin_id = '" . $db->escapeString($frm['admin_id']) . "'
Note: See TracChangeset
for help on using the changeset viewer.