Vergleich admin/modules/tools/recount_rebuild.php - 1.8.6 - 1.8.19

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 236Zeile 236
		$query2 = $db->query("
SELECT SUM(reputation) as total_rep
FROM ".TABLE_PREFIX."reputation

		$query2 = $db->query("
SELECT SUM(reputation) as total_rep
FROM ".TABLE_PREFIX."reputation

			WHERE `uid`='{$user['uid']}'

			WHERE uid='{$user['uid']}'

		");
$total_rep = $db->fetch_field($query2, "total_rep");


		");
$total_rep = $db->fetch_field($query2, "total_rep");


Zeile 395Zeile 395
	}
$start = ($page-1) * $per_page;
$end = $start + $per_page;

	}
$start = ($page-1) * $per_page;
$end = $start + $per_page;

 

$uploadspath = $mybb->settings['uploadspath'];
if(my_substr($uploadspath, 0, 1) == '.')
{
$uploadspath = MYBB_ROOT . $mybb->settings['uploadspath'];
}


require_once MYBB_ROOT."inc/functions_image.php";



require_once MYBB_ROOT."inc/functions_image.php";


Zeile 405Zeile 411
		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($uploadspath."/".$attachment['attachname'], $uploadspath, $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);

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

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