| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
$basePath=dirname(__FILE__);
|
|
|
4 |
$frameworkPath=$basePath.'/../../framework/prado.php';
|
|
|
5 |
$assetsPath=$basePath.'/assets';
|
|
|
6 |
$runtimePath=$basePath.'/protected/runtime';
|
|
|
7 |
$dataPath=$basePath.'/protected/Data';
|
|
|
8 |
|
|
|
9 |
if(!is_writable($assetsPath))
|
|
|
10 |
die("Please make sure that the directory $assetsPath is writable by Web server process.");
|
|
|
11 |
if(!is_writable($runtimePath))
|
|
|
12 |
die("Please make sure that the directory $runtimePath is writable by Web server process.");
|
|
|
13 |
if(!is_writable($dataPath))
|
|
|
14 |
die("Please make sure that the directory $dataPath is writable by Web server process.");
|
|
|
15 |
if(!extension_loaded("sqlite"))
|
|
|
16 |
die("SQLite PHP extension is required.");
|
|
|
17 |
|
|
|
18 |
require_once($frameworkPath);
|
|
|
19 |
|
|
|
20 |
$application=new TApplication;
|
|
|
21 |
$application->run();
|
|
|
22 |
|
|
|
23 |
?>
|