Revision 1785
Added by Dietmar about 12 years ago
upgrade-script.php | ||
---|---|---|
15 | 15 |
* |
16 | 16 |
*/ |
17 | 17 |
|
18 |
require_once('config.php'); |
|
18 |
// Include config file |
|
19 |
$config_file = realpath('config.php'); |
|
20 |
if(file_exists($config_file) && !defined('WB_URL')) |
|
21 |
{ |
|
22 |
require_once($config_file); |
|
23 |
} |
|
19 | 24 |
|
25 |
//require_once(WB_PATH.'/framework/class.admin.php'); |
|
26 |
if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); } |
|
20 | 27 |
require_once(WB_PATH.'/framework/functions.php'); |
21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
22 | 28 |
// require_once(WB_PATH.'/framework/Database.php'); |
23 | 29 |
$admin = new admin('Addons', 'modules', false, false); |
24 | 30 |
|
... | ... | |
60 | 66 |
'[ADMIN]/themes/', |
61 | 67 |
); |
62 | 68 |
|
63 |
if(version_compare(WB_REVISION, '1762', '<'))
|
|
69 |
if(version_compare(WB_REVISION, '1785', '<'))
|
|
64 | 70 |
{ |
65 | 71 |
$filesRemove['0'] = array( |
66 | 72 |
|
... | ... | |
71 | 77 |
|
72 | 78 |
'[FRAMEWORK]/class.msg_queue.php', |
73 | 79 |
'[FRAMEWORK]/class.logfile.php', |
74 |
// '[FRAMEWORK]/class.database.php',
|
|
80 |
'[MODULES]/droplets/js/mdcr.js',
|
|
75 | 81 |
|
76 | 82 |
); |
77 | 83 |
|
... | ... | |
343 | 349 |
$bDebugModus = ( (isset($_POST['debug_confirmed']) && $_POST['debug_confirmed'] == 'debug') ? true : false); |
344 | 350 |
if (!(isset($_POST['backup_confirmed']) && $_POST['backup_confirmed'] == 'confirmed')) { ?> |
345 | 351 |
<h2>Step 1: Backup your files</h2> |
346 |
<p>It is highly recommended to <strong>create a manual backup</strong> of the entire <strong><?php echo PAGES_DIRECTORY ?>/ folder</strong> and the <strong>MySQL database</strong> before proceeding.<br /><strong class="error">Note: </strong>The upgrade script alters some settings of your existing database!!! You need to confirm the disclaimer before proceeding.</p> |
|
352 |
<h5 class="warning">It is highly recommended to <strong>create a manual backup</strong> of the entire <strong class="error"><?php echo PAGES_DIRECTORY ?>/</strong> folder and the <strong>MySQL database</strong> before proceeding.</h5> |
|
353 |
<p><strong class="error">Note: </strong>The upgrade script alters some settings of your existing database!!! You need to confirm the disclaimer before proceeding.</p> |
|
347 | 354 |
|
348 | 355 |
<form name="send" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post"> |
349 | 356 |
<textarea cols="92" rows="5">DISCLAIMER: The WebsiteBaker upgrade script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. One needs to confirm that a manual backup of the <?php echo PAGES_DIRECTORY ?>/ folder (including all files and subfolders contained in it) and backup of the entire WebsiteBaker MySQL database was created before you can proceed.</textarea> |
Also available in: Unified diff
! secure fix for search update in settings, search_footer now can be empty
! change ->fetchRow() to ->fetchRow(MYSQL_ASSOC) in frontend.functions.php