summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php5
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();