| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
$frameworkPath='../../framework/prado.php';
|
|
|
4 |
|
|
|
5 |
/** The directory checks may be removed if performance is required **/
|
|
|
6 |
$basePath=dirname(__FILE__);
|
|
|
7 |
$assetsPath=$basePath."/assets";
|
|
|
8 |
$runtimePath=$basePath."/protected/runtime";
|
|
|
9 |
|
|
|
10 |
$sqliteDbDir = $basePath."/protected/App_Code";
|
|
|
11 |
$sqliteDb = $sqliteDbDir."/chat.db";
|
|
|
12 |
|
|
|
13 |
if(!is_file($frameworkPath))
|
|
|
14 |
die("Unable to find prado framework path $frameworkPath.");
|
|
|
15 |
if(!is_writable($assetsPath))
|
|
|
16 |
die("Please make sure that the directory $assetsPath is writable by Web server process.");
|
|
|
17 |
if(!is_writable($runtimePath))
|
|
|
18 |
die("Please make sure that the directory $runtimePath is writable by Web server process.");
|
|
|
19 |
if(!is_writable($sqliteDbDir))
|
|
|
20 |
die("Please make sure that the directory $sqliteDbDir is writable by Web server process.");
|
|
|
21 |
if(!is_writable($sqliteDb))
|
|
|
22 |
die("Please make sure that the sqlite file $sqliteDb is writable by Web server process.");
|
|
|
23 |
|
|
|
24 |
require_once($frameworkPath);
|
|
|
25 |
|
|
|
26 |
$application=new TApplication;
|
|
|
27 |
$application->run();
|
|
|
28 |
|
|
|
29 |
?>
|