Changeset 15825 for branches/beta/html/frontparts/bloc/login.php
- Timestamp:
- 2007/09/21 12:14:28 (19 years ago)
- File:
-
- 1 edited
-
branches/beta/html/frontparts/bloc/login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/html/frontparts/bloc/login.php
r17 r15825 6 6 */ 7 7 class LC_LoginPage { 8 var $tpl_login_email;9 function LC_LoginPage() {10 /** ɬ¤ºÊѹ¹¤¹¤ë **/11 $this->tpl_mainpage = BLOC_PATH . 'login.tpl'; // ¥á¥¤¥ó12 $this->tpl_login = false;13 $this->tpl_disable_logout = false;14 }8 var $tpl_login_email; 9 function LC_LoginPage() { 10 /** ɬ¤ºÊѹ¹¤¹¤ë **/ 11 $this->tpl_mainpage = 'include/bloc/login.tpl'; // ¥á¥¤¥ó 12 $this->tpl_login = false; 13 $this->tpl_disable_logout = false; 14 } 15 15 } 16 16 … … 22 22 // ¥í¥°¥¤¥óȽÄê 23 23 if($objCustomer->isLoginSuccess()) { 24 $objSubPage->tpl_login = true;25 $objSubPage->tpl_user_point = $objCustomer->getValue('point');26 $objSubPage->tpl_name1 = $objCustomer->getValue('name01');27 $objSubPage->tpl_name2 = $objCustomer->getValue('name02');24 $objSubPage->tpl_login = true; 25 $objSubPage->tpl_user_point = $objCustomer->getValue('point'); 26 $objSubPage->tpl_name1 = $objCustomer->getValue('name01'); 27 $objSubPage->tpl_name2 = $objCustomer->getValue('name02'); 28 28 } else { 29 // ¥¯¥Ã¥¡¼È½Äê30 $objSubPage->tpl_login_email = $objCookie->getCookie('login_email');31 if($objSubPage->tpl_login_email != "") {32 $objSubPage->tpl_login_memory = "1";33 }34 35 // POST¤µ¤ì¤Æ¤¤¿ID¤¬¤¢¤ë¾ì¹ç¤ÏÍ¥À褹¤ë¡£36 if($_POST['login_email'] != "") {37 $objSubPage->tpl_login_email = $_POST['login_email'];38 }29 // ¥¯¥Ã¥¡¼È½Äê 30 $objSubPage->tpl_login_email = $objCookie->getCookie('login_email'); 31 if($objSubPage->tpl_login_email != "") { 32 $objSubPage->tpl_login_memory = "1"; 33 } 34 35 // POST¤µ¤ì¤Æ¤¤¿ID¤¬¤¢¤ë¾ì¹ç¤ÏÍ¥À褹¤ë¡£ 36 if($_POST['login_email'] != "") { 37 $objSubPage->tpl_login_email = $_POST['login_email']; 38 } 39 39 } 40 40 41 41 $objSubPage->tpl_disable_logout = lfCheckDisableLogout(); 42 $objSubView = new SC_ SiteView();42 $objSubView = new SC_UserView(USER_PATH); 43 43 $objSubView->assignobj($objSubPage); 44 44 $objSubView->display($objSubPage->tpl_mainpage); 45 45 //----------------------------------------------------------------------------------------------------------------------------------- 46 46 function lfCheckDisableLogout() { 47 global $arrDISABLE_LOGOUT;48 49 $nowpage = $_SERVER['PHP_SELF'];50 51 foreach($arrDISABLE_LOGOUT as $val) {52 if($nowpage == $val) {53 return true;54 }55 }56 return false;47 global $arrDISABLE_LOGOUT; 48 49 $nowpage = $_SERVER['PHP_SELF']; 50 51 foreach($arrDISABLE_LOGOUT as $val) { 52 if($nowpage == $val) { 53 return true; 54 } 55 } 56 return false; 57 57 } 58 58 ?>
Note: See TracChangeset
for help on using the changeset viewer.
