Vergleich admin/maintenance.php - 1.2.7 - 1.2.11

  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: maintenance.php 3026 2007-04-25 13:18:18Z chris $

 * $Id: maintenance.php 3300 2007-09-06 02:19:06Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 128Zeile 128

if($mybb->input['action'] == "do_rebuildstats")
{


if($mybb->input['action'] == "do_rebuildstats")
{

 
	@set_time_limit(0);


	$plugins->run_hooks("admin_maintenance_do_rebuildstats");
$cache->updatestats();
cpredirect("maintenance.php?".SID."&action=rebuild", $lang->stats_rebuilt);

	$plugins->run_hooks("admin_maintenance_do_rebuildstats");
$cache->updatestats();
cpredirect("maintenance.php?".SID."&action=rebuild", $lang->stats_rebuilt);

Zeile 135Zeile 137

if($mybb->input['action'] == "do_rebuildforums")
{


if($mybb->input['action'] == "do_rebuildforums")
{

 
	@set_time_limit(0);


	$plugins->run_hooks("admin_maintenance_do_rebuildforums");

$query = $db->simple_select(TABLE_PREFIX."forums", "COUNT(*) as num_forums");
$num_forums = $db->fetch_field($query, 'num_forums');

	$plugins->run_hooks("admin_maintenance_do_rebuildforums");

$query = $db->simple_select(TABLE_PREFIX."forums", "COUNT(*) as num_forums");
$num_forums = $db->fetch_field($query, 'num_forums');

	
if(!isset($mybb->input['page']) || intval($mybb->input['page']) < 1)
{
$mybb->input['page'] = 1;
}
$page = intval($mybb->input['page']);
if(!isset($mybb->input['perpage']) || intval($mybb->input['perpage']) < 1)
{
$mybb->input['perpage'] = 50;
}

	
if(!isset($mybb->input['page']) || intval($mybb->input['page']) < 1)
{
$mybb->input['page'] = 1;
}
$page = intval($mybb->input['page']);
if(!isset($mybb->input['perpage']) || intval($mybb->input['perpage']) < 1)
{
$mybb->input['perpage'] = 50;
}

	$per_page = intval($mybb->input['perpage']);
$start = ($page-1) * $per_page;
$end = $start + $per_page;

	$per_page = intval($mybb->input['perpage']);
$start = ($page-1) * $per_page;
$end = $start + $per_page;

Zeile 159Zeile 163
		$update['parentlist'] = makeparentlist($forum['fid']);
$db->update_query(TABLE_PREFIX."forums", $update, "fid='{$forum['fid']}'");
rebuild_forum_counters($forum['fid']);

		$update['parentlist'] = makeparentlist($forum['fid']);
$db->update_query(TABLE_PREFIX."forums", $update, "fid='{$forum['fid']}'");
rebuild_forum_counters($forum['fid']);

	}

	}


if($end >= $num_forums)


if($end >= $num_forums)

	{

	{

		cpredirect("maintenance.php?".SID."&action=rebuild", $lang->forums_rebuilt);
}
else
{
cpheader();
startform("maintenance.php", "" , "do_rebuildforums");

		cpredirect("maintenance.php?".SID."&action=rebuild", $lang->forums_rebuilt);
}
else
{
cpheader();
startform("maintenance.php", "" , "do_rebuildforums");

		starttable();

		starttable();

		tableheader($lang->rebuild_forum_counters);
makelabelcode($lang->click_next_continue, '', 2);
makehiddencode('page', ++$page);

		tableheader($lang->rebuild_forum_counters);
makelabelcode($lang->click_next_continue, '', 2);
makehiddencode('page', ++$page);

Zeile 182Zeile 186

if($mybb->input['action'] == "do_rebuildthreads")
{


if($mybb->input['action'] == "do_rebuildthreads")
{

 
	@set_time_limit(0);


	$plugins->run_hooks("admin_maintenance_do_rebuildthreads");

$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(*) as num_threads");
$num_threads = $db->fetch_field($query, 'num_threads');

	$plugins->run_hooks("admin_maintenance_do_rebuildthreads");

$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(*) as num_threads");
$num_threads = $db->fetch_field($query, 'num_threads');

	
if(!isset($mybb->input['page']) || intval($mybb->input['page']) < 1)
{
$mybb->input['page'] = 1;

	
if(!isset($mybb->input['page']) || intval($mybb->input['page']) < 1)
{
$mybb->input['page'] = 1;

	}
$page = intval($mybb->input['page']);
if(!isset($mybb->input['perpage']) || intval($mybb->input['perpage']) < 1)
{
$mybb->input['perpage'] = 50;

	}
$page = intval($mybb->input['page']);
if(!isset($mybb->input['perpage']) || intval($mybb->input['perpage']) < 1)
{
$mybb->input['perpage'] = 50;

	}

	}

	$per_page = intval($mybb->input['perpage']);
$start = ($page-1) * $per_page;
$end = $start + $per_page;

	$per_page = intval($mybb->input['perpage']);
$start = ($page-1) * $per_page;
$end = $start + $per_page;

Zeile 209Zeile 215
	if($end >= $num_threads)
{
cpredirect("maintenance.php?".SID."&action=rebuild", $lang->threads_rebuilt);

	if($end >= $num_threads)
{
cpredirect("maintenance.php?".SID."&action=rebuild", $lang->threads_rebuilt);

	}
else

	}
else

	{
cpheader();
startform("maintenance.php", "" , "do_rebuildthreads");

	{
cpheader();
startform("maintenance.php", "" , "do_rebuildthreads");

Zeile 224Zeile 230
		cpfooter();
}
}

		cpfooter();
}
}





if($mybb->input['action'] == "do_recountpostcounts")
{

if($mybb->input['action'] == "do_recountpostcounts")
{

 
	@set_time_limit(0);


	$plugins->run_hooks("admin_maintenance_do_recountpostcounts");

$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');

	$plugins->run_hooks("admin_maintenance_do_recountpostcounts");

$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');

	

	

	if(!isset($mybb->input['page']) || intval($mybb->input['page']) < 1)
{
$mybb->input['page'] = 1;

	if(!isset($mybb->input['page']) || intval($mybb->input['page']) < 1)
{
$mybb->input['page'] = 1;

Zeile 293Zeile 301

if($mybb->input['action'] == "do_rebuildthumbnails")
{


if($mybb->input['action'] == "do_rebuildthumbnails")
{

 
	@set_time_limit(0);


	$plugins->run_hooks("admin_maintenance_do_rebuild_thumbnails");

$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(aid) as num_attachments");

	$plugins->run_hooks("admin_maintenance_do_rebuild_thumbnails");

$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(aid) as num_attachments");