X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=e2b24a861b6296589511f8487c05c112e1af721f;hp=ffd7e7e3d9a4855542ffb98ea3594217956c4012;hb=39507eea2eedc1d05d5467ebd14ea8ed8e7c9032;hpb=b44a5c35c5978cd6d518fca5d36b8540102e2312 diff --git a/phpfspot.class.php b/phpfspot.class.php index ffd7e7e..e2b24a8 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -54,6 +54,10 @@ class PHPFSPOT { } $this->db = new PHPFSPOT_DB($this, $this->cfg->fspot_db); + if(!is_writeable($this->cfg->fspot_db)) { + print $this->cfg->fspot_db ." is not writeable for user ". $this->getuid() ."\n"; + exit(1); + } if(!is_writeable(dirname($this->cfg->phpfspot_db))) { print dirname($this->cfg->phpfspot_db) .": directory is not writeable!";