Vergleich admin/modules/tools/recount_rebuild.php - 1.4.0 - 1.4.14

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: recount_rebuild.php 3790 2008-04-23 22:50:33Z Tikitiki $

 * $Id: recount_rebuild.php 4861 2010-04-09 11:31:10Z Huji $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 126Zeile 126
		if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
{
$thumbname = str_replace(".attach", "_thumb.$ext", $attachment['attachname']);

		if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
{
$thumbname = str_replace(".attach", "_thumb.$ext", $attachment['attachname']);

			$thumbnail = generate_thumbnail(MYBB_ROOT."uploads/".$attachment['attachname'], MYBB_ROOT."uploads", $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);

			$thumbnail = generate_thumbnail(MYBB_ROOT."uploads/".$attachment['attachname'], MYBB_ROOT."uploads/", $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);

			if($thumbnail['code'] == 4)
{
$thumbnail['filename'] = "SMALL";

			if($thumbnail['code'] == 4)
{
$thumbnail['filename'] = "SMALL";

Zeile 135Zeile 135
		}
}


		}
}


	check_proceed($num_users, $end, ++$page, $per_page, "attachmentthumbs", "do_rebuildattachmentthumbs", $lang->success_rebuilt_attachment_thumbnails);

	check_proceed($num_attachments, $end, ++$page, $per_page, "attachmentthumbs", "do_rebuildattachmentthumbs", $lang->success_rebuilt_attachment_thumbnails);

}

function check_proceed($current, $finish, $next_page, $per_page, $name, $name2, $message)

}

function check_proceed($current, $finish, $next_page, $per_page, $name, $name2, $message)

Zeile 234Zeile 234
		}
elseif(isset($mybb->input['do_rebuildattachmentthumbs']))
{

		}
elseif(isset($mybb->input['do_rebuildattachmentthumbs']))
{

			$plugins->run_hooks("admin_tools_recount_rebuild_forum_counters");

			$plugins->run_hooks("admin_tools_recount_rebuild_attachment_thumbs");

			
if($mybb->input['page'] == 1)
{

			
if($mybb->input['page'] == 1)
{