Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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
 
8
if(!is_file($frameworkPath))
9
	die("Unable to find prado framework path $frameworkPath.");
10
if(!is_writable($assetsPath))
11
	die("Please make sure that the directory $assetsPath is writable by Web server process.");
12
if(!is_writable($runtimePath))
13
	die("Please make sure that the directory $runtimePath is writable by Web server process.");
14
 
15
/** SQLite Northwind database file **/
16
$sqlite_dir = $basePath.'/protected/data';
17
$sqlite_db = $sqlite_dir.'/Northwind.db';
18
if(!is_writable($sqlite_dir))
19
	die("Please make sure that the directory $sqlite_dir is writable by Web server process.");
20
if(!is_writable($sqlite_db))
21
	die("Please make sure that the sqlite database file $sqlite_db is writable by Web server process.");
22
 
23
require_once($frameworkPath);
24
 
25
$application=new TApplication;
26
$application->run();
27
 
28
?>