1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-15 22:26:32 +02:00

permission changes

git-svn-id: file:///svn/phpbb/trunk@2857 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-08-15 16:02:48 +00:00
parent 807f003c99
commit 832c29d3f5

View File

@ -31,7 +31,7 @@ include($phpbb_root_path . 'common.'.$phpEx);
// Start session management // Start session management
// //
$userdata = $session->start($update); $userdata = $session->start($update);
$acl = new acl('admin', $userdata); $acl = new acl($userdata);
// //
// End session management // End session management
// //
@ -94,7 +94,7 @@ function page_header($sub_title, $meta = '', $table_html = true)
<?php <?php
echo $meta; echo $meta;
?> ?>
<style type="text/css"> <style type="text/css">
<!-- <!--
@ -234,10 +234,10 @@ function add_admin_log()
$arguments = func_get_args(); $arguments = func_get_args();
$action = array_shift($arguments); $action = array_shift($arguments);
$data = ( !sizeof($arguments) ) ? '' : addslashes(serialize($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')"; VALUES (" . $userdata['user_id'] . ", '$user_ip', " . time() . ", '$action', '$data')";
$db->sql_query($sql); $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" : ''; $forum_sql = ( $mode == 'mod' && $forum_id ) ? "AND l.forum_id = $forum_id" : '';
$limit_sql = ( $limit ) ? ( ( $offset ) ? "LIMIT $offset, $limit" : "LIMIT $limit" ) : ''; $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 $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 FROM $table_sql l, " . USERS_TABLE . " u
WHERE u.user_id = l.user_id WHERE u.user_id = l.user_id
AND l.log_time >= $limit_days AND l.log_time >= $limit_days
$forum_sql $forum_sql
ORDER BY $sort_by ORDER BY $sort_by
$limit_sql"; $limit_sql";
$result = $db->sql_query($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); $db->sql_freeresult($result);
$sql = "SELECT COUNT(*) AS total_entries $sql = "SELECT COUNT(*) AS total_entries
FROM $table_sql l FROM $table_sql l
WHERE l.log_time >= $limit_days WHERE l.log_time >= $limit_days
$forum_sql"; $forum_sql";
$result = $db->sql_query($sql); $result = $db->sql_query($sql);