Revision 319
Added by stefan over 18 years ago
settings.php | ||
---|---|---|
59 | 59 |
$results_array = $results->fetchRow(); |
60 | 60 |
|
61 | 61 |
// Get display name of person who last modified the page |
62 |
$query_user = "SELECT username,display_name FROM ".TABLE_PREFIX."users WHERE user_id = '".$results_array['modified_by']."'"; |
|
63 |
$get_user = $database->query($query_user); |
|
64 |
if($get_user->numRows() != 0) { |
|
65 |
$user = $get_user->fetchRow(); |
|
66 |
} else { |
|
67 |
$user['display_name'] = 'Unknown'; |
|
68 |
$user['username'] = 'unknown'; |
|
69 |
} |
|
62 |
$user=$admin->get_user_details($results_array['modified_by']); |
|
63 |
|
|
70 | 64 |
// Convert the unix ts for modified_when to human a readable form |
71 | 65 |
if($results_array['modified_when'] != 0) { |
72 | 66 |
$modified_ts = gmdate(TIME_FORMAT.', '.DATE_FORMAT, $results_array['modified_when']+TIMEZONE); |
Also available in: Unified diff
Added permission check to admin/pages/add.php to fix ticket #68. Also used get_page_permission, get_user_details, get_page_details in some places.