- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_Mobile.php
r21490 r21514 177 177 * セッションデータが有効かどうかをチェックする。 178 178 * 179 * FIXME "@"でエラーを抑制するのは良くない179 * FIXME '@' でエラーを抑制するのは良くない 180 180 * 181 181 * @return boolean セッションデータが有効な場合は true、無効な場合は false を返す。 … … 189 189 // 有効期限を過ぎていないかどうかをチェックする。 190 190 if (intval(@$_SESSION['mobile']['expires']) < time()) { 191 GC_Utils_Ex::gfPrintLog( "Session expired at ".191 GC_Utils_Ex::gfPrintLog('Session expired at ' . 192 192 date('Y/m/d H:i:s', @$_SESSION['mobile']['expires']) . 193 193 ' : sid=' . session_id()); … … 199 199 $model = SC_MobileUserAgent_Ex::getModel(); 200 200 if (@$_SESSION['mobile']['model'] != $model) { 201 GC_Utils_Ex::gfPrintLog( "User agent model mismatch : ".201 GC_Utils_Ex::gfPrintLog('User agent model mismatch : ' . 202 202 "\"$model\" != \"" . @$_SESSION['mobile']['model'] . 203 203 '" (expected), sid=' . session_id()); … … 231 231 232 232 //download.phpに対してカタカナ変換をするとファイルが壊れてしまうため回避する 233 if ($_SERVER['SCRIPT_FILENAME'] != HTML_REALDIR . "mypage/download.php") {233 if ($_SERVER['SCRIPT_FILENAME'] != HTML_REALDIR . 'mypage/download.php') { 234 234 // 全角カタカナを半角カタカナに変換する。 235 235 ob_start(create_function('$buffer', 'return mb_convert_kana($buffer, "k");')); … … 454 454 function getMimeType($filename) { 455 455 //ファイルの拡張子からコンテンツタイプを決定する 456 $file_extension = strtolower(substr(strrchr($filename, "."),1));456 $file_extension = strtolower(substr(strrchr($filename,'.'),1)); 457 457 $mime_type = $this->defaultMimeType; 458 458 if (array_key_exists($file_extension, $this->arrMimetypes)) {
Note: See TracChangeset
for help on using the changeset viewer.