"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/install/resources/upgrade30.php" between
mybb_1822.zip and mybb_1823.zip

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

upgrade30.php  (mybb_1822):upgrade30.php  (mybb_1823)
skipping to change at line 1634 skipping to change at line 1634
"sessions" => array("time"), "sessions" => array("time"),
"spiders" => array("lastvisit"), "spiders" => array("lastvisit"),
"stats" => array("dateline"), "stats" => array("dateline"),
"tasks" => array("nextrun", "lastrun", "locked"), "tasks" => array("nextrun", "lastrun", "locked"),
"tasklog" => array("dateline"), "tasklog" => array("dateline"),
"templates" => array("dateline"), "templates" => array("dateline"),
"themestylesheets" => array("lastmodified"), "themestylesheets" => array("lastmodified"),
"threads" => array("dateline", "lastpost"), "threads" => array("dateline", "lastpost"),
"threadsread" => array("dateline"), "threadsread" => array("dateline"),
"threadsubscriptions" => array("dateline"), "threadsubscriptions" => array("dateline"),
"threadsread" => array("dateline"),
"usergroups" => array("reputationpower", "maxreputationsday", "ma xreputationsperuser", "maxreputationsperthread", "attachquota"), "usergroups" => array("reputationpower", "maxreputationsday", "ma xreputationsperuser", "maxreputationsperthread", "attachquota"),
"users" => array("regdate", "lastactive", "lastvisit", "lastpost" , "timeonline", "moderationtime", "suspensiontime", "suspendsigtime"), "users" => array("regdate", "lastactive", "lastvisit", "lastpost" , "timeonline", "moderationtime", "suspensiontime", "suspendsigtime"),
"warningtypes" => array("expirationtime"), "warningtypes" => array("expirationtime"),
"warnings" => array("dateline", "expires", "daterevoked") "warnings" => array("dateline", "expires", "daterevoked")
); );
foreach($to_int as $table => $columns) foreach($to_int as $table => $columns)
{ {
echo "<p>{$table}: Converting column type to int</p>"; echo "<p>{$table}: Converting column type to int</p>";
$change_column = array(); $change_column = array();
skipping to change at line 2203 skipping to change at line 2202
{ {
// We can update the disporder here // We can update the disporder here
$properties['disporder'][$stylesheet['att ributes']['name']] = $stylesheet['attributes']['disporder']; $properties['disporder'][$stylesheet['att ributes']['name']] = $stylesheet['attributes']['disporder'];
} }
else else
{ {
// Insert new stylesheet // Insert new stylesheet
$sid = $db->insert_query("themestylesheet s", $new_stylesheet); $sid = $db->insert_query("themestylesheet s", $new_stylesheet);
$css_url = "css.php?stylesheet={$sid}"; $css_url = "css.php?stylesheet={$sid}";
$cached = cache_stylesheet($tid, $stylesh eet['attributes']['name'], $stylesheet['value']); $cached = cache_stylesheet(1, $stylesheet ['attributes']['name'], $stylesheet['value']);
if($cached) if($cached)
{ {
$css_url = $cached; $css_url = $cached;
} }
// Add to display and stylesheet list // Add to display and stylesheet list
$properties['disporder'][$stylesheet['att ributes']['name']] = $stylesheet['attributes']['disporder']; $properties['disporder'][$stylesheet['att ributes']['name']] = $stylesheet['attributes']['disporder'];
$attachedto = $stylesheet['attributes'][' attachedto']; $attachedto = $stylesheet['attributes'][' attachedto'];
if(!$attachedto) if(!$attachedto)
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

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