Changeset 20259
- Timestamp:
- 2011/02/20 18:23:10 (13 years ago)
- Location:
- branches/version-2_5-dev/data/class/pages/error
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/error/LC_Page_Error_DispError.php
r20136 r20259 24 24 25 25 // {{{ requires 26 require_once(CLASS_REALDIR . "pages/ error/LC_Page_Error.php");26 require_once(CLASS_REALDIR . "pages/admin/LC_Page_Admin.php"); 27 27 28 28 /** … … 33 33 * @version $Id$ 34 34 */ 35 class LC_Page_Error_DispError extends LC_Page_ Error{35 class LC_Page_Error_DispError extends LC_Page_Admin { 36 36 37 37 // }}} … … 45 45 function init() { 46 46 parent::init(); 47 $this->template = LOGIN_FRAME; 47 48 $this->tpl_mainpage = 'login_error.tpl'; 48 49 $this->tpl_title = 'ログインエラー'; -
branches/version-2_5-dev/data/class/pages/error/LC_Page_Error_SystemError.php
r20136 r20259 73 73 */ 74 74 function action(){ 75 $this->adminPage = SC_Utils_Ex::sfIsAdminFunction();76 77 if ($this->adminPage) {78 $this->tpl_mainpage = 'login_error.tpl';79 $this->frame = LOGIN_FRAME;80 } else {81 $this->frame = SITE_FRAME;82 }83 84 $objView = null;85 if (SC_Display::detectDevice() == DEVICE_TYPE_MOBILE && $this->adminPage == false) {86 $objView = new SC_InstallView(MOBILE_TEMPLATE_REALDIR, MOBILE_COMPILE_REALDIR);87 } elseif($this->adminPage) {88 $objView = new SC_AdminView();89 } else {90 $objView = new SC_InstallView(TEMPLATE_REALDIR, COMPILE_REALDIR);91 }92 93 75 $this->tpl_error = "システムエラーが発生しました。<br />大変お手数ですが、サイト管理者までご連絡ください。"; 94 95 $objView->assignobj($this);96 $objView->display($this->frame);97 76 98 77 if (DEBUG_MODE) { … … 106 85 } 107 86 } 87 88 /** 89 * Page のレスポンス送信. 90 * 91 * @return void 92 */ 93 function sendResponse() { 94 $this->adminPage = SC_Utils_Ex::sfIsAdminFunction(); 95 96 if ($this->adminPage) { 97 $this->tpl_mainpage = 'login_error.tpl'; 98 $this->template = LOGIN_FRAME; 99 $this->objDisplay->prepare($this, true); 100 } else { 101 $this->objDisplay->prepare($this); 102 } 103 104 $this->objDisplay->response->write(); 105 } 106 108 107 109 108 /**
Note: See TracChangeset
for help on using the changeset viewer.