Vergleich install/resources/upgrade35.php - 1.8.9 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 50Zeile 50
	$db->delete_query('templates', "title IN ('member_register_regimage_ayah', 'post_captcha_ayah')");

global $footer_extra;

	$db->delete_query('templates', "title IN ('member_register_regimage_ayah', 'post_captcha_ayah')");

global $footer_extra;

	$footer_extra = "<script type=\"text/javascript\">$(document).ready(function() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); button.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>";

	$footer_extra = "<script type=\"text/javascript\">$(function() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); button.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>";


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("35_dbchanges2");


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("35_dbchanges2");

Zeile 103Zeile 103
	}

global $footer_extra;

	}

global $footer_extra;

	$footer_extra = "<script type=\"text/javascript\">$(document).ready(function() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); button.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>";

	$footer_extra = "<script type=\"text/javascript\">$(function() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); button.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>";


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("35_dbchanges3");


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("35_dbchanges3");

Zeile 150Zeile 150
	}

global $footer_extra;

	}

global $footer_extra;

	$footer_extra = "<script type=\"text/javascript\">$(document).ready(function() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); button.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>";

	$footer_extra = "<script type=\"text/javascript\">$(function() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); button.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>";


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("35_dbchanges4");


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("35_dbchanges4");

Zeile 164Zeile 164
	echo "<p>Adding index files to attachment directories...</p>";
flush();


	echo "<p>Adding index files to attachment directories...</p>";
flush();


	$dir = @opendir('../'.$mybb->settings['uploadspath']);


	$uploadspath_abs = mk_path_abs($mybb->settings['uploadspath']);
$dir = @opendir($uploadspath_abs);

	if($dir)
{
while(($file = @readdir($dir)) !== false)
{

	if($dir)
{
while(($file = @readdir($dir)) !== false)
{

			$filename = "../{$mybb->settings['uploadspath']}/{$file}";

			$filename = "{$uploadspath_abs}/{$file}";

			$indexfile = "{$filename}/index.html";

if(preg_match('#^[0-9]{6}$#', $file) && @is_dir($filename) && @is_writable($filename) && !file_exists($indexfile))

			$indexfile = "{$filename}/index.html";

if(preg_match('#^[0-9]{6}$#', $file) && @is_dir($filename) && @is_writable($filename) && !file_exists($indexfile))