Changeset 557
- Timestamp:
- 09/15/06 15:00:25 (2 years ago)
- Files:
-
- devel/lib/elgglib.php (modified) (1 diff)
- devel/lib/templates.php (modified) (3 diffs)
- devel/profile/profile.class.php (modified) (1 diff)
- devel/units/communities/user_info_menu_text.php (modified) (1 diff)
- devel/units/files/files_actions.php (modified) (1 diff)
- devel/units/files/folder_edit.php (modified) (1 diff)
- devel/units/friends/user_info_menu_text.php (modified) (1 diff)
- devel/units/icons/function_add_icons.php (modified) (1 diff)
- devel/units/icons/function_get_icon.php (modified) (1 diff)
- devel/units/magpie/function_actions.php (modified) (1 diff)
- devel/units/profile/function_display_name.php (modified) (1 diff)
- devel/units/rpc/lib/class_weblog.php (modified) (3 diffs)
- devel/units/templates/template_draw.php (modified) (1 diff)
- devel/units/templates/template_draw2.php (modified) (1 diff)
- devel/units/templates/templates_edit.php (modified) (1 diff)
- devel/units/templates/templates_view.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/elgglib.php
r556 r557 4101 4101 } else if (in_array($userid, $nonadmins)) { 4102 4102 return false; 4103 } else if ( record_exists('user_flags','flag','admin','user_id',$userid,'value','1')) {4103 } else if (user_flag_get('admin', $userid)) { 4104 4104 $admins[] = $userid; 4105 4105 return true; devel/lib/templates.php
r556 r557 677 677 } else { 678 678 // if (!isset($_SESSION['template_id_cache'][$page_owner])) { 679 if (!$template_id = get_field('users','template_id','ident',$page_owner)) {679 if (!$template_id = user_info('template_id',$page_owner)) { 680 680 $template_id = -1; 681 681 } … … 802 802 if (!isset($parameter)) { 803 803 // Get template details 804 if (!$template_id = get_field('users','template_id','ident',$USER->ident)) {804 if (!$template_id = user_info('template_id',$USER->ident)) { 805 805 $template_id = -1; 806 806 } … … 996 996 global $USER; 997 997 998 $user_template = get_field('users','template_id','ident',$USER->ident);998 $user_template = user_info('template_id',$USER->ident); 999 999 $sitename = sitename; 1000 1000 $title = gettext("Select / Create / Edit Themes"); // gettext variable devel/profile/profile.class.php
r523 r557 69 69 70 70 $name_cache[$this->id]->created = time(); 71 $name_cache[$this->id]->data = htmlspecialchars( get_field('users','name','ident',$this->id), ENT_COMPAT, 'utf-8');71 $name_cache[$this->id]->data = htmlspecialchars(user_info('name',$this->id), ENT_COMPAT, 'utf-8'); 72 72 73 73 } devel/units/communities/user_info_menu_text.php
r339 r557 14 14 array($USER->ident,$user_id)); 15 15 if ($result == 0) { 16 $moderation = get_field('users','moderation','ident',$user_id);16 $moderation = user_info('moderation',$user_id); 17 17 switch($moderation) { 18 18 case "no": $run_result = "<a href=\"".url."_communities/index.php?friends_name=".$_SESSION['username']."&action=friend&friend_id=$user_id\" onclick=\"return confirm('". gettext("Are you sure you want to join this community?") ."')\">" . gettext("Click here to join this community."). "</a>"; devel/units/files/files_actions.php
r532 r557 52 52 require_once($CFG->dirroot.'lib/uploadlib.php'); 53 53 $total_quota = get_field_sql('SELECT sum(size) FROM '.$CFG->prefix.'files WHERE owner = ?',array($page_owner)); 54 $max_quota = get_field('users','file_quota','ident',$page_owner);54 $max_quota = user_info('file_quota',$page_owner); 55 55 $maxbytes = $max_quota - $total_quota; 56 56 $um = new upload_manager('new_file',false,true,false,$maxbytes,true); devel/units/files/folder_edit.php
r447 r557 174 174 $usedquota = get_field_sql('SELECT sum(size) FROM '.$CFG->prefix.'files WHERE owner = ?',array($page_owner)); 175 175 176 // $totalquota = get_field('users','file_quota','ident',$USER->ident);177 $totalquota = get_field('users','file_quota','ident',$page_owner);176 // $totalquota = user_info('file_quota',$USER->ident); 177 $totalquota = user_info('file_quota',$page_owner); 178 178 if ($page_owner == $_SESSION['userid']) { 179 179 $body .= sprintf(gettext("You have used %s Mb of a total %s Mb."),round(($usedquota / 1000000),4),round(($totalquota / 1000000),4)); devel/units/friends/user_info_menu_text.php
r339 r557 13 13 JOIN '.$CFG->prefix.'users u ON u.ident = f.friend 14 14 WHERE f.owner = ? AND f.friend = ?',array($USER->ident,$user_id))) { 15 $moderation = get_field('users','moderation','ident',$user_id);15 $moderation = user_info('moderation',$user_id); 16 16 switch ($moderation) { 17 17 case 'no': devel/units/icons/function_add_icons.php
r269 r557 6 6 $numicons = count_records('icons','owner',$page_owner); 7 7 if ($page_owner != $USER->ident) { 8 $iconquota = get_field('users','icon_quota','ident',$page_owner);8 $iconquota = user_info('icon_quota',$page_owner); 9 9 } else { 10 10 $iconquota = $USER->icon_quota; devel/units/icons/function_get_icon.php
r287 r557 11 11 12 12 $icon_cache[$user_id]->created = time(); 13 $icon_cache[$user_id]->data = get_field('users','icon','ident',$user_id);13 $icon_cache[$user_id]->data = user_info('icon',$user_id); 14 14 15 15 } devel/units/magpie/function_actions.php
r337 r557 6 6 if (logged_on && run("permissions:check", "profile")) { 7 7 if ($page_owner != $_SESSION['userid']) { 8 $page_username = get_field('users','username','ident',$page_owner);8 $page_username = user_info('username',$page_owner); 9 9 } else { 10 10 $page_username = $_SESSION['username']; devel/units/profile/function_display_name.php
r458 r557 22 22 23 23 $name_cache[$user_id]->created = time(); 24 $name_cache[$user_id]->data = htmlspecialchars( get_field('users','name','ident',$user_id), ENT_COMPAT, 'utf-8');24 $name_cache[$user_id]->data = htmlspecialchars(user_info('name',$user_id), ENT_COMPAT, 'utf-8'); 25 25 26 26 } devel/units/rpc/lib/class_weblog.php
r269 r557 48 48 elseif (is_string($user_id)) 49 49 { 50 $this->user_id = get_field('users','ident','username',$user_id);50 $this->user_id = user_info_username('ident',$user_id); 51 51 } 52 52 … … 57 57 elseif (is_string($blog_id)) 58 58 { 59 $this->ident = get_field('users','ident','username',$blog_id);59 $this->ident = user_info_username('ident',$blog_id); 60 60 } 61 61 … … 80 80 81 81 // Get the owner 82 $this->owner = get_field('users','owner','ident',$this->ident);82 $this->owner = user_info('owner',$this->ident); 83 83 84 84 // Inject an SQL restriction if the user is not owner devel/units/templates/template_draw.php
r454 r557 21 21 } else { 22 22 // if (!isset($_SESSION['template_id_cache'][$page_owner])) { 23 if (!$template_id = get_field('users','template_id','ident',$page_owner)) {23 if (!$template_id = user_info('template_id',$page_owner)) { 24 24 $template_id = -1; 25 25 } devel/units/templates/template_draw2.php
r454 r557 24 24 } else { 25 25 // if (!isset($_SESSION['template_id_cache'][$page_owner])) { 26 if (!$template_id = get_field('users','template_id','ident',$page_owner)) {26 if (!$template_id = user_info('template_id',$page_owner)) { 27 27 $template_id = -1; 28 28 } devel/units/templates/templates_edit.php
r269 r557 6 6 if (!isset($parameter)) { 7 7 // Get template details 8 if (!$template_id = get_field('users','template_id','ident',$USER->ident)) {8 if (!$template_id = user_info('template_id',$USER->ident)) { 9 9 $template_id = -1; 10 10 } devel/units/templates/templates_view.php
r515 r557 1 1 <?php 2 2 global $USER; 3 $user_template = get_field('users','template_id','ident',$USER->ident);3 $user_template = user_info('template_id', $USER->ident); 4 4 $sitename = sitename; 5 5 $title = gettext("Select / Create / Edit Themes"); // gettext variable
