projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b68f19
)
check if directory of phpfspot.db is writeable
author
Andreas Unterkircher
<unki@netshadow.at>
Sun, 15 Jul 2007 08:37:02 +0000
(08:37 +0000)
committer
Andreas Unterkircher
<unki@netshadow.at>
Sun, 15 Jul 2007 08:37:02 +0000
(08:37 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@205
fa6a889d
-dae6-447d-9e79-
4ba9a3039384
phpfspot.class.php
patch
|
blob
|
history
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index 4cdf3039541794ee1a4fe9550df2a7c440722321..ba94884fe4a215f8a9a282bdacc13381d6bd879a 100644
(file)
--- a/
phpfspot.class.php
+++ b/
phpfspot.class.php
@@
-23,6
+23,12
@@
class PHPFSPOT {
$this->cfg = new PHPFSPOT_CFG;
$this->db = new PHPFSPOT_DB(&$this, $this->cfg->fspot_db);
+
+ if(!is_writeable(dirname($this->cfg->phpfspot_db))) {
+ print dirname($this->cfg->phpfspot_db) .": directory is not writeable!";
+ exit(1);
+ }
+
$this->cfg_db = new PHPFSPOT_DB(&$this, $this->cfg->phpfspot_db);
$this->check_config_table();