-- cgit v1.2.3 From 439b0b12dc8f6cbeb769fe4f2c0061ff9d3c9d31 Mon Sep 17 00:00:00 2001 From: carlgmathisen <> Date: Tue, 2 Dec 2008 00:02:51 +0000 Subject: php configuration type --- .gitattributes | 5 + demos/address-book/index_php.php | 27 ++++ demos/address-book/protected/application.php | 57 +++++++ demos/personal/index_php.php | 13 ++ demos/personal/protected/Pages/Layout.tpl | 2 +- demos/personal/protected/Pages/config.php | 18 +++ demos/personal/protected/application.php | 44 +++++ demos/personal/protected/application.xml | 7 +- framework/Data/TDataSourceConfig.php | 28 +++- framework/PradoBase.php | 6 +- framework/Security/TUserManager.php | 63 +++++++- framework/TApplication.php | 231 +++++++++++++++++++++++++-- framework/Web/Services/TPageService.php | 156 ++++++++++++++++-- framework/Web/Services/TSoapService.php | 38 +++-- 14 files changed, 637 insertions(+), 58 deletions(-) create mode 100644 demos/address-book/index_php.php create mode 100644 demos/address-book/protected/application.php create mode 100644 demos/personal/index_php.php create mode 100644 demos/personal/protected/Pages/config.php create mode 100644 demos/personal/protected/application.php diff --git a/.gitattributes b/.gitattributes index dd98e463..3b7e0920 100644 --- a/.gitattributes +++ b/.gitattributes @@ -695,7 +695,9 @@ buildscripts/wikibuilder/dumpHTML.php -text buildscripts/wikibuilder/external.png -text buildscripts/wikibuilder/main.css -text demos/address-book/index.php -text +demos/address-book/index_php.php -text demos/address-book/protected/.htaccess -text +demos/address-book/protected/application.php -text demos/address-book/protected/application.xml -text demos/address-book/protected/pages/AddressProvider.php -text demos/address-book/protected/pages/AddressRecord.php -text @@ -1115,6 +1117,7 @@ demos/northwind-db/protected/pages/NorthwindCrud.page -text demos/northwind-db/protected/pages/NorthwindCrud.php -text demos/northwind-db/protected/pages/northwind.gif -text demos/personal/index.php -text +demos/personal/index_php.php -text demos/personal/protected/.htaccess -text demos/personal/protected/Common/LoginPortlet.php -text demos/personal/protected/Common/LoginPortlet.tpl -text @@ -1130,7 +1133,9 @@ demos/personal/protected/Pages/Register.php -text demos/personal/protected/Pages/Resume.page -text demos/personal/protected/Pages/Settings.page -text demos/personal/protected/Pages/UserLogin.page -text +demos/personal/protected/Pages/config.php -text demos/personal/protected/Pages/config.xml -text +demos/personal/protected/application.php -text demos/personal/protected/application.xml -text demos/personal/themes/BlueTheme/buttons.skin -text demos/personal/themes/BlueTheme/icon_profile.gif -text diff --git a/demos/address-book/index_php.php b/demos/address-book/index_php.php new file mode 100644 index 00000000..17cf61ad --- /dev/null +++ b/demos/address-book/index_php.php @@ -0,0 +1,27 @@ +run(); + +?> \ No newline at end of file diff --git a/demos/address-book/protected/application.php b/demos/address-book/protected/application.php new file mode 100644 index 00000000..1a95e46e --- /dev/null +++ b/demos/address-book/protected/application.php @@ -0,0 +1,57 @@ + array( + 'id' => 'address-book', + 'mode' => 'Debug', + ), + 'paths' => array( + 'using'=>array( + 'System.Data.*', + 'System.Security.*', + 'System.Data.ActiveRecord.*', + 'System.Web.Services.*', + ), + 'aliases'=>array( + 'myapp' => '/Users/carlgmathisen/Sites/prado3/branch3.2/demos/personal/protected', + ) + ), + 'modules' => array( + 'sqlite-db' => array( + 'class' => 'TActiveRecordConfig', + 'database' => array( + 'ConnectionString' => 'sqlite:./protected/pages/sqlite.db', + ), + ), + 'users' => array( + 'class' => 'TUserManager', + 'properties' => array( + 'PasswordMode' => 'Clear', + ), + 'users' => array( + array( + 'name'=>'demo', + 'password'=>'demo' + ), + ), + ), + 'auth' => array( + 'class' => 'System.Security.TAuthManager', + 'properties' => array( + 'userManager' => 'users', + 'loginPage' => 'Login', + ), + ), + ), + 'services' => array( + 'soap' => array( + 'class' => 'TSoapService', + 'address-book' => array( + 'properties' => array( + 'provider' => 'Application.pages.AddressProvider', + 'ClassMaps' => 'AddressRecord', + ), + ), + ), + ), +); \ No newline at end of file diff --git a/demos/personal/index_php.php b/demos/personal/index_php.php new file mode 100644 index 00000000..cf57d82d --- /dev/null +++ b/demos/personal/index_php.php @@ -0,0 +1,13 @@ +run(); \ No newline at end of file diff --git a/demos/personal/protected/Pages/Layout.tpl b/demos/personal/protected/Pages/Layout.tpl index 3ffb5306..d650a689 100644 --- a/demos/personal/protected/Pages/Layout.tpl +++ b/demos/personal/protected/Pages/Layout.tpl @@ -8,7 +8,7 @@

Your Name Here

-

My Personal Site

+

<%$siteName%>