Revision 1349
Added by Dietmar almost 14 years ago
upgrade-script.php | ||
---|---|---|
5 | 5 |
* @package installation |
6 | 6 |
* @author WebsiteBaker Project |
7 | 7 |
* @copyright 2004-2009, Ryan Djurovich |
8 |
* @copyright 2009-2010, Website Baker Org. e.V.
|
|
8 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
9 | 9 |
* @link http://www.websitebaker2.org/ |
10 | 10 |
* @license http://www.gnu.org/licenses/gpl.html |
11 | 11 |
* @platform WebsiteBaker 2.8.x |
12 |
* @requirements PHP 4.3.4 and higher
|
|
12 |
* @requirements PHP 5.2.2 and higher
|
|
13 | 13 |
* @version $Id$ |
14 | 14 |
* @filesource $HeadURL$ |
15 | 15 |
* @lastmodified $Date$ |
... | ... | |
24 | 24 |
echo '<'.$element .' class="' .$class .'">' .$message .'</' .$element.'>'; |
25 | 25 |
} |
26 | 26 |
|
27 |
$version = '2.8.1';
|
|
27 |
$version = '2.8.2';
|
|
28 | 28 |
// database tables including in WB package |
29 | 29 |
$table_list = array ( |
30 | 30 |
'settings','groups','addons','pages','sections','search','users', |
... | ... | |
484 | 484 |
} |
485 | 485 |
|
486 | 486 |
|
487 |
if ((version_compare(WB_VERSION, '2.8.0') <= 0) && file_exists(WB_PATH."/modules/news/upgrade.php"))
|
|
487 |
if ((version_compare(WB_VERSION, '2.8.1') <= 0) && file_exists(WB_PATH."/modules/news/upgrade.php"))
|
|
488 | 488 |
{ |
489 | 489 |
echo '<h4>Upgrade existings postfiles to new format</h4><br />'; |
490 | 490 |
// change old postfiles to new postfiles |
... | ... | |
497 | 497 |
} |
498 | 498 |
|
499 | 499 |
/********************************************************** |
500 |
* - Set Version to WB 2.8.1
|
|
500 |
* - Set Version to WB 2.8.2
|
|
501 | 501 |
*/ |
502 |
echo "<br />Update database version number to 2.8.1 : ";
|
|
502 |
echo "<br />Update database version number to 2.8.2 : ";
|
|
503 | 503 |
echo ($database->query("UPDATE `".TABLE_PREFIX."settings` SET `value` = '$version' WHERE `name` = 'wb_version'")) ? " $OK<br />" : " $FAIL<br />"; |
504 | 504 |
|
505 | 505 |
/********************************************************** |
Also available in: Unified diff
add ini_set('display_errors', 1) (Tks to Thorn)
update headerinfos