diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-01-29 17:45:34 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-01-29 17:45:34 +0000 |
| commit | bb939454231a9281b5dbb3242606c5008c904ed6 (patch) | |
| tree | f0652a64b53cbae93861f87c55988f08998dea76 /phpBB/admin/admin_viewlogs.php | |
| parent | bcd4581f7762de33512833cff82638831d3e68e5 (diff) | |
| download | forums-bb939454231a9281b5dbb3242606c5008c904ed6.tar forums-bb939454231a9281b5dbb3242606c5008c904ed6.tar.gz forums-bb939454231a9281b5dbb3242606c5008c904ed6.tar.bz2 forums-bb939454231a9281b5dbb3242606c5008c904ed6.tar.xz forums-bb939454231a9281b5dbb3242606c5008c904ed6.zip | |
Move logging functions, change name, add mode + lang var case changes
git-svn-id: file:///svn/phpbb/trunk@3401 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_viewlogs.php')
| -rw-r--r-- | phpBB/admin/admin_viewlogs.php | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/phpBB/admin/admin_viewlogs.php b/phpBB/admin/admin_viewlogs.php index a31f27efed..6969233200 100644 --- a/phpBB/admin/admin_viewlogs.php +++ b/phpBB/admin/admin_viewlogs.php @@ -38,7 +38,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Do we have styles admin permissions? if (!$auth->acl_get('a_general')) @@ -73,7 +72,7 @@ if ((isset($_POST['delmarked']) || isset($_POST['delall'])) && $auth->acl_get('a $where_sql"; $db->sql_query($sql); - add_admin_log('log_' . $mode . '_clear'); + add_log('admin', 'log_' . $mode . '_clear'); } // Sorting ... this could become a function @@ -102,7 +101,7 @@ else } $previous_days = array(0 => $user->lang['All_Entries'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 364 => $user->lang['1_YEAR']); -$sort_by_text = array('u' => $user->lang['Sort_Username'], 't' => $user->lang['Sort_date'], 'i' => $user->lang['Sort_ip'], 'o' => $user->lang['Sort_action']); +$sort_by_text = array('u' => $user->lang['SORT_USERNAME'], 't' => $user->lang['SORT_DATE'], 'i' => $user->lang['SORT_IP'], 'o' => $user->lang['SORT_ACTION']); $sort_by = array('u' => 'l.user_id', 't' => 'l.log_time', 'i' => 'l.log_ip', 'o' => 'l.log_operation'); $sort_day_options = ''; @@ -119,7 +118,7 @@ foreach ($sort_by_text as $key => $text) $sort_key_options .= '<option value="' . $key . '"' . $selected . '>' . $text . '</option>'; } -$sort_order_options = ($sort_dir == 'a') ? '<option value="a" selected="selected">' . $user->lang['Sort_Ascending'] . '</option><option value="d">' . $user->lang['Sort_Descending'] . '</option>' : '<option value="a">' . $user->lang['Sort_Ascending'] . '</option><option value="d" selected="selected">' . $user->lang['Sort_Descending'] . '</option>'; +$sort_order_options = ($sort_dir == 'a') ? '<option value="a" selected="selected">' . $user->lang['SORT_ASCENDING'] . '</option><option value="d">' . $user->lang['SORT_DESCENDING'] . '</option>' : '<option value="a">' . $user->lang['SORT_ASCENDING'] . '</option><option value="d" selected="selected">' . $user->lang['SORT_DESCENDING'] . '</option>'; $sort_sql = $sort_by[$sort_key] . ' ' . (($sort_dir == 'd') ? 'DESC' : 'ASC'); @@ -138,13 +137,13 @@ page_header($l_title); // Define forum list if we're looking @ mod logs if ($mode == 'mod') { -//include($phpbb_root_path . '/includes/functions_admin.'.$phpEx); - $forum_box = make_forum_select($forum_id); + + $forum_box = '<option value="0">' . $user->lang['ALL_FORUMS'] . '</option>' . make_forum_select($forum_id, false, false); ?> <table width="100%" cellpadding="1" cellspacing="1" border="0"> <tr> - <td align="right"><?php echo $user->lang['SELECT_FORUM']; ?>: <select name="f" onChange="if(this.options[this.selectedIndex].value != -1){ this.form.submit() }"><?php echo $forum_box; ?></select> <input class="liteoption" type="submit" value="<?php echo $user->lang['GO']; ?>" /></td> + <td align="right"><?php echo $user->lang['SELECT_FORUM']; ?>: <select name="f" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit() }"><?php echo $forum_box; ?></select> <input class="liteoption" type="submit" value="<?php echo $user->lang['GO']; ?>" /></td> </tr> </table> <?php @@ -155,14 +154,14 @@ if ($mode == 'mod') <table class="bg" width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> - <td class="cat" colspan="5" height="28" align="center"><span class="gensmall"><?php echo $user->lang['Display_log']; ?>: <select name="sort_days"><?php echo $sort_day_options; ?></select> <?php echo $user->lang['Sort_by']; ?> <select name="sort_key"><?php echo $sort_key_options; ?></select> <select name="sort_dir"><?php echo $sort_order_options; ?></select> <input class="liteoption" type="submit" value="<?php echo $user->lang['GO']; ?>" name="sort" /></span></td> + <td class="cat" colspan="5" height="28" align="center"><span class="gensmall"><?php echo $user->lang['DISPLAY_LOG']; ?>: <select name="sort_days"><?php echo $sort_day_options; ?></select> <?php echo $user->lang['SORT_BY']; ?> <select name="sort_key"><?php echo $sort_key_options; ?></select> <select name="sort_dir"><?php echo $sort_order_options; ?></select> <input class="liteoption" type="submit" value="<?php echo $user->lang['GO']; ?>" name="sort" /></span></td> </tr> <tr> - <th width="15%" height="25" nowrap="nowrap"><?php echo $user->lang['Username']; ?></th> + <th width="15%" height="25" nowrap="nowrap"><?php echo $user->lang['USERNAME']; ?></th> <th width="15%" nowrap="nowrap"><?php echo $user->lang['IP']; ?></th> - <th width="20%" nowrap="nowrap"><?php echo $user->lang['Time']; ?></th> - <th width="45%" nowrap="nowrap"><?php echo $user->lang['Action']; ?></th> - <th nowrap="nowrap"><?php echo $user->lang['Mark']; ?></th> + <th width="20%" nowrap="nowrap"><?php echo $user->lang['TIME']; ?></th> + <th width="45%" nowrap="nowrap"><?php echo $user->lang['ACTION']; ?></th> + <th nowrap="nowrap"><?php echo $user->lang['MARK']; ?></th> </tr> <?php @@ -196,7 +195,7 @@ if ($log_count) ?> <tr> - <td class="cat" colspan="5" height="28" align="right"><input class="liteoption" type="submit" name="delmarked" value="<?php echo $user->lang['Delete_marked']; ?>" /> <input class="liteoption" type="submit" name="delall" value="<?php echo $user->lang['Delete_all']; ?>" /> </td> + <td class="cat" colspan="5" height="28" align="right"><input class="liteoption" type="submit" name="delmarked" value="<?php echo $user->lang['DELETE_MARKED']; ?>" /> <input class="liteoption" type="submit" name="delall" value="<?php echo $user->lang['DELETE_ALL']; ?>" /> </td> </tr> <?php @@ -206,7 +205,7 @@ else { ?> <tr> - <td class="row1" colspan="5" align="center" nowrap="nowrap"><?php echo $user->lang['No_entries']; ?></td> + <td class="row1" colspan="5" align="center" nowrap="nowrap"><?php echo $user->lang['NO_ENTRIES']; ?></td> </tr> <?php @@ -224,7 +223,7 @@ else { -?><b><span class="gensmall"><a href="javascript:marklist(true);" class="gensmall"><?php echo $user->lang['Mark_all']; ?></a> :: <a href="javascript:marklist(false);" class="gensmall"><?php echo $user->lang['Unmark_all']; ?></a></span></b> <br /><br /><?php +?><b><span class="gensmall"><a href="javascript:marklist(true);" class="gensmall"><?php echo $user->lang['MARK_ALL']; ?></a> :: <a href="javascript:marklist(false);" class="gensmall"><?php echo $user->lang['UNMARK_ALL']; ?></a></span></b> <br /><br /><?php } |
