Project

General

Profile

« Previous | Next » 

Revision 1822

Added by Dietmar almost 12 years ago

! update installer, strict difference between table structure and data
  1. fixed wrong constant for settings table
    ! update redirct to upgrade-script in /admin/start(index.php

View differences:

index.php
14 14
 * @lastmodified    $Date$
15 15
 *
16 16
 */
17
//$string = "pages,pages_view,pages_add,pages_add_l0,pages_settings,pages_modify,pages_intro,pages_delete,media,media_view,media_upload,media_rename,media_delete,media_create,addons,modules,modules_view,modules_install,modules_uninstall,templates,templates_view,templates_install,templates_uninstall,languages,languages_view,languages_install,languages_uninstall,settings,settings_basic,settings_advanced,access,users,users_view,users_add,users_modify,users_delete,groups,groups_view,groups_add,groups_modify,groups_delete,admintools
18
//media,media_create,media_upload,media_view,preferences,preferences_view,pages,pages_modify,pages_view";
19
//$regex = "/(pages)+[a-z]*[_]([a-z_0-9]+)[^,]/im";
20
//preg_match_all ($regex, $string, $output);
21
//
22 17

  
23 18
$config_file = realpath('../../config.php');
24 19
if(file_exists($config_file) && !defined('WB_URL'))
......
79 74
	if($wb_revision=$database->get_one($sql)) {
80 75
	}
81 76
	if (version_compare($wb_revision, REVISION ) < 0) {
82
		if(!headers_sent()) {
83
			header('Location: '.WB_URL.'/upgrade-script.php');
84
		    exit;
85
		} else {
86
		    echo "<p style=\"text-align:center;\"> The <strong>upgrade script</strong> could not be start automatically.\n" .
87
		         "Please click <a style=\"font-weight:bold;\" " .
88
		         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
89
		    exit;
90
		}
77
echo "<p style=\"text-align:center;\"> If the <strong>upgrade script</strong> could not be start automatically.\n" .
78
     "Please click <a style=\"font-weight:bold;\" " .
79
     "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
80

  
81
echo "<script type=\"text/javascript\">
82
<!--
83
// Get the location object
84
var locationObj = document.location;
85
// Set the value of the location object
86
document.location = '".WB_URL."/upgrade-script.php';
87
-->
88
</script>";
89

  
90
//		if(!headers_sent()) {
91
//			header('Location: '.WB_URL.'/upgrade-script.php');
92
//		    exit;
93
//		} else {
94
//		    echo "<p style=\"text-align:center;\"> The <strong>upgrade script</strong> could not be start automatically.\n" .
95
//		         "Please click <a style=\"font-weight:bold;\" " .
96
//		         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
97
//		    exit;
98
//		}
91 99
	}
92 100
}
93 101
// ---------------------------------------

Also available in: Unified diff