Revision 1977
Added by Luisehahne about 12 years ago
| upgrade-script.php | ||
|---|---|---|
| 116 | 116 |
$FAIL = ' <span class="error">FAILED</span> '; |
| 117 | 117 |
$DEFAULT_THEME = 'wb_theme'; |
| 118 | 118 |
|
| 119 |
$stepID = 0;
|
|
| 119 |
$stepID = 1;
|
|
| 120 | 120 |
$dirRemove = array( |
| 121 | 121 |
/* |
| 122 | 122 |
'[TEMPLATE]/allcss/', |
| ... | ... | |
| 679 | 679 |
add_modify_field_in_database($table_name,$field_name,$description); |
| 680 | 680 |
|
| 681 | 681 |
/********************************************************** |
| 682 |
* - Add field "page_code" to table "pages" |
|
| 683 |
* |
|
| 684 |
* will be done in upgrade.php of the module MultiLingual |
|
| 685 |
* until the module is integrated completely |
|
| 686 |
*/ |
|
| 687 |
// $table_name = TABLE_PREFIX.'pages'; |
|
| 688 |
// $field_name = 'page_code'; |
|
| 689 |
// $description = "INT NOT NULL DEFAULT '0' AFTER `language`"; |
|
| 690 |
// add_modify_field_in_database($table_name,$field_name,$description); |
|
| 691 |
|
|
| 692 |
/********************************************************** |
|
| 693 | 682 |
* - Add field "menu_icon_0" to table "pages" |
| 694 | 683 |
*/ |
| 695 | 684 |
$table_name = TABLE_PREFIX.'pages'; |
| ... | ... | |
| 897 | 886 |
/********************************************************** |
| 898 | 887 |
* upgrade media directory index protect files |
| 899 | 888 |
*/ |
| 900 |
$dir = (WB_PATH.MEDIA_DIRECTORY); |
|
| 901 | 889 |
echo '<h4>Upgrade media directory '.MEDIA_DIRECTORY.'/ index.php protect files</h4>'; |
| 902 |
$aDebugMessage = rebuildFolderProtectFile($dir);
|
|
| 890 |
$aDebugMessage = rebuildFolderProtectFile(); |
|
| 903 | 891 |
if( sizeof( $aDebugMessage ) ){
|
| 904 | 892 |
echo '<span><strong>Upgrade '.sizeof( $aDebugMessage ).' directory '.MEDIA_DIRECTORY.'/ protect files</strong></span>'." $OK<br />"; |
| 905 | 893 |
} else {
|
| ... | ... | |
| 916 | 904 |
/********************************************************** |
| 917 | 905 |
* - Reformat/rebuild all existing access files |
| 918 | 906 |
*/ |
| 919 |
$sPagePath = (defined('PAGES_DIRECTORY') && (PAGES_DIRECTORY != '') ? PAGES_DIRECTORY : '');
|
|
| 920 |
$msg = rebuild_all_accessfiles(); |
|
| 921 |
$dir = (WB_PATH.PAGES_DIRECTORY); |
|
| 907 |
// $sPagePath = (defined('PAGES_DIRECTORY') && (PAGES_DIRECTORY != '') ? PAGES_DIRECTORY : '');
|
|
| 908 |
// $sPageDir = str_replace('\\','/',WB_PATH.$sPagePath);
|
|
| 909 |
// $aProtectedFiles = array( |
|
| 910 |
// $sPageDir.'/intro.php', |
|
| 911 |
// $sPageDir.'/intro/intro.php', |
|
| 912 |
// ); |
|
| 913 |
$msg = rebuild_all_accessfiles($bDebugModus); |
|
| 922 | 914 |
// $aDebugMessage = rebuildFolderProtectFile($dir); |
| 923 | 915 |
echo '<strong>'.implode ('<br />',$msg).'</strong>';
|
| 924 | 916 |
echo '</div>'; |
Also available in: Unified diff
! /framework/functions.php: started implementation of packet AccessFile in function rebuild_all_accessfiles()
+ /framework/functions.php::rm_full_dir() added additional argument to set list of protected files
! integrate the new processes into the upgrade-script.php
+ extended checks and informations in /modules/MultiLingual/upgrade.php
increasing version for module MultiLingual to 1.6.9