use proper file mode when testing config file for write premissions

remotes/origin/stable
Robin 15 years ago
parent cd1ffd912b
commit 15a3949811
  1. 2
      inc/templates/adminform.php

@ -4,7 +4,7 @@ global $CONFIG_ENABLEBACKUP;
global $CONFIG_DATADIRECTORY_ROOT; global $CONFIG_DATADIRECTORY_ROOT;
global $CONFIG_BACKUPDIRECTORY; global $CONFIG_BACKUPDIRECTORY;
global $CONFIG_ERROR; global $CONFIG_ERROR;
$f=@fopen($SERVERROOT.'/config/config.php','r+'); $f=@fopen($SERVERROOT.'/config/config.php','a+');
if(!$f) die('Error: Config file (config/config.php) is not writable for the webserver.<br/>'); if(!$f) die('Error: Config file (config/config.php) is not writable for the webserver.<br/>');
@fclose($f); @fclose($f);
if(!isset($fillDB)) $fillDB=true; if(!isset($fillDB)) $fillDB=true;

Loading…
Cancel
Save