"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/install/resources/upgrade35.php" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

upgrade35.php  (mybb_1819):upgrade35.php  (mybb_1820)
skipping to change at line 53 skipping to change at line 53
$db->modify_column('adminsessions', 'useragent', "varchar(200)", "set", "''"); $db->modify_column('adminsessions', 'useragent', "varchar(200)", "set", "''");
$db->modify_column('sessions', 'useragent', "varchar(200)", "set" , "''"); $db->modify_column('sessions', 'useragent', "varchar(200)", "set" , "''");
} }
// Remove "Are You a Human" captcha // Remove "Are You a Human" captcha
$db->update_query('settings', array('value' => '1'), "name='captchaimage' AND value='3'"); $db->update_query('settings', array('value' => '1'), "name='captchaimage' AND value='3'");
$db->delete_query('settings', "name IN ('ayahpublisherkey', 'ayahscoringk ey')"); $db->delete_query('settings', "name IN ('ayahpublisherkey', 'ayahscoringk ey')");
$db->delete_query('templates', "title IN ('member_register_regimage_ayah' , 'post_captcha_ayah')"); $db->delete_query('templates', "title IN ('member_register_regimage_ayah' , 'post_captcha_ayah')");
global $footer_extra; global $footer_extra;
$footer_extra = "<script type=\"text/javascript\">$(document).ready(funct ion() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); b utton.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>"; $footer_extra = "<script type=\"text/javascript\">$(function() { var butt on = $('.submit_button'); if(button) { button.val('Automatically Redirecting...' ); button.prop('disabled', true); button.css('color', '#aaa'); button.css('borde r-color', '#aaa'); document.forms[0].submit(); } });</script>";
$output->print_contents("<p>Click next to continue with the upgrade proce ss.</p>"); $output->print_contents("<p>Click next to continue with the upgrade proce ss.</p>");
$output->print_footer("35_dbchanges2"); $output->print_footer("35_dbchanges2");
} }
function upgrade35_dbchanges2() function upgrade35_dbchanges2()
{ {
global $db, $output; global $db, $output;
$output->print_header("Updating Database"); $output->print_header("Updating Database");
skipping to change at line 106 skipping to change at line 106
$db->modify_column("promotions", "warnings", "int unsigne d NOT NULL default '0'"); $db->modify_column("promotions", "warnings", "int unsigne d NOT NULL default '0'");
$db->modify_column("sessions", "location1", "int(10) unsi gned NOT NULL default '0'"); $db->modify_column("sessions", "location1", "int(10) unsi gned NOT NULL default '0'");
$db->modify_column("sessions", "location2", "int(10) unsi gned NOT NULL default '0'"); $db->modify_column("sessions", "location2", "int(10) unsi gned NOT NULL default '0'");
$db->modify_column("threadratings", "rating", "tinyint(1) unsigned NOT NULL default '0'"); $db->modify_column("threadratings", "rating", "tinyint(1) unsigned NOT NULL default '0'");
$db->modify_column("threads", "views", "int(100) unsigned NOT NULL default '0'"); $db->modify_column("threads", "views", "int(100) unsigned NOT NULL default '0'");
$db->modify_column("threads", "replies", "int(100) unsign ed NOT NULL default '0'"); $db->modify_column("threads", "replies", "int(100) unsign ed NOT NULL default '0'");
break; break;
} }
global $footer_extra; global $footer_extra;
$footer_extra = "<script type=\"text/javascript\">$(document).ready(funct ion() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); b utton.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>"; $footer_extra = "<script type=\"text/javascript\">$(function() { var butt on = $('.submit_button'); if(button) { button.val('Automatically Redirecting...' ); button.prop('disabled', true); button.css('color', '#aaa'); button.css('borde r-color', '#aaa'); document.forms[0].submit(); } });</script>";
$output->print_contents("<p>Click next to continue with the upgrade proce ss.</p>"); $output->print_contents("<p>Click next to continue with the upgrade proce ss.</p>");
$output->print_footer("35_dbchanges3"); $output->print_footer("35_dbchanges3");
} }
function upgrade35_dbchanges3() function upgrade35_dbchanges3()
{ {
global $db, $output; global $db, $output;
$output->print_header("Updating Database"); $output->print_header("Updating Database");
skipping to change at line 153 skipping to change at line 153
$db->modify_column("users", "totalpms", "int(10) unsigned NOT NULL default '0'"); $db->modify_column("users", "totalpms", "int(10) unsigned NOT NULL default '0'");
$db->modify_column("users", "unreadpms", "int(10) unsigne d NOT NULL default '0'"); $db->modify_column("users", "unreadpms", "int(10) unsigne d NOT NULL default '0'");
$db->modify_column("users", "warningpoints", "int(3) unsi gned NOT NULL default '0'"); $db->modify_column("users", "warningpoints", "int(3) unsi gned NOT NULL default '0'");
$db->modify_column("users", "loginattempts", "smallint(2) unsigned NOT NULL default '1'"); $db->modify_column("users", "loginattempts", "smallint(2) unsigned NOT NULL default '1'");
$db->modify_column("usertitles", "stars", "smallint(4) un signed NOT NULL default '0'"); $db->modify_column("usertitles", "stars", "smallint(4) un signed NOT NULL default '0'");
$db->modify_column("warninglevels", "percentage", "smalli nt(3) unsigned NOT NULL default '0'"); $db->modify_column("warninglevels", "percentage", "smalli nt(3) unsigned NOT NULL default '0'");
break; break;
} }
global $footer_extra; global $footer_extra;
$footer_extra = "<script type=\"text/javascript\">$(document).ready(funct ion() { var button = $('.submit_button'); if(button) { button.val('Automatically Redirecting...'); button.prop('disabled', true); button.css('color', '#aaa'); b utton.css('border-color', '#aaa'); document.forms[0].submit(); } });</script>"; $footer_extra = "<script type=\"text/javascript\">$(function() { var butt on = $('.submit_button'); if(button) { button.val('Automatically Redirecting...' ); button.prop('disabled', true); button.css('color', '#aaa'); button.css('borde r-color', '#aaa'); document.forms[0].submit(); } });</script>";
$output->print_contents("<p>Click next to continue with the upgrade proce ss.</p>"); $output->print_contents("<p>Click next to continue with the upgrade proce ss.</p>");
$output->print_footer("35_dbchanges4"); $output->print_footer("35_dbchanges4");
} }
function upgrade35_dbchanges4() function upgrade35_dbchanges4()
{ {
global $mybb, $output; global $mybb, $output;
$output->print_header("Adding index files"); $output->print_header("Adding index files");
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)