Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: adminlogs.php 2148 2006-08-27 04:10:33Z Tikitiki $
| * $Id: adminlogs.php 3496 2007-11-18 19:57:50Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 32 | Zeile 32 |
---|
if($mybb->input['action'] == "do_prune") {
|
if($mybb->input['action'] == "do_prune") {
|
| if(!is_super_admin($mybb->user['uid'])) { cperror($lang->cannot_perform_action_super_admin_general); }
|
$time = time(); $days = intval($mybb->input['days']); $fromscript = $db->escape_string($mybb->input['fromscript']);
| $time = time(); $days = intval($mybb->input['days']); $fromscript = $db->escape_string($mybb->input['fromscript']);
|
Zeile 107 | Zeile 112 |
---|
else { $order = "l.dateline DESC";
|
else { $order = "l.dateline DESC";
|
}
| }
|
$query = $db->query(" SELECT COUNT(dateline) AS count FROM ".TABLE_PREFIX."adminlog l
| $query = $db->query(" SELECT COUNT(dateline) AS count FROM ".TABLE_PREFIX."adminlog l
|
Zeile 118 | Zeile 123 |
---|
); $rescount = $db->fetch_field($query, "count"); if(!$rescount)
|
); $rescount = $db->fetch_field($query, "count"); if(!$rescount)
|
{
| {
|
cpmessage($lang->no_results); } if(!$perpage) { $perpage = 15;
|
cpmessage($lang->no_results); } if(!$perpage) { $perpage = 15;
|
}
| }
|
if($page) { $start = ($page-1) *$perpage;
| if($page) { $start = ($page-1) *$perpage;
|
Zeile 133 | Zeile 138 |
---|
{ $start = 0; $page = 1;
|
{ $start = 0; $page = 1;
|
}
| }
|
if($rescount > $perpage)
|
if($rescount > $perpage)
|
{
| {
|
$pages = $rescount / $perpage; $pages = ceil($pages);
|
$pages = $rescount / $perpage; $pages = ceil($pages);
|
}
| }
|
else { $pages = 1; } if($page != $pages)
|
else { $pages = 1; } if($page != $pages)
|
{
| {
|
$npage = $page+1; $nextpage = "<input type=\"button\" value=\"$lang->nextpage\" onClick=\"hopto('adminlogs.php?".SID."&action=view&perpage=$perpage&fromscript=$fromscript&fromadmin=$fromadmin&orderby=$orderby&page=$npage')\" /> "; $lastpage = "<input type=\"button\" value=\"$lang->lastpage\" onClick=\"hopto('adminlogs.php?".SID."&action=view&perpage=$perpage&fromscript=$fromscript&fromadmin=$fromadmin&orderby=$orderby&page=$pages')\" /> ";
| $npage = $page+1; $nextpage = "<input type=\"button\" value=\"$lang->nextpage\" onClick=\"hopto('adminlogs.php?".SID."&action=view&perpage=$perpage&fromscript=$fromscript&fromadmin=$fromadmin&orderby=$orderby&page=$npage')\" /> "; $lastpage = "<input type=\"button\" value=\"$lang->lastpage\" onClick=\"hopto('adminlogs.php?".SID."&action=view&perpage=$perpage&fromscript=$fromscript&fromadmin=$fromadmin&orderby=$orderby&page=$pages')\" /> ";
|
Zeile 157 | Zeile 162 |
---|
} $lang->log_results_header = sprintf($lang->log_results_header, $page, $pages, $rescount);
|
} $lang->log_results_header = sprintf($lang->log_results_header, $page, $pages, $rescount);
|
cpheader(); starttable();
| cpheader(); starttable();
|
tableheader($lang->log_results_header, "", 6); echo "<tr>\n"; echo "<td class=\"subheader\" align=\"center\">$lang->username</td>\n";
| tableheader($lang->log_results_header, "", 6); echo "<tr>\n"; echo "<td class=\"subheader\" align=\"center\">$lang->username</td>\n";
|
Zeile 232 | Zeile 237 |
---|
makelabelcode($lang->order_by, "<select name=\"orderby\"><option value=\"datedesc\">$lang->date_desc</option>\n<option value=\"nameasc\">$lang->username_asc</option><option value=\"scriptasc\">$lang->script_asc</option>\n</select>"); endtable(); endform($lang->view_log, $lang->reset_button);
|
makelabelcode($lang->order_by, "<select name=\"orderby\"><option value=\"datedesc\">$lang->date_desc</option>\n<option value=\"nameasc\">$lang->username_asc</option><option value=\"scriptasc\">$lang->script_asc</option>\n</select>"); endtable(); endform($lang->view_log, $lang->reset_button);
|
echo "<br />\n"; echo "<br />\n"; startform("adminlogs.php", "", "do_prune"); starttable(); tableheader($lang->prune_admin_logs); makelabelcode($lang->entries_script, "<select name=\"fromscript\">\n<option value=\"\">$lang->all_scripts</option>\n<option value=\"\">----------</option>\n$soptions</select>"); makelabelcode($lang->entries_admin, "<select name=\"fromadmin\">\n<option value=\"\">$lang->all_admins</option>\n<option value=\"\">----------</option>\n$uoptions</select>"); makeinputcode($lang->entries_older, "days", 30, 4); endtable(); endform($lang->prune_log, $lang->reset_button);
| if(is_super_admin($mybb->user['uid'])) { echo "<br />\n"; echo "<br />\n"; startform("adminlogs.php", "", "do_prune"); starttable(); tableheader($lang->prune_admin_logs); makelabelcode($lang->entries_script, "<select name=\"fromscript\">\n<option value=\"\">$lang->all_scripts</option>\n<option value=\"\">----------</option>\n$soptions</select>"); makelabelcode($lang->entries_admin, "<select name=\"fromadmin\">\n<option value=\"\">$lang->all_admins</option>\n<option value=\"\">----------</option>\n$uoptions</select>"); makeinputcode($lang->entries_older, "days", 30, 4); endtable(); endform($lang->prune_log, $lang->reset_button); } cpfooter();
|
} ?>
| } ?>
|