git-svn-id: https://svn.salfter.gotdns.org/svn/compmgmt/trunk@166 1b90f75b-8b96-4784-87c0-14078182fce6
This commit is contained in:
23
index.php
Normal file
23
index.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
$frameworkPath='/usr/share/webapps/prado/3.1.1_p2290/htdocs/prado.php';
|
||||
|
||||
// The following directory checks may be removed if performance is required
|
||||
$basePath=dirname(__FILE__);
|
||||
$assetsPath=$basePath.'/assets';
|
||||
$runtimePath=$basePath.'/protected/runtime';
|
||||
|
||||
if(!is_file($frameworkPath))
|
||||
die("Unable to find prado framework path $frameworkPath.");
|
||||
if(!is_writable($assetsPath))
|
||||
die("Please make sure that the directory $assetsPath is writable by Web server process.");
|
||||
if(!is_writable($runtimePath))
|
||||
die("Please make sure that the directory $runtimePath is writable by Web server process.");
|
||||
|
||||
|
||||
require_once($frameworkPath);
|
||||
|
||||
$application=new TApplication;
|
||||
$application->run();
|
||||
|
||||
?>
|
||||
1
protected/.htaccess
Normal file
1
protected/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
deny from all
|
||||
39
protected/application.xml
Normal file
39
protected/application.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<application id="compmgmt" mode="Debug">
|
||||
<!-- alias definitions and namespace usings
|
||||
<paths>
|
||||
<alias id="myalias" path="./lib" />
|
||||
<using namespace="Application.common.*" />
|
||||
</paths>
|
||||
-->
|
||||
|
||||
<!-- configurations for modules -->
|
||||
<modules>
|
||||
<!-- Remove this comment mark to enable caching
|
||||
<module id="cache" class="System.Caching.TDbCache" />
|
||||
-->
|
||||
|
||||
<!-- Remove this comment mark to enable PATH url format
|
||||
<module id="request" class="THttpRequest" UrlFormat="Path" />
|
||||
-->
|
||||
|
||||
<!-- Remove this comment mark to enable logging
|
||||
<module id="log" class="System.Util.TLogRouter">
|
||||
<route class="TBrowserLogRoute" Categories="System" />
|
||||
</module>
|
||||
-->
|
||||
</modules>
|
||||
|
||||
<!-- configuration for available services -->
|
||||
<services>
|
||||
<service id="page" class="TPageService" DefaultPage="Home" />
|
||||
</services>
|
||||
|
||||
<!-- application parameters
|
||||
<parameters>
|
||||
<parameter id="param1" value="value1" />
|
||||
<parameter id="param2" value="value2" />
|
||||
</parameters>
|
||||
-->
|
||||
</application>
|
||||
8
protected/pages/Home.page
Normal file
8
protected/pages/Home.page
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Welcome to PRADO</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to PRADO!</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user