Changeset 17676 for branches/comu-ver2/data/class
- Timestamp:
- 2008/11/01 16:22:26 (15 years ago)
- Location:
- branches/comu-ver2/data/class
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_MobileImage.php
r16582 r17676 67 67 // auはHTMLのbyte数上限に画像ファイルサイズが含まれないのでimageFileSizeのまま。 68 68 if ($carrier == "docomo" or $carrier == "softbank") { 69 // 計算式:(利用端末で表示可能なcacheサイズ - HTMLのバイト数 - 変換後の画像名のバイト数(目安値) ) / HTML中の画像数 70 $temp_imagefilesize = ($cacheSize - strlen($buffer) - (140 * $result) ) / $result; 69 if( $result != false && $result > 0){ 70 // 計算式:(利用端末で表示可能なcacheサイズ - HTMLのバイト数 - 変換後の画像名のバイト数(目安値) ) / HTML中の画像数 71 $temp_imagefilesize = ($cacheSize - strlen($buffer) - (140 * $result) ) / $result; 72 } else { 73 // 計算式:(利用端末で表示可能なcacheサイズ - HTMLのバイト数 ) 74 $temp_imagefilesize = ($cacheSize - strlen($buffer) ); 75 } 71 76 // 計算結果が端末の表示可能ファイルサイズ上限より小さい場合は計算結果の値を有効にする 72 77 if ($temp_imagefilesize < $imageFileSize) { -
branches/comu-ver2/data/class/SC_MobileUserAgent.php
r17581 r17676 50 50 return 'ezweb'; 51 51 case 'V': 52 return 'softbank'; 53 case 'S': 52 54 return 'softbank'; 53 55 default: -
branches/comu-ver2/data/class/helper/SC_Helper_Mobile.php
r17605 r17676 56 56 */ 57 57 function lfMobileConvertInputValue(&$value) { 58 // Shift JIS から内部エンコーディングに変換する。 59 // SoftBank 以外の絵文字は外字領域に含まれるため、この段階で除去される。 60 $value = mb_convert_encoding($value, CHAR_CODE, 'SJIS'); 61 62 // SoftBank の絵文字を除去する。 63 $value = preg_replace('/\\x1b\\$[^\\x0f]*\\x0f/', '', $value); 58 if (is_array($value)) { 59 foreach($value as $key => $val ){ 60 $this->lfMobileConvertInputValue($value[$key]); 61 } 62 } else { 63 // Shift JIS から内部エンコーディングに変換する。 64 $value = mb_convert_encoding($value, CHAR_CODE, 'SJIS'); 65 // SoftBank? 以外の絵文字は外字領域に含まれるため、この段階で除去される。 66 // SoftBank? の絵文字を除去する。 67 $value = preg_replace('/\\x1b\\$[^\\x0f]*\\x0f/', '', $value); 68 } 64 69 } 65 70 -
branches/comu-ver2/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php
r16996 r17676 71 71 72 72 if (!isset($_POST['mode'])) $_POST['mode'] = ""; 73 74 $tpl_onload = ""; 75 73 76 74 // 現在の階層を取得 77 75 if($_POST['mode'] != "") { … … 144 142 $arrErr['create_file'] = "※ ".$_POST['create_file']."の作成に失敗しました。<br/>"; 145 143 } else { 146 $t pl_onload .= "alert('フォルダを作成しました。');";144 $this->tpl_onload .= "alert('フォルダを作成しました。');"; 147 145 } 148 146 } … … 155 153 $arrErr['upload_file'] = $ret; 156 154 } else { 157 $t pl_onload .= "alert('ファイルをアップロードしました。');";155 $this->tpl_onload .= "alert('ファイルをアップロードしました。');"; 158 156 } 159 157 break; … … 188 186 $treeView = "fnTreeView('tree', arrTree, '$now_dir', 'tree_select_file', 'tree_status', 'move');"; 189 187 if (!empty($this->tpl_onload)) { 190 $this->tpl_onload .= $treeView . $tpl_onload;188 $this->tpl_onload .= $treeView; 191 189 } else { 192 190 $this->tpl_onload = $treeView; -
branches/comu-ver2/data/class/pages/inquiry/LC_Page_Inquiry.php
r17094 r17676 88 88 89 89 if ( ( ! $_POST['mode'] == 'confirm' ) && ( ! is_numeric($_REQUEST['question_id']) ) ){ 90 echo "不正アクセス"; 91 exit; 90 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR); 92 91 } 93 92 … … 95 94 $sql = "SELECT question_id, question FROM dtb_question WHERE question_id = ?"; 96 95 $result = $conn->getAll( $sql, array($_REQUEST['question_id']) ); 96 if ( count($result) <= 0 ){ 97 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR); 98 } 97 99 $this->QUESTION = $this->lfGetArrInput( unserialize( $result[0]['question'] ) ); 98 100 -
branches/comu-ver2/data/class/pages/preview/LC_Page_Preview.php
r16934 r17676 67 67 $objView->display(SITE_FRAME); 68 68 } 69 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, "", false, "", true); 69 70 } 70 71
Note: See TracChangeset
for help on using the changeset viewer.