diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-07-21 17:55:35 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-07-21 17:55:35 +0000 |
commit | 5369d6897b8d04f8733b852a16639b949077b0b8 (patch) | |
tree | 0120b37f87a89186c94feeed68d08fd61c5edfe0 /phpfspot.class.php | |
parent | 256fffa697fbe6247384d3d3f6894a4c874883b5 (diff) |
issue52, check if phpfspot.db is writeable
git-svn-id: file:///var/lib/svn/phpfspot/trunk@236 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index ffb511d..23eb541 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -58,8 +58,13 @@ class PHPFSPOT { } $this->cfg_db = new PHPFSPOT_DB(&$this, $this->cfg->phpfspot_db); + if(!is_writeable($this->cfg->phpfspot_db)) { + print $this->cfg->phpfspot_db ." is not writeable for user ". $this->getuid() ."\n"; + exit(1); + } $this->check_config_table(); + $this->tmpl = new PHPFSPOT_TMPL($this); $this->get_tags(); |