Changeset 14
- Timestamp:
- 07/19/08 12:10:03 (4 months ago)
- Files:
-
- trunk/shop/admin/protected/Messages/en/messages.xml (modified) (2 diffs)
- trunk/shop/admin/protected/Modules (added)
- trunk/shop/admin/protected/Modules/Dashboard (added)
- trunk/shop/admin/protected/Modules/Dashboard/CDashboard.php (added)
- trunk/shop/admin/protected/Modules/Dashboard/Home.page (added)
- trunk/shop/admin/protected/Modules/Dashboard/Home.php (added)
- trunk/shop/admin/protected/Pages/Home.page (deleted)
- trunk/shop/admin/protected/Pages/Home.php (deleted)
- trunk/shop/admin/protected/Pages/Login.php (modified) (2 diffs)
- trunk/shop/admin/protected/application.xml (modified) (2 diffs)
- trunk/shop/common/SystemCore (added)
- trunk/shop/common/SystemCore/CMasterLayout.php (added)
- trunk/shop/common/SystemCore/CMasterLayout.tpl (added)
- trunk/shop/common/SystemCore/CSystemCore.php (added)
- trunk/shop/common/SystemCore/CSystemCoreBase.php (added)
- trunk/shop/common/SystemCore/CSystemCoreModule.php (added)
- trunk/shop/common/SystemCore/CTSystemCorePageBase.php (added)
- trunk/shop/common/SystemCore/ISystemCorePage.php (added)
- trunk/shop/common/SystemCore/ctlayout.css.php (added)
- trunk/shop/common/Web/CMasterLayout.php (deleted)
- trunk/shop/common/Web/CMasterLayout.tpl (deleted)
- trunk/shop/common/Web/CTLoginPageBase.php (modified) (1 diff)
- trunk/shop/common/Web/CTPageBase.php (modified) (1 diff)
- trunk/shop/common/Web/ctlayout.css (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/shop/admin/protected/Messages/en/messages.xml
r13 r14 1 1 <?xml version="1.0"?> 2 2 <xliff version="1.0"> 3 <file source-language="EN" target-language="en" datatype="plaintext" original="messages" date="2008-07- 29T20:35:23Z" product-name="messages">3 <file source-language="EN" target-language="en" datatype="plaintext" original="messages" date="2008-07-30T16:06:46Z" product-name="messages"> 4 4 <body> 5 5 … … 43 43 <target>logout</target> 44 44 </trans-unit> 45 46 <trans-unit id="9"> 47 <source>dashboard</source> 48 <target/> 49 </trans-unit> 50 51 <trans-unit id="10"> 52 <source>mailinglist</source> 53 <target/> 54 </trans-unit> 55 56 <trans-unit id="11"> 57 <source>greetings</source> 58 <target></target> 59 </trans-unit> 45 60 </body> 46 61 </file> trunk/shop/admin/protected/Pages/Login.php
r12 r14 1 1 <?php 2 2 3 class Login extends CT loginPageBase3 class Login extends CTLoginPageBase 4 4 { 5 5 protected function getUsername() … … 20 20 protected function handleLoginSucceed() 21 21 { 22 $this->GotoPage( "Pages.Home");22 $this->GotoPage($this->Service->DefaultPage); 23 23 } 24 24 } trunk/shop/admin/protected/application.xml
r12 r14 4 4 <paths> 5 5 <using namespace="Common.*" /> 6 <using namespace="Common.SystemCore.*" /> 6 7 <using namespace="Common.Security.*" /> 7 8 <using namespace="Common.Data.*" /> … … 30 31 <module id="users" class="CUserManager" /> 31 32 <module id="auth" class="System.Security.TAuthManager" UserManager="users" /> 33 34 35 <module id="core" class="CSystemCore"> 36 <modules> 37 <module id="dashboard" class="Application.Modules.Dashboard.CDashboard"/> 38 <module id="mailinglist" class="Application.Modules.MailingList.CMailingList"/> 39 </modules> 40 </module> 32 41 </modules> 33 42 <services> 34 <service id="page" class="TPageService" BasePath="Application" DefaultPage=" Pages.Home">43 <service id="page" class="TPageService" BasePath="Application" DefaultPage="Modules.Dashboard.Home"> 35 44 </service> 36 45 </services> trunk/shop/common/Web/CTLoginPageBase.php
r12 r14 5 5 function btnLogin_Click($sender,$e) 6 6 { 7 if(!$this->User->IsGuest) 8 $this->handleLoginSucceed(); 9 7 10 $authManager=$this->Application->getModule('auth'); 8 if($authManager->login(strtolower($this->getUsername()),$this->getPassword()) === false)11 if($authManager->login(strtolower($this->getUsername()),$this->getPassword()) === false) 9 12 { 10 13 $this->handleLoginFailed(); trunk/shop/common/Web/CTPageBase.php
r12 r14 24 24 public function GotoHome() 25 25 { 26 $this->GotoPage( "Pages.Home");26 $this->GotoPage($this->Service->DefaultPage); 27 27 } 28 28
