@@ -47,7 +47,11 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | protected function exec($check_only=false) |
| 49 | 49 | { |
| 50 | - if ($check_only) return true; // nothing to check, no arguments ... |
|
| 50 | + if ($check_only) |
|
| 51 | + { |
|
| 52 | + return true; |
|
| 53 | + } |
|
| 54 | + // nothing to check, no arguments ... |
|
| 51 | 55 | |
| 52 | 56 | // instanciate setup object and check authorisation |
| 53 | 57 | $this->check_setup_auth($this->config_user,$this->config_passwd,$this->domain); |
@@ -57,7 +61,10 @@ discard block |
||
| 57 | 61 | global $setup_info; |
| 58 | 62 | foreach($setup_info as $appname => $info) |
| 59 | 63 | { |
| 60 | - if ($info['currentver']) self::$egw_setup->register_hooks($appname); |
|
| 64 | + if ($info['currentver']) |
|
| 65 | + { |
|
| 66 | + self::$egw_setup->register_hooks($appname); |
|
| 67 | + } |
|
| 61 | 68 | } |
| 62 | 69 | $this->restore_db(); |
| 63 | 70 | |
@@ -65,7 +65,9 @@ discard block |
||
| 65 | 65 | foreach($GLOBALS['egw_setup']->db->select($GLOBALS['egw_setup']->applications_table,'*',false,__LINE__,__FILE__) as $row) |
| 66 | 66 | { |
| 67 | 67 | $app = $row['app_name']; |
| 68 | - if (!isset($setup_info[$app])) // app source no longer there |
|
| 68 | + if (!isset($setup_info[$app])) |
|
| 69 | + { |
|
| 70 | + // app source no longer there |
|
| 69 | 71 | { |
| 70 | 72 | $setup_info[$app] = array( |
| 71 | 73 | 'name' => $app, |
@@ -73,6 +75,7 @@ discard block |
||
| 73 | 75 | 'version' => 'deleted', |
| 74 | 76 | ); |
| 75 | 77 | } |
| 78 | + } |
|
| 76 | 79 | $setup_info[$app]['currentver'] = $row['app_version']; |
| 77 | 80 | $setup_info[$app]['enabled'] = $row['app_enabled']; |
| 78 | 81 | } |
@@ -212,7 +215,9 @@ discard block |
||
| 212 | 215 | if ($setup_info['depends'][$depkey]['status'] == False) |
| 213 | 216 | { |
| 214 | 217 | /* Only set this if it has not already failed to upgrade - Milosch */ |
| 215 | - if($setup_info[$key]['status'] != 'F')//&& $setup_info[$key]['status'] != 'C') |
|
| 218 | + if($setup_info[$key]['status'] != 'F') |
|
| 219 | + { |
|
| 220 | + //&& $setup_info[$key]['status'] != 'C') |
|
| 216 | 221 | { |
| 217 | 222 | /* Added check for status U - uninstalled apps carry this flag (upgrade from nothing == install). |
| 218 | 223 | * This should fix apps showing post-install dep failure when they are not yet installed. |
@@ -220,6 +225,7 @@ discard block |
||
| 220 | 225 | if($setup_info[$key]['status'] == 'C' || $setup_info[$key]['status'] == 'U') |
| 221 | 226 | { |
| 222 | 227 | $setup_info[$key]['status'] = 'D'; |
| 228 | + } |
|
| 223 | 229 | } |
| 224 | 230 | else |
| 225 | 231 | { |
@@ -292,7 +298,10 @@ discard block |
||
| 292 | 298 | */ |
| 293 | 299 | function check_db($setup_info=null) |
| 294 | 300 | { |
| 295 | - if (!$setup_info) $setup_info = $GLOBALS['setup_info']; |
|
| 301 | + if (!$setup_info) |
|
| 302 | + { |
|
| 303 | + $setup_info = $GLOBALS['setup_info']; |
|
| 304 | + } |
|
| 296 | 305 | |
| 297 | 306 | try { // catch DB errors |
| 298 | 307 | if (!$GLOBALS['egw_setup']->db->Link_ID) |
@@ -482,11 +491,14 @@ discard block |
||
| 482 | 491 | { |
| 483 | 492 | echo '<br>check_app_tables(): Checking: ' . $appname . ',table: ' . $val; |
| 484 | 493 | } |
| 485 | - if(!in_array($val,$tables) && !in_array(strtolower($val),$tables)) // names in tables might be lowercase |
|
| 494 | + if(!in_array($val,$tables) && !in_array(strtolower($val),$tables)) |
|
| 495 | + { |
|
| 496 | + // names in tables might be lowercase |
|
| 486 | 497 | { |
| 487 | 498 | if($GLOBALS['DEBUG']) |
| 488 | 499 | { |
| 489 | 500 | echo '<br>check_app_tables(): ' . $val . ' missing!'; |
| 501 | + } |
|
| 490 | 502 | } |
| 491 | 503 | if(!$any) |
| 492 | 504 | { |
@@ -543,9 +555,12 @@ discard block |
||
| 543 | 555 | $msg = lang('does not exist'); |
| 544 | 556 | return false; |
| 545 | 557 | } |
| 546 | - if (!@is_writeable($dir) && $_SERVER['HTTP_HOST']) // only do the check if we run by the webserver |
|
| 558 | + if (!@is_writeable($dir) && $_SERVER['HTTP_HOST']) |
|
| 559 | + { |
|
| 560 | + // only do the check if we run by the webserver |
|
| 547 | 561 | { |
| 548 | 562 | $msg = lang('is not writeable by the webserver'); |
| 563 | + } |
|
| 549 | 564 | return false; |
| 550 | 565 | } |
| 551 | 566 | if ($check_in_docroot) |
@@ -23,17 +23,23 @@ discard block |
||
| 23 | 23 | if (!isset($config['vfs_fstab']) || $config['vfs_fstab'] == json_encode($default=array( |
| 24 | 24 | '/' => 'sqlfs://$host/', |
| 25 | 25 | '/apps' => 'links://$host/apps', |
| 26 | - )) || $config['vfs_fstab'] == serialize($default)) // detect old serialized value too |
|
| 26 | + )) || $config['vfs_fstab'] == serialize($default)) |
|
| 27 | + { |
|
| 28 | + // detect old serialized value too |
|
| 27 | 29 | { |
| 28 | 30 | $config['vfs_storage_mode'] = 'fs'; |
| 29 | 31 | } |
| 32 | + } |
|
| 30 | 33 | elseif($config['vfs_fstab'] == json_encode($default_db=array( |
| 31 | 34 | '/' => 'sqlfs://$host/?storage=db', |
| 32 | 35 | '/apps' => 'links://$host/apps?storage=db', |
| 33 | - )) || $config['vfs_fstab'] == serialize($default_db)) // detect old serialized value too |
|
| 36 | + )) || $config['vfs_fstab'] == serialize($default_db)) |
|
| 37 | + { |
|
| 38 | + // detect old serialized value too |
|
| 34 | 39 | { |
| 35 | 40 | $config['vfs_storage_mode'] = 'db'; |
| 36 | 41 | } |
| 42 | + } |
|
| 37 | 43 | else |
| 38 | 44 | { |
| 39 | 45 | $config['vfs_storage_mode'] = 'custom'; |
@@ -45,11 +51,14 @@ discard block |
||
| 45 | 51 | 'custom' => lang('Custom set via %1','filemanager/cli.php mount'), |
| 46 | 52 | ) as $name => $label) |
| 47 | 53 | { |
| 48 | - if ($name != 'custom' || $name === $config['vfs_storage_mode']) // dont show custom, if not custom |
|
| 54 | + if ($name != 'custom' || $name === $config['vfs_storage_mode']) |
|
| 55 | + { |
|
| 56 | + // dont show custom, if not custom |
|
| 49 | 57 | { |
| 50 | 58 | $options .= '<option value="'.$name.($name === $config['vfs_storage_mode'] ? '" selected="selected' : ''). |
| 51 | 59 | '">'.htmlspecialchars($label)."</options>\n"; |
| 52 | 60 | } |
| 61 | + } |
|
| 53 | 62 | } |
| 54 | 63 | //echo "<pre>".htmlspecialchars($options)."</pre>\n"; |
| 55 | 64 | return $options; |
@@ -56,11 +56,18 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | function exec($check_only=false) |
| 58 | 58 | { |
| 59 | - if ($this->remote_id && $check_only) return true; // cant check for the remote site locally! |
|
| 59 | + if ($this->remote_id && $check_only) |
|
| 60 | + { |
|
| 61 | + return true; |
|
| 62 | + } |
|
| 63 | + // cant check for the remote site locally! |
|
| 60 | 64 | |
| 61 | 65 | $this->_check_header_access(); |
| 62 | 66 | |
| 63 | - if ($check_only) return true; |
|
| 67 | + if ($check_only) |
|
| 68 | + { |
|
| 69 | + return true; |
|
| 70 | + } |
|
| 64 | 71 | |
| 65 | 72 | $egw_info_backup = $GLOBALS['egw_info']; |
| 66 | 73 | $GLOBALS['egw_info'] = array ( |
@@ -92,7 +99,10 @@ discard block |
||
| 92 | 99 | $data['remote_hash'] = admin_cmd::remote_hash($data['install_id'],$data['config_passwd']); |
| 93 | 100 | } |
| 94 | 101 | catch(Exception $e) { |
| 95 | - if ($data['install_id']) $data['error'] .= $e->getMessage(); |
|
| 102 | + if ($data['install_id']) |
|
| 103 | + { |
|
| 104 | + $data['error'] .= $e->getMessage(); |
|
| 105 | + } |
|
| 96 | 106 | } |
| 97 | 107 | if ($this->hash_only) |
| 98 | 108 | { |
@@ -70,7 +70,10 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | return lang('No update necessary, domain %1(%2) is up to date.',$this->domain,$GLOBALS['egw_domain'][$this->domain]['db_type']); |
| 72 | 72 | } |
| 73 | - if ($check_only) return lang('Update necessary.'); |
|
| 73 | + if ($check_only) |
|
| 74 | + { |
|
| 75 | + return lang('Update necessary.'); |
|
| 76 | + } |
|
| 74 | 77 | |
| 75 | 78 | $setup_info = self::$egw_setup->detection->upgrade_exclude($setup_info); |
| 76 | 79 | |
@@ -119,7 +122,10 @@ discard block |
||
| 119 | 122 | } |
| 120 | 123 | $messages = ob_get_contents(); |
| 121 | 124 | ob_end_clean(); |
| 122 | - if ($messages && $this->verbose) echo strip_tags($messages)."\n"; |
|
| 125 | + if ($messages && $this->verbose) |
|
| 126 | + { |
|
| 127 | + echo strip_tags($messages)."\n"; |
|
| 128 | + } |
|
| 123 | 129 | |
| 124 | 130 | $this->restore_db(); |
| 125 | 131 | |
@@ -74,7 +74,10 @@ discard block |
||
| 74 | 74 | $GLOBALS['egw_info']['server']['header_admin_password'] = ''; |
| 75 | 75 | $GLOBALS['egw_info']['server']['setup_acl'] = ''; |
| 76 | 76 | |
| 77 | - if ($domain) $GLOBALS['egw_domain'][$domain] = $this->domain_defaults(); |
|
| 77 | + if ($domain) |
|
| 78 | + { |
|
| 79 | + $GLOBALS['egw_domain'][$domain] = $this->domain_defaults(); |
|
| 80 | + } |
|
| 78 | 81 | |
| 79 | 82 | $GLOBALS['egw_info']['server']['show_domain_selectbox'] = false; |
| 80 | 83 | $GLOBALS['egw_info']['server']['db_persistent'] = True; |
@@ -87,7 +90,10 @@ discard block |
||
| 87 | 90 | function domain_defaults($user='admin',$passwd='',$supported_db=null) |
| 88 | 91 | { |
| 89 | 92 | $null = null; |
| 90 | - if (is_null($supported_db)) $supported_db = $this->check_db_support($null); |
|
| 93 | + if (is_null($supported_db)) |
|
| 94 | + { |
|
| 95 | + $supported_db = $this->check_db_support($null); |
|
| 96 | + } |
|
| 91 | 97 | $default_db = count($supported_db) ? $supported_db[0] : 'mysqli'; |
| 92 | 98 | |
| 93 | 99 | return array( |
@@ -170,7 +176,10 @@ discard block |
||
| 170 | 176 | $var = array('DB_DOMAIN' => $domain); |
| 171 | 177 | foreach($data as $name => $value) |
| 172 | 178 | { |
| 173 | - if ($name == 'db_port' && !$value) $value = $this->default_db_ports[$data['db_type']]; |
|
| 179 | + if ($name == 'db_port' && !$value) |
|
| 180 | + { |
|
| 181 | + $value = $this->default_db_ports[$data['db_type']]; |
|
| 182 | + } |
|
| 174 | 183 | if ($name == 'config_passwd') |
| 175 | 184 | { |
| 176 | 185 | $var['CONFIG_PASS'] = self::is_hashed($value) ? $value : Api\Auth::encrypt_sql($value, $most_secure_pw_hash); |
@@ -188,7 +197,10 @@ discard block |
||
| 188 | 197 | $var = Array(); |
| 189 | 198 | foreach($egw_info['server'] as $name => $value) |
| 190 | 199 | { |
| 191 | - if ($name == 'header_admin_password' && $value && !self::is_hashed($value)) $value = Api\Auth::encrypt_sql($value, $most_secure_pw_hash); |
|
| 200 | + if ($name == 'header_admin_password' && $value && !self::is_hashed($value)) |
|
| 201 | + { |
|
| 202 | + $value = Api\Auth::encrypt_sql($value, $most_secure_pw_hash); |
|
| 203 | + } |
|
| 192 | 204 | if ($name == 'versions') |
| 193 | 205 | { |
| 194 | 206 | $name = 'mcrypt_version'; |
@@ -76,8 +76,14 @@ |
||
| 76 | 76 | } |
| 77 | 77 | $this->check_installed($this->domain,15); |
| 78 | 78 | |
| 79 | - if (!$this->admin_firstname) $this->set_defaults['admin_firstname'] = $this->admin_firstname = lang('Admin'); |
|
| 80 | - if (!$this->admin_lastname) $this->set_defaults['admin_lastname'] = $this->admin_lastname = lang('User'); |
|
| 79 | + if (!$this->admin_firstname) |
|
| 80 | + { |
|
| 81 | + $this->set_defaults['admin_firstname'] = $this->admin_firstname = lang('Admin'); |
|
| 82 | + } |
|
| 83 | + if (!$this->admin_lastname) |
|
| 84 | + { |
|
| 85 | + $this->set_defaults['admin_lastname'] = $this->admin_lastname = lang('User'); |
|
| 86 | + } |
|
| 81 | 87 | if (strpos($this->admin_email,'$') !== false) |
| 82 | 88 | { |
| 83 | 89 | $this->set_defaults['email'] = $this->admin_email = str_replace( |
@@ -32,14 +32,20 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function _check_header_access() |
| 34 | 34 | { |
| 35 | - if (!$this->header_secret && $this->header_admin_user) // no secret specified but header_admin_user/password |
|
| 35 | + if (!$this->header_secret && $this->header_admin_user) |
|
| 36 | + { |
|
| 37 | + // no secret specified but header_admin_user/password |
|
| 36 | 38 | { |
| 37 | 39 | if (!$this->uid) $this->uid = true; |
| 40 | + } |
|
| 38 | 41 | $this->set_header_secret($this->header_admin_user,$this->header_admin_password); |
| 39 | 42 | } |
| 40 | 43 | $secret = $this->_calc_header_secret($GLOBALS['egw_info']['server']['header_admin_user'], |
| 41 | 44 | $GLOBALS['egw_info']['server']['header_admin_password']); |
| 42 | - if ($this->uid === true) unset($this->uid); |
|
| 45 | + if ($this->uid === true) |
|
| 46 | + { |
|
| 47 | + unset($this->uid); |
|
| 48 | + } |
|
| 43 | 49 | |
| 44 | 50 | if ($this->header_secret != $secret) |
| 45 | 51 | { |
@@ -57,10 +63,13 @@ discard block |
||
| 57 | 63 | */ |
| 58 | 64 | public function set_header_secret($user,$pw) |
| 59 | 65 | { |
| 60 | - if ($this->uid || parent::save(false)) // we need to save first, to get the uid |
|
| 66 | + if ($this->uid || parent::save(false)) |
|
| 67 | + { |
|
| 68 | + // we need to save first, to get the uid |
|
| 61 | 69 | { |
| 62 | 70 | $this->header_secret = $this->_calc_header_secret($user,$pw); |
| 63 | 71 | } |
| 72 | + } |
|
| 64 | 73 | else |
| 65 | 74 | { |
| 66 | 75 | throw new Exception ('failed to set header_secret!'); |
@@ -78,7 +87,10 @@ discard block |
||
| 78 | 87 | */ |
| 79 | 88 | private function _calc_header_secret($header_admin_user=null,$header_admin_password=null) |
| 80 | 89 | { |
| 81 | - if (!self::is_md5($header_admin_password)) $header_admin_password = md5($header_admin_password); |
|
| 90 | + if (!self::is_md5($header_admin_password)) |
|
| 91 | + { |
|
| 92 | + $header_admin_password = md5($header_admin_password); |
|
| 93 | + } |
|
| 82 | 94 | |
| 83 | 95 | $secret = md5($this->uid.$header_admin_user.$header_admin_password); |
| 84 | 96 | //echo "header_secret='$secret' = md5('$this->uid'.'$header_admin_user'.'$header_admin_password')\n"; |
@@ -135,7 +147,10 @@ discard block |
||
| 135 | 147 | self::$egw_accounts_backup = $GLOBALS['egw']->accounts; |
| 136 | 148 | unset($GLOBALS['egw']->accounts); |
| 137 | 149 | } |
| 138 | - if ($this->config) self::$egw_setup->setup_account_object($this->config); |
|
| 150 | + if ($this->config) |
|
| 151 | + { |
|
| 152 | + self::$egw_setup->setup_account_object($this->config); |
|
| 153 | + } |
|
| 139 | 154 | } |
| 140 | 155 | if (is_object($GLOBALS['egw']->db) && $domain) |
| 141 | 156 | { |
@@ -184,7 +199,9 @@ discard block |
||
| 184 | 199 | self::_setup_enviroment($domain); |
| 185 | 200 | |
| 186 | 201 | // check the authentication if a header_admin_password is set, if not we dont have a header yet and no authentication |
| 187 | - if ($GLOBALS['egw_info']['server']['header_admin_password']) // if that's not given we dont have a header yet |
|
| 202 | + if ($GLOBALS['egw_info']['server']['header_admin_password']) |
|
| 203 | + { |
|
| 204 | + // if that's not given we dont have a header yet |
|
| 188 | 205 | { |
| 189 | 206 | if (!self::$egw_setup->check_auth($user,$pw,$GLOBALS['egw_info']['server']['header_admin_user'], |
| 190 | 207 | $GLOBALS['egw_info']['server']['header_admin_password']) && |
@@ -195,6 +212,7 @@ discard block |
||
| 195 | 212 | if (is_null($domain)) |
| 196 | 213 | { |
| 197 | 214 | throw new Api\Exception\NoPermission(lang('Access denied: wrong username or password for manage-header !!!'),21); |
| 215 | + } |
|
| 198 | 216 | } |
| 199 | 217 | else |
| 200 | 218 | { |
@@ -236,7 +254,10 @@ discard block |
||
| 236 | 254 | |
| 237 | 255 | $messages = array(); |
| 238 | 256 | |
| 239 | - if ($stop && !is_array($stop)) $stop = array($stop); |
|
| 257 | + if ($stop && !is_array($stop)) |
|
| 258 | + { |
|
| 259 | + $stop = array($stop); |
|
| 260 | + } |
|
| 240 | 261 | |
| 241 | 262 | $versions =& $GLOBALS['egw_info']['server']['versions']; |
| 242 | 263 | |
@@ -254,7 +275,10 @@ discard block |
||
| 254 | 275 | $messages[] = self::_echo_message($verbose,lang('EGroupware API version %1 found.',$versions['api'])); |
| 255 | 276 | } |
| 256 | 277 | $header_stage = self::$egw_setup->detection->check_header(); |
| 257 | - if ($stop && in_array($header_stage,$stop)) return true; |
|
| 278 | + if ($stop && in_array($header_stage,$stop)) |
|
| 279 | + { |
|
| 280 | + return true; |
|
| 281 | + } |
|
| 258 | 282 | |
| 259 | 283 | switch ($header_stage) |
| 260 | 284 | { |
@@ -274,9 +298,12 @@ discard block |
||
| 274 | 298 | unset($header_checks); // no further output of the header checks |
| 275 | 299 | |
| 276 | 300 | $domains = $GLOBALS['egw_domain']; |
| 277 | - if ($domain) // domain to check given |
|
| 301 | + if ($domain) |
|
| 302 | + { |
|
| 303 | + // domain to check given |
|
| 278 | 304 | { |
| 279 | 305 | if (!isset($GLOBALS['egw_domain'][$domain])) throw new Api\Exception\WrongUserinput(lang("Domain '%1' does NOT exist !!!",$domain), 92); |
| 306 | + } |
|
| 280 | 307 | |
| 281 | 308 | $domains = array($domain => $GLOBALS['egw_domain'][$domain]); |
| 282 | 309 | } |
@@ -324,10 +351,13 @@ discard block |
||
| 324 | 351 | { |
| 325 | 352 | self::$apps_to_upgrade[] = $app; |
| 326 | 353 | } |
| 327 | - if (!isset($data['enabled']) && isset($data['version'])) // jdots eg. is no app, but a template |
|
| 354 | + if (!isset($data['enabled']) && isset($data['version'])) |
|
| 355 | + { |
|
| 356 | + // jdots eg. is no app, but a template |
|
| 328 | 357 | { |
| 329 | 358 | self::$apps_to_install[] = $app; |
| 330 | 359 | } |
| 360 | + } |
|
| 331 | 361 | } |
| 332 | 362 | if (self::$apps_to_install) |
| 333 | 363 | { |
@@ -337,7 +367,10 @@ discard block |
||
| 337 | 367 | if (self::$apps_to_upgrade) |
| 338 | 368 | { |
| 339 | 369 | $db_stage = 4; |
| 340 | - if ($stop && in_array(10+$db_stage,$stop)) return $messages; |
|
| 370 | + if ($stop && in_array(10+$db_stage,$stop)) |
|
| 371 | + { |
|
| 372 | + return $messages; |
|
| 373 | + } |
|
| 341 | 374 | |
| 342 | 375 | throw new Api\Exception\WrongUserinput(lang('The following applications need to be upgraded:').' '.implode(', ',self::$apps_to_upgrade).'! '.lang('Use --update to do so.'),14); |
| 343 | 376 | } |
@@ -379,7 +412,10 @@ discard block |
||
| 379 | 412 | */ |
| 380 | 413 | static function _echo_message($verbose,$msg='') |
| 381 | 414 | { |
| 382 | - if ($verbose) echo $msg."\n"; |
|
| 415 | + if ($verbose) |
|
| 416 | + { |
|
| 417 | + echo $msg."\n"; |
|
| 418 | + } |
|
| 383 | 419 | |
| 384 | 420 | return $msg; |
| 385 | 421 | } |
@@ -30,14 +30,20 @@ discard block |
||
| 30 | 30 | include('../header.inc.php'); |
| 31 | 31 | } |
| 32 | 32 | // for an old header we need to setup a reference for the domains |
| 33 | -if (!is_array($GLOBALS['egw_domain'])) $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain']; |
|
| 33 | +if (!is_array($GLOBALS['egw_domain'])) |
|
| 34 | +{ |
|
| 35 | + $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain']; |
|
| 36 | +} |
|
| 34 | 37 | |
| 35 | 38 | /* If we included the header.inc.php, but it is somehow broken, cover ourselves... */ |
| 36 | 39 | if(!defined('EGW_SERVER_ROOT') && !defined('EGW_INCLUDE_ROOT')) |
| 37 | 40 | { |
| 38 | - if (defined('PHPGW_SERVER_ROOT') && defined('PHPGW_INCLUDE_ROOT')) // pre 1.2 install |
|
| 41 | + if (defined('PHPGW_SERVER_ROOT') && defined('PHPGW_INCLUDE_ROOT')) |
|
| 42 | + { |
|
| 43 | + // pre 1.2 install |
|
| 39 | 44 | { |
| 40 | 45 | define('EGW_SERVER_ROOT',PHPGW_SERVER_ROOT); |
| 46 | + } |
|
| 41 | 47 | define('EGW_INCLUDE_ROOT',PHPGW_INCLUDE_ROOT); |
| 42 | 48 | } |
| 43 | 49 | else // no install |
@@ -84,7 +90,10 @@ discard block |
||
| 84 | 90 | |
| 85 | 91 | if (!function_exists('version_compare') || version_compare(PHP_VERSION,$GLOBALS['egw_setup']->required_php_version,'<')) |
| 86 | 92 | { |
| 87 | - if (isset($_SERVER['HTTP_HOST'])) echo "<pre>\n"; |
|
| 93 | + if (isset($_SERVER['HTTP_HOST'])) |
|
| 94 | + { |
|
| 95 | + echo "<pre>\n"; |
|
| 96 | + } |
|
| 88 | 97 | echo "EGroupware now requires PHP {$GLOBALS['egw_setup']->required_php_version} or greater.\nYour PHP version is: ".PHP_VERSION."\n"; |
| 89 | 98 | echo 'Please contact your System Administrator.'; |
| 90 | 99 | exit; |