diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-15 16:02:48 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-08-15 16:02:48 +0000 |
commit | 832c29d3f5bdffbc84b9b9d812bf2c89da06329c (patch) | |
tree | f669e8f35198bff32192104ea18e3e5f638c99af /phpBB/admin | |
parent | 807f003c999b17a758328c0c300228a8cbea23dd (diff) | |
download | forums-832c29d3f5bdffbc84b9b9d812bf2c89da06329c.tar forums-832c29d3f5bdffbc84b9b9d812bf2c89da06329c.tar.gz forums-832c29d3f5bdffbc84b9b9d812bf2c89da06329c.tar.bz2 forums-832c29d3f5bdffbc84b9b9d812bf2c89da06329c.tar.xz forums-832c29d3f5bdffbc84b9b9d812bf2c89da06329c.zip |
permission changes
git-svn-id: file:///svn/phpbb/trunk@2857 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r-- | phpBB/admin/pagestart.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/phpBB/admin/pagestart.php b/phpBB/admin/pagestart.php index ccf84778fd..4a02f21154 100644 --- a/phpBB/admin/pagestart.php +++ b/phpBB/admin/pagestart.php @@ -31,7 +31,7 @@ include($phpbb_root_path . 'common.'.$phpEx); // Start session management // $userdata = $session->start($update); -$acl = new acl('admin', $userdata); +$acl = new acl($userdata); // // End session management // @@ -94,7 +94,7 @@ function page_header($sub_title, $meta = '', $table_html = true) <?php echo $meta; - + ?> <style type="text/css"> <!-- @@ -234,10 +234,10 @@ function add_admin_log() $arguments = func_get_args(); - $action = array_shift($arguments); + $action = array_shift($arguments); $data = ( !sizeof($arguments) ) ? '' : addslashes(serialize($arguments)); - $sql = "INSERT INTO " . LOG_ADMIN_TABLE . " (user_id, log_ip, log_time, log_operation, log_data) + $sql = "INSERT INTO " . LOG_ADMIN_TABLE . " (user_id, log_ip, log_time, log_operation, log_data) VALUES (" . $userdata['user_id'] . ", '$user_ip', " . time() . ", '$action', '$data')"; $db->sql_query($sql); @@ -252,12 +252,12 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id $forum_sql = ( $mode == 'mod' && $forum_id ) ? "AND l.forum_id = $forum_id" : ''; $limit_sql = ( $limit ) ? ( ( $offset ) ? "LIMIT $offset, $limit" : "LIMIT $limit" ) : ''; - $sql = "SELECT l.log_id, l.user_id, l.log_ip, l.log_time, l.log_operation, l.log_data, u.username - FROM $table_sql l, " . USERS_TABLE . " u - WHERE u.user_id = l.user_id - AND l.log_time >= $limit_days - $forum_sql - ORDER BY $sort_by + $sql = "SELECT l.log_id, l.user_id, l.log_ip, l.log_time, l.log_operation, l.log_data, u.username + FROM $table_sql l, " . USERS_TABLE . " u + WHERE u.user_id = l.user_id + AND l.log_time >= $limit_days + $forum_sql + ORDER BY $sort_by $limit_sql"; $result = $db->sql_query($sql); @@ -291,8 +291,8 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id $db->sql_freeresult($result); - $sql = "SELECT COUNT(*) AS total_entries - FROM $table_sql l + $sql = "SELECT COUNT(*) AS total_entries + FROM $table_sql l WHERE l.log_time >= $limit_days $forum_sql"; $result = $db->sql_query($sql); |