Changeset 12
- Timestamp:
- 07/18/08 13:52:01 (4 months ago)
- Files:
-
- trunk/shop/admin/css (added)
- trunk/shop/admin/css/.htaccess (added)
- trunk/shop/admin/css/common.css (added)
- trunk/shop/admin/css/ie-login.css (added)
- trunk/shop/admin/css/login.css (added)
- trunk/shop/admin/img (added)
- trunk/shop/admin/img/.htaccess (added)
- trunk/shop/admin/img/logo.png (added)
- trunk/shop/admin/index.php (modified) (2 diffs)
- trunk/shop/admin/protected/Engine/CAdminPageBase.php (added)
- trunk/shop/admin/protected/Messages (added)
- trunk/shop/admin/protected/Messages/en (added)
- trunk/shop/admin/protected/Messages/en/messages.xml (added)
- trunk/shop/admin/protected/Pages/Home.php (added)
- trunk/shop/admin/protected/Pages/Login.page (added)
- trunk/shop/admin/protected/Pages/Login.php (added)
- trunk/shop/admin/protected/application.xml (modified) (2 diffs)
- trunk/shop/common/CDatabase.php (deleted)
- trunk/shop/common/CDatabaseBase.php (deleted)
- trunk/shop/common/CTApplication.php (added)
- trunk/shop/common/CUser.php (deleted)
- trunk/shop/common/CUserManager.php (deleted)
- trunk/shop/common/Data (added)
- trunk/shop/common/Data/CDatabase.php (added)
- trunk/shop/common/Data/CDatabaseBase.php (added)
- trunk/shop/common/Helper.php (modified) (1 diff)
- trunk/shop/common/Security (added)
- trunk/shop/common/Security/CUser.php (added)
- trunk/shop/common/Security/CUserManager.php (added)
- trunk/shop/common/Web (added)
- trunk/shop/common/Web/CTLoginPageBase.php (added)
- trunk/shop/common/Web/CTPageBase.php (added)
- trunk/shop/common/Web/CTSecurePageBase.php (added)
- trunk/shop/common/phpmailer (added)
- trunk/shop/common/phpmailer/ChangeLog.txt (added)
- trunk/shop/common/phpmailer/LICENSE (added)
- trunk/shop/common/phpmailer/README (added)
- trunk/shop/common/phpmailer/class.phpmailer.php (added)
- trunk/shop/common/phpmailer/class.pop3.php (added)
- trunk/shop/common/phpmailer/class.smtp.php (added)
- trunk/shop/common/phpmailer/language (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-br.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-ca.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-cz.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-de.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-dk.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-en.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-es.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-et.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-fi.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-fo.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-fr.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-hu.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-it.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-ja.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-nl.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-no.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-pl.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-ro.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-ru.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-se.php (added)
- trunk/shop/common/phpmailer/language/phpmailer.lang-tr.php (added)
- trunk/shop/schema/postgresql/core.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/shop/admin/index.php
r11 r12 1 1 <?php 2 /* addling common to include path */ 2 3 $frameworkPath='../framework/prado.php'; 3 4 … … 16 17 17 18 require_once($frameworkPath); 18 require_once('../common/CDatabaseBase.php');19 require_once('../common/Helper.php');20 require_once('../common/CUserManager.php');21 require_once('../common/CUser.php');22 19 23 $application=new TApplication; 20 require_once('../common/CTApplication.php'); 21 require_once('../common/phpmailer/class.phpmailer.php'); 22 23 $common_path = dirname(__FILE__) . '/../common'; 24 Prado::setPathOfAlias("Common",$common_path); 25 26 $application=new CTApplication(); 24 27 $application->run(); 25 26 28 ?> trunk/shop/admin/protected/application.xml
r11 r12 3 3 <application id="Prado Commerce" mode="Debug"> 4 4 <paths> 5 <using namespace="System.Web.UI.ActiveControls.*" /> 6 <using namespace="Application.Common.*" /> 7 <using namespace="Application.Engine.Controls.*" /> 5 <using namespace="Common.*" /> 6 <using namespace="Common.Security.*" /> 7 <using namespace="Common.Data.*" /> 8 <using namespace="Common.Web.*" /> 9 <using namespace="Application.Engine.*" /> 10 11 <using namespace="System.Web.UI.ActiveControls.*" /> 12 <using namespace="System.I18N.*" /> 8 13 </paths> 9 14 <modules> 15 <module id="globalization" class="TGlobalization"> 16 <translation type="XLIFF" 17 culture="en" defaultculture="en" 18 source="Application.Messages" 19 marker="!" 20 autosave="true" cache="false" /> 21 22 </module> 23 10 24 <module id="database" class="CDatabase" 11 25 ServerType="PostgreSQL" … … 14 28 Username="postgres" 15 29 Password="postgres"/> 16 </module> 30 <module id="users" class="CUserManager" /> 31 <module id="auth" class="System.Security.TAuthManager" UserManager="users" /> 17 32 </modules> 18 33 <services> 19 34 <service id="page" class="TPageService" BasePath="Application" DefaultPage="Pages.Home"> 20 <modules>21 <!--22 <module id="users" class="Application.Engine.CUserManager" />23 <module id="auth" class="System.Security.TAuthManager" UserManager="users" LoginPage="Engine.Login" />24 -->25 </modules>26 35 </service> 27 36 </services> trunk/shop/common/Helper.php
r3 r12 13 13 class Helper 14 14 { 15 public $ADMINISTRATOR = 'A'; 16 15 17 function ToArgString($str,$args=null) 16 18 { trunk/shop/schema/postgresql/core.sql
r11 r12 25 25 ----------------------------------------------------------------------------------- 26 26 27 select table_drop_if_exist('tblconfig'); 28 create table tblconfig 29 ( 30 keyname varchar(50) primary key, 31 keyvalue text 32 ); 33 34 ----------------------------------------------------------------------------------- 35 27 36 select table_drop_if_exist('tbluser'); 28 37 create table tbluser … … 40 49 acl text 41 50 ); 51 52 ----------------------------------------------------------------------------------- 53 54 insert into tblconfig(keyname,keyvalue) values('system_mail_from',''); 55 insert into tblconfig(keyname,keyvalue) values('system_mail_server','');
