コード例 #1
0
ファイル: SC_Utils.php プロジェクト: nassos9090/plugin
 function sfDispSiteError($type, $objSiteSess = '', $return_top = false, $err_msg = '')
 {
     require_once CLASS_EX_REALDIR . 'page_extends/error/LC_Page_Error_Ex.php';
     $objPage = new LC_Page_Error_Ex();
     register_shutdown_function(array($objPage, 'destroy'));
     $objPage->init();
     $objPage->type = $type;
     $objPage->objSiteSess = $objSiteSess;
     $objPage->return_top = $return_top;
     $objPage->err_msg = $err_msg;
     $objPage->is_mobile = SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE;
     $objPage->process();
     exit;
 }
コード例 #2
0
ファイル: SC_Utils.php プロジェクト: khrisna/eccubedrm
 function sfDispSiteError($type, $objSiteSess = "", $return_top = false, $err_msg = "", $is_mobile = false)
 {
     global $objCampaignSess;
     require_once CLASS_EX_PATH . "page_extends/error/LC_Page_Error_Ex.php";
     $objPage = new LC_Page_Error_Ex();
     register_shutdown_function(array($objPage, "destroy"));
     $objPage->init();
     $objPage->type = $type;
     $objPage->objSiteSess = $objSiteSess;
     $objPage->return_top = $return_top;
     $objPage->err_msg = $err_msg;
     $objPage->is_mobile = defined('MOBILE_SITE') ? true : false;
     $objPage->process();
     exit;
 }