Vergleich install/resources/upgrade3.php - 1.2.1 - 1.2.3

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

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

 * $Id: upgrade3.php 2204 2006-09-07 23:57:07Z Tikitiki $

 * $Id: upgrade3.php 2439 2006-11-26 14:00:13Z CraKteR $

 */

/**

 */

/**

Zeile 103Zeile 103
		$lower = 1;
}


		$lower = 1;
}


	require_once MYBB_ROOT."/inc/settings.php";

	require_once MYBB_ROOT."inc/settings.php";


$query = $db->query("SELECT COUNT(aid) AS attachcount FROM ".TABLE_PREFIX."attachments");
$cnt = $db->fetch_array($query);


$query = $db->query("SELECT COUNT(aid) AS attachcount FROM ".TABLE_PREFIX."attachments");
$cnt = $db->fetch_array($query);

Zeile 156Zeile 156
		unset($attachment['filedata']);
if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
{

		unset($attachment['filedata']);
if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
{

			require_once MYBB_ROOT."/inc/functions_image.php";

			require_once MYBB_ROOT."inc/functions_image.php";

			$thumbname = str_replace(".attach", "_thumb.$ext", $filename);
$thumbnail = generate_thumbnail("../uploads/".$filename, "../uploads", $thumbname, $settings['attachthumbh'], $settings['attachthumbw']);
if($thumbnail['code'] == 4)

			$thumbname = str_replace(".attach", "_thumb.$ext", $filename);
$thumbnail = generate_thumbnail("../uploads/".$filename, "../uploads", $thumbname, $settings['attachthumbh'], $settings['attachthumbw']);
if($thumbnail['code'] == 4)

Zeile 229Zeile 229
		$lower = 1;
}


		$lower = 1;
}


	require_once MYBB_ROOT."/inc/settings.php";

	require_once MYBB_ROOT."inc/settings.php";


$query = $db->query("SELECT COUNT(uid) AS avatarcount FROM ".TABLE_PREFIX."avatars");
$cnt = $db->fetch_array($query);


$query = $db->query("SELECT COUNT(uid) AS avatarcount FROM ".TABLE_PREFIX."avatars");
$cnt = $db->fetch_array($query);

Zeile 776Zeile 776

echo "Done</p>";



echo "Done</p>";


	$contents .= "<font color=\red\"><b>WARNING:</font> The next step will delete any custom themes or templates you have! Please back them up before continuing!</p>";

	$contents .= "<span style=\"color: red; font-weight: bold;\">WARNING:</span> The next step will delete any custom themes or templates you have! Please back them up before continuing!</p>";

	$output->print_contents($contents);
$output->print_footer("3_done");
}

	$output->print_contents($contents);
$output->print_footer("3_done");
}