Revision 1292
Added by Dietmar almost 15 years ago
upgrade-script.php | ||
---|---|---|
76 | 76 |
function check_wb_tables() |
77 | 77 |
{ |
78 | 78 |
global $database,$table_list; |
79 |
$get_result = $database->query( "SHOW TABLES FROM ".DB_NAME); |
|
79 |
|
|
80 |
// if prefix inludes '_' or '%' |
|
81 |
$search_for = addcslashes ( TABLE_PREFIX, '%_' ); |
|
82 |
$get_result = $database->query( 'SHOW TABLES LIKE "'.$search_for.'%"'); |
|
83 |
|
|
84 |
// $get_result = $database->query( "SHOW TABLES FROM ".DB_NAME); |
|
80 | 85 |
$all_tables = array(); |
81 | 86 |
if($get_result->numRows() > 0) |
82 | 87 |
{ |
... | ... | |
288 | 293 |
else |
289 | 294 |
{ |
290 | 295 |
status_msg('<strong>WARNING:</strong><br />can\'t run Upgrade, missing tables', 'warning', 'div'); |
291 |
echo '<h4>Install missing tables, you can install them in backend->addons->modules->advanced. Then again run upgrade-script.php</h4>';
|
|
296 |
echo '<h4>Missing required tables. You can install them in backend->addons->modules->advanced. Then again run upgrade-script.php</h4>';
|
|
292 | 297 |
$result = array_diff ( $table_list, $all_tables ); |
293 |
echo '<h4 class="warning">'; |
|
298 |
echo '<h4 class="warning"><br />';
|
|
294 | 299 |
while ( list ( $key, $val ) = each ( $result ) ) |
295 | 300 |
{ |
296 | 301 |
echo TABLE_PREFIX.$val.' '.$FAIL.'<br>'; |
297 | 302 |
} |
298 |
echo '</h4>'; |
|
303 |
echo '<br /></h4>';
|
|
299 | 304 |
echo '<br /><form action="'. $_SERVER['PHP_SELF'] .'">'; |
300 | 305 |
echo '<input type="submit" value="kick me back" style="float:left;" />'; |
301 | 306 |
echo '</form>'; |
Also available in: Unified diff
insert $wb->preprocess($output), preprocess no longer needed in modules
little modifaction in upgrade-script.php in function check_wb_tables
updated module wysiwyg, set to module version 2.8