From 5369d6897b8d04f8733b852a16639b949077b0b8 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 21 Jul 2007 17:55:35 +0000 Subject: [PATCH 1/1] issue52, check if phpfspot.db is writeable git-svn-id: file:///var/lib/svn/phpfspot/trunk@236 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.25.1