summaryrefslogtreecommitdiff
path: root/demos/personal/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal/index.php')
-rw-r--r--demos/personal/index.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/demos/personal/index.php b/demos/personal/index.php
index d5f7caf3..4b7e8a5f 100644
--- a/demos/personal/index.php
+++ b/demos/personal/index.php
@@ -1,8 +1,14 @@
<?php
-require_once(dirname(__FILE__).'/../../framework/prado.php');
+define('APPLICATION_PATH',dirname(__FILE__));
-$application=new TApplication(dirname(__FILE__).'/protected/application.xml',dirname(__FILE__).'/protected/application.cache');
+if(!is_writable(APPLICATION_PATH.'/protected/Data'))
+ die('Please make sure that the directory "'.APPLICATION_PATH.'/protected/Data'.'" is writable by Web server process.');
+if(!is_writable(APPLICATION_PATH.'/assets'))
+ die('Please make sure that the directory "'.APPLICATION_PATH.'/assets'.'" is writable by Web server process.');
+
+require_once(APPLICATION_PATH.'/../../framework/prado.php');
+$application=new TApplication(APPLICATION_PATH.'/protected/application.xml',APPLICATION_PATH.'/protected/Data/application.cache');
$application->run();
?> \ No newline at end of file