Vergleich admin/adminlogs.php - 1.2.8 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: adminlogs.php 2932 2007-03-10 05:48:55Z chris $

 * $Id: adminlogs.php 3496 2007-11-18 19:57:50Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 32Zeile 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 107Zeile 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 118Zeile 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 133Zeile 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."&amp;action=view&amp;perpage=$perpage&amp;fromscript=$fromscript&amp;fromadmin=$fromadmin&amp;orderby=$orderby&amp;page=$npage')\" />&nbsp;";
$lastpage = "<input type=\"button\" value=\"$lang->lastpage\" onClick=\"hopto('adminlogs.php?".SID."&amp;action=view&amp;perpage=$perpage&amp;fromscript=$fromscript&amp;fromadmin=$fromadmin&amp;orderby=$orderby&amp;page=$pages')\" />&nbsp;";

		$npage = $page+1;
$nextpage = "<input type=\"button\" value=\"$lang->nextpage\" onClick=\"hopto('adminlogs.php?".SID."&amp;action=view&amp;perpage=$perpage&amp;fromscript=$fromscript&amp;fromadmin=$fromadmin&amp;orderby=$orderby&amp;page=$npage')\" />&nbsp;";
$lastpage = "<input type=\"button\" value=\"$lang->lastpage\" onClick=\"hopto('adminlogs.php?".SID."&amp;action=view&amp;perpage=$perpage&amp;fromscript=$fromscript&amp;fromadmin=$fromadmin&amp;orderby=$orderby&amp;page=$pages')\" />&nbsp;";

Zeile 157Zeile 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 232Zeile 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();

}
?>

}
?>