Changeset 19803 for branches/version-2_5-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2010/12/31 14:43:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/util/SC_Utils.php
r19802 r19803 173 173 function sfDispError($type) { 174 174 175 require_once(CLASS_EX_ PATH . "page_extends/error/LC_Page_Error_DispError_Ex.php");175 require_once(CLASS_EX_FILE_PATH . "page_extends/error/LC_Page_Error_DispError_Ex.php"); 176 176 177 177 $objPage = new LC_Page_Error_DispError_Ex(); … … 187 187 global $objCampaignSess; 188 188 189 require_once(CLASS_EX_ PATH . "page_extends/error/LC_Page_Error_Ex.php");189 require_once(CLASS_EX_FILE_PATH . "page_extends/error/LC_Page_Error_Ex.php"); 190 190 191 191 $objPage = new LC_Page_Error_Ex(); … … 208 208 */ 209 209 function sfDispException($debugMsg = null) { 210 require_once(CLASS_EX_ PATH . "page_extends/error/LC_Page_Error_SystemError_Ex.php");210 require_once(CLASS_EX_FILE_PATH . "page_extends/error/LC_Page_Error_SystemError_Ex.php"); 211 211 212 212 $objPage = new LC_Page_Error_SystemError_Ex(); … … 1186 1186 } 1187 1187 1188 /**1189 * テンプレートを切り替えて出力する1190 *1191 * @deprecated 2008/04/02以降使用不可1192 */1193 function sfCustomDisplay(&$objPage, $is_mobile = false) {1194 $basename = basename($_SERVER["REQUEST_URI"]);1195 1196 if($basename == "") {1197 $path = $_SERVER["REQUEST_URI"] . DIR_INDEX_URL;1198 } else {1199 $path = $_SERVER["REQUEST_URI"];1200 }1201 1202 if(isset($_GET['tpl']) && $_GET['tpl'] != "") {1203 $tpl_name = $_GET['tpl'];1204 } else {1205 $tpl_name = ereg_replace("^/", "", $path);1206 $tpl_name = ereg_replace("/", "_", $tpl_name);1207 $tpl_name = ereg_replace("(\.php$|\.html$)", ".tpl", $tpl_name);1208 }1209 1210 $template_path = TEMPLATE_FTP_DIR . $tpl_name;1211 echo $template_path;1212 if($is_mobile === true) {1213 $objView = new SC_MobileView();1214 $objView->assignobj($objPage);1215 $objView->display(SITE_FRAME);1216 } else if(file_exists($template_path)) {1217 $objView = new SC_UserView(TEMPLATE_FTP_DIR, COMPILE_FTP_DIR);1218 $objView->assignobj($objPage);1219 $objView->display($tpl_name);1220 } else {1221 $objView = new SC_SiteView();1222 $objView->assignobj($objPage);1223 $objView->display(SITE_FRAME);1224 }1225 }1226 1227 1188 // PHPのmb_convert_encoding関数をSmartyでも使えるようにする 1228 1189 function sf_mb_convert_encoding($str, $encode = 'CHAR_CODE') {
Note: See TracChangeset
for help on using the changeset viewer.
