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='../../framework/pradolite.php';
5
$frameworkPath='../../framework/prado.php';
6
$assetsPath=$basePath."/assets";
7
$runtimePath=$basePath."/protected/runtime";
8
 
9
$sqlite_dir = $basePath."/protected/App_Data/SQLite";
10
$sqlite_db = $sqlite_dir.'/time-tracker.db';
11
 
12
if(!is_file($frameworkPath))
13
	die("Unable to find prado framework path $frameworkPath.");
14
if(!is_writable($assetsPath))
15
	die("Please make sure that the directory $assetsPath is writable by Web server process.");
16
if(!is_writable($runtimePath))
17
	die("Please make sure that the directory $runtimePath is writable by Web server process.");
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_dir is writable by Web server process.");
22
 
23
require_once($frameworkPath);
24
 
25
function h($text)
26
{
27
	$app = Prado::getApplication()->getGlobalization();
28
	$charset = $app ? $app->getCharset() : 'UTF-8';
29
	return htmlentities($text, ENT_QUOTES, $charset);
30
}
31
 
32
$application=new TApplication;
33
$application->run();
34
 
35
?>