diff options
author | jrags <> | 2007-02-21 05:27:30 +0000 |
---|---|---|
committer | jrags <> | 2007-02-21 05:27:30 +0000 |
commit | 2aa645dd2697838711df45e4d2694a7001c1c58d (patch) | |
tree | f163175be637d18d0428160d4fca3d023f9aec7b /demos/activeblog | |
parent | 826b3eb8c84e7663a53361fb87774b76f98b10d4 (diff) |
As discussed, we would like to see an active blog demo, and like everything it must have a beginning.
Diffstat (limited to 'demos/activeblog')
-rw-r--r-- | demos/activeblog/index.php | 22 | ||||
-rw-r--r-- | demos/activeblog/protected/.htaccess | 1 | ||||
-rw-r--r-- | demos/activeblog/protected/App_Pages/Home.page | 1 | ||||
-rw-r--r-- | demos/activeblog/protected/application.xml | 102 | ||||
-rw-r--r-- | demos/activeblog/protected/urlmaps.xml | 4 |
5 files changed, 130 insertions, 0 deletions
diff --git a/demos/activeblog/index.php b/demos/activeblog/index.php new file mode 100644 index 00000000..c9808717 --- /dev/null +++ b/demos/activeblog/index.php @@ -0,0 +1,22 @@ +<?php +$frameworkPath=dirname(__FILE__).'/../../framework/prado.php'; + +/** The 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(); + +?>
\ No newline at end of file diff --git a/demos/activeblog/protected/.htaccess b/demos/activeblog/protected/.htaccess new file mode 100644 index 00000000..3418e55a --- /dev/null +++ b/demos/activeblog/protected/.htaccess @@ -0,0 +1 @@ +deny from all
\ No newline at end of file diff --git a/demos/activeblog/protected/App_Pages/Home.page b/demos/activeblog/protected/App_Pages/Home.page new file mode 100644 index 00000000..ff226d4e --- /dev/null +++ b/demos/activeblog/protected/App_Pages/Home.page @@ -0,0 +1 @@ +<h1>Welcome to Prado!</h1>
\ No newline at end of file diff --git a/demos/activeblog/protected/application.xml b/demos/activeblog/protected/application.xml new file mode 100644 index 00000000..75ba3b06 --- /dev/null +++ b/demos/activeblog/protected/application.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!--<application id="activeblog" Mode="Off">--> +<application id="activeblog" Mode="Debug"> +<!--<application id="activeblog" Mode="Normal">--> +<!--<application id="activeblog" Mode="Performance">--> + <paths> + <!-- Alias back to the WebRoot --> + <alias id="WebRoot" path=".." /> + + <!-- System Namespaces --> + <using namespace="System.Util.TVarDumper" /> +<!-- <using namespace="System.Security.IUserManager" />--> +<!-- <using namespace="System.Security.TUser" />--> + <using namespace="System.Web.UI.ActiveControls.*" /> + + <!-- Application Namespaces --> + <using namespace="Application.App_Controls.*"/> + <using namespace="Application.App_Modules.*"/> + <using namespace="Application.App_Portlets.*"/> + <using namespace="Application.App_Services.*"/> + + <!-- DAO Namespaces --> +<!-- <using namespace="Application.App_Data.classes.*"/>--> + </paths> + + <parameters> + <parameter id="SiteOffline" value="False"/> + + <!-- Are we allowing signups --> + <parameter id="AllowRegister" value="True"/> + + <!-- Email Controls --> + <parameter id="DisableEmails" value="False"/> + </parameters> + + <!-- modules configured and loaded for all services --> + <modules> + <!-- use TUrlMapping to map URL patterns to particular requests --> + <module id="friendly-url" class="System.Web.TUrlMapping" ConfigFile="Application.urlmaps"/> + <module + id="request" + class="System.Web.THttpRequest" + UrlFormat="Path" + EnableCookieValidation="True" + UrlManager="friendly-url"/> + + <module id="ErrorHandler" class="System.Exceptions.TErrorHandler" /> + + <!-- Custom Session Module --> + <module + id="session" + class="System.Web.THttpSession" + AutoStart="True" + UseCustomStorage="True" /> + + <!-- user manager module --> +<!-- <module id="users" class="Application.App_Modules.JUserManager"/>--> + + <!-- auth manager module --> +<!-- <module + id="auth" + class="Application.App_Modules.JAuthManager" + UserManager="users" + LoginPage="/Home"/>--> + + <!-- Modules for caching --> +<!-- <module id="SqliteCache" PrimaryCache="True" class="System.Caching.TSqliteCache"/>--> + </modules> + + <services> + <!-- Our main page service --> + <service id="page" class="System.Web.Services.TPageService" BasePath="Application.App_Pages"> + <modules> + <!-- Log module --> + <module id="log" class="System.Util.TLogRouter"> +<!-- <route class="TBrowserLogRoute"/>--> +<!-- <route class="TBrowserLogRoute" Categories="System.Web.UI.TPage"/>--> + <route + class="TFileLogRoute" + LogFile="System.log" + Categories="System" + Levels="Notice,Warning,Error,Alert,Fatal"/> + <route + class="TFileLogRoute" + LogFile="Application.log" + Categories="Application" + Levels="Info,Notice,Warning,Error,Alert,Fatal"/> + </module> + + <!-- Theme manager module --> + <module + id="themes" + class="System.Web.UI.TThemeManager" + BasePath="WebRoot.App_Themes" + BaseUrl="/App_Themes" /> + </modules> + +<!-- <pages MasterClass="Application.App_Layouts.DefaultLayout" />--> + </service> + </services> +</application>
\ No newline at end of file diff --git a/demos/activeblog/protected/urlmaps.xml b/demos/activeblog/protected/urlmaps.xml new file mode 100644 index 00000000..b8894155 --- /dev/null +++ b/demos/activeblog/protected/urlmaps.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<urls> + <url CaseSensitive="False" ServiceParameter="Home" pattern="/Home/?"/> +</urls> |