diff options
author | xue <> | 2005-11-16 21:23:12 +0000 |
---|---|---|
committer | xue <> | 2005-11-16 21:23:12 +0000 |
commit | 65acec4f65ddefcb3e9f9762d958be0539f3f71a (patch) | |
tree | 44928b527a4e88e8c4fb61976b779505a101f68a /demos/personal/index.php | |
parent | 455faa0a6a6f3c6d3fac751149781e3e3100cc7e (diff) |
Diffstat (limited to 'demos/personal/index.php')
-rw-r--r-- | demos/personal/index.php | 10 |
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 |