Changeset 19803 for branches/version-2_5-dev/data/class/util
- Timestamp:
- 2010/12/31 14:43:16 (16 years ago)
- Location:
- branches/version-2_5-dev/data/class/util
- Files:
-
- 2 edited
-
GC_Utils.php (modified) (2 diffs)
-
SC_Utils.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/util/GC_Utils.php
r18835 r19803 118 118 $buffer = ob_get_contents(); 119 119 ob_end_clean(); 120 $fp = fopen(LOG_ PATH, "a+");120 $fp = fopen(LOG_FILE, "a+"); 121 121 fwrite( $fp, $buffer."\n" ); 122 122 fclose( $fp ); 123 123 GC_Utils::gfPrintLog("*** end Debug ***"); 124 124 // ログテーション 125 GC_Utils::gfLogRotation(MAX_LOG_QUANTITY, MAX_LOG_SIZE, LOG_ PATH);125 GC_Utils::gfLogRotation(MAX_LOG_QUANTITY, MAX_LOG_SIZE, LOG_FILE); 126 126 } 127 127 } … … 140 140 // 出力パスの作成 141 141 if ($path == "") { 142 $path = LOG_ PATH;142 $path = LOG_FILE; 143 143 } 144 144 -
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.
