Zeile 177 | Zeile 177 |
---|
echo "<input type=\"hidden\" name=\"{$key}\" value=\"{$val}\" />"; } global $footer_extra;
|
echo "<input type=\"hidden\" name=\"{$key}\" value=\"{$val}\" />"; } 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_footer($next_act); } else
| $output->print_footer($next_act); } else
|
Zeile 189 | Zeile 189 |
---|
echo "<p><strong>The integrer conversion process is now complete.</strong></p>"; echo "<p>Click next to continue with the upgrade process.</p>"; global $footer_extra;
|
echo "<p><strong>The integrer conversion process is now complete.</strong></p>"; echo "<p>Click next to continue with the upgrade process.</p>"; 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_footer($next_act); }
| $output->print_footer($next_act); }
|
Zeile 213 | Zeile 213 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges_post1"); }
| $output->print_footer("12_dbchanges_post1"); }
|
Zeile 238 | Zeile 238 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges_post2"); }
| $output->print_footer("12_dbchanges_post2"); }
|
Zeile 274 | Zeile 274 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges_user"); }
| $output->print_footer("12_dbchanges_user"); }
|
Zeile 300 | Zeile 300 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges2"); }
| $output->print_footer("12_dbchanges2"); }
|
Zeile 769 | Zeile 769 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges3"); }
| $output->print_footer("12_dbchanges3"); }
|
Zeile 845 | Zeile 845 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges4"); }
| $output->print_footer("12_dbchanges4"); }
|
Zeile 1076 | Zeile 1076 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_dbchanges5"); }
| $output->print_footer("12_dbchanges5"); }
|
Zeile 1279 | Zeile 1279 |
---|
$db->insert_query("adminviews", $new_view); $view_count++; }
|
$db->insert_query("adminviews", $new_view); $view_count++; }
|
$avatardimensions = str_replace('x', '|', my_strtolower($mybb->settings['postmaxavatarsize']));
| |
$db->simple_select("users", "uid", "avatar != '' AND avatardimensions = ''"); while($user = $db->fetch_array($query))
| $db->simple_select("users", "uid", "avatar != '' AND avatardimensions = ''"); while($user = $db->fetch_array($query))
|
Zeile 1293 | Zeile 1291 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer("12_redoconfig"); }
| $output->print_footer("12_redoconfig"); }
|
Zeile 1347 | Zeile 1345 |
---|
* * Please see the MyBB Docs for advanced * database configuration for larger installations
|
* * Please see the MyBB Docs for advanced * database configuration for larger installations
|
* http://docs.mybb.com/
| * https://docs.mybb.com/
|
*/
\$config['database']['type'] = '{$config['dbtype']}';
| */
\$config['database']['type'] = '{$config['dbtype']}';
|
Zeile 1448 | Zeile 1446 |
---|
echo "<p>Click next to continue with the upgrade process.</p>";
global $footer_extra;
|
echo "<p>Click next to continue with the upgrade process.</p>";
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_footer("12_dbchanges6"); }
| $output->print_footer("12_dbchanges6"); }
|
Zeile 1501 | Zeile 1499 |
---|
if(!$post['longipaddress']) { $db->update_query("posts", array('longipaddress' => my_ip2long($post['ipaddress'])), "pid = '{$post['pid']}'");
|
if(!$post['longipaddress']) { $db->update_query("posts", array('longipaddress' => my_ip2long($post['ipaddress'])), "pid = '{$post['pid']}'");
|
}
| }
|
$ipaddress = true; }
| $ipaddress = true; }
|
Zeile 1518 | Zeile 1516 |
---|
$contents = "<p>Done</p><p>All post ips have been converted to the new ip format. Click next to continue.</p>"; } $output->print_contents($contents);
|
$contents = "<p>Done</p><p>All post ips have been converted to the new ip format. Click next to continue.</p>"; } $output->print_contents($contents);
|
|
|
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_footer($nextact); }
|
$output->print_footer($nextact); }
|
|
|
function upgrade12_dbchanges7() { global $db, $output;
|
function upgrade12_dbchanges7() { global $db, $output;
|
|
|
$output->print_header("User IP Conversion");
if(!$_POST['ipspage'])
| $output->print_header("User IP Conversion");
if(!$_POST['ipspage'])
|
Zeile 1555 | Zeile 1553 |
---|
$query = $db->simple_select("users", "COUNT(uid) AS ipcount"); $cnt = $db->fetch_array($query);
|
$query = $db->simple_select("users", "COUNT(uid) AS ipcount"); $cnt = $db->fetch_array($query);
|
|
|
if($upper > $cnt['ipcount']) { $upper = $cnt['ipcount'];
| if($upper > $cnt['ipcount']) { $upper = $cnt['ipcount'];
|
Zeile 1573 | Zeile 1571 |
---|
if(!$user['longregip']) { $update_array['longregip'] = (int)my_ip2long($user['regip']);
|
if(!$user['longregip']) { $update_array['longregip'] = (int)my_ip2long($user['regip']);
|
}
| }
|
if(!$user['longlastip']) { $update_array['longlastip'] = (int)my_ip2long($user['lastip']);
| if(!$user['longlastip']) { $update_array['longlastip'] = (int)my_ip2long($user['lastip']);
|
Zeile 1604 | Zeile 1602 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer($nextact); }
| $output->print_footer($nextact); }
|
Zeile 1769 | Zeile 1767 |
---|
$output->print_contents($contents);
global $footer_extra;
|
$output->print_contents($contents);
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_footer($nextact); }
| $output->print_footer($nextact); }
|
Zeile 1791 | Zeile 1789 |
---|
} $cachewritable = @fopen(MYBB_ROOT.'cache/test.write', 'w'); if(!$cachewritable)
|
} $cachewritable = @fopen(MYBB_ROOT.'cache/test.write', 'w'); if(!$cachewritable)
|
{ $not_writable = true; @fclose($cachewritable);
| { $not_writable = true; @fclose($cachewritable);
|
} else {
| } else {
|
Zeile 1801 | Zeile 1799 |
---|
@my_chmod(MYBB_ROOT.'cache', '0777'); @my_chmod(MYBB_ROOT.'cache/test.write', '0777'); @unlink(MYBB_ROOT.'cache/test.write');
|
@my_chmod(MYBB_ROOT.'cache', '0777'); @my_chmod(MYBB_ROOT.'cache/test.write', '0777'); @unlink(MYBB_ROOT.'cache/test.write');
|
}
| }
|
if($not_writable) { echo "<p><span style=\"color: red; font-weight: bold;\">Unable to write to the cache/ directory.</span><br />Before the upgrade process can continue you need to make sure this directory exists and is writable (chmod 777)</p>";
| if($not_writable) { echo "<p><span style=\"color: red; font-weight: bold;\">Unable to write to the cache/ directory.</span><br />Before the upgrade process can continue you need to make sure this directory exists and is writable (chmod 777)</p>";
|
Zeile 1847 | Zeile 1845 |
---|
}
if($db->field_exists('cssbits', "themes"))
|
}
if($db->field_exists('cssbits', "themes"))
|
{
| {
|
$db->write_query("ALTER TABLE ".TABLE_PREFIX."themes DROP cssbits"); }
| $db->write_query("ALTER TABLE ".TABLE_PREFIX."themes DROP cssbits"); }
|
Zeile 1866 | Zeile 1864 |
---|
{ $db->drop_table("themestylesheets"); }
|
{ $db->drop_table("themestylesheets"); }
|
| $collation = $db->build_create_table_collation();
|
$db->write_query("CREATE TABLE ".TABLE_PREFIX."themestylesheets( sid int unsigned NOT NULL auto_increment,
| $db->write_query("CREATE TABLE ".TABLE_PREFIX."themestylesheets( sid int unsigned NOT NULL auto_increment,
|
Zeile 1991 | Zeile 1991 |
---|
echo "<p>Click next to continue with the upgrade process.</p>";
global $footer_extra;
|
echo "<p>Click next to continue with the upgrade process.</p>";
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_footer("12_done"); }
| $output->print_footer("12_done"); }
|