Changeset 17676
- Timestamp:
- 2008/11/01 16:22:26 (15 years ago)
- Location:
- branches/comu-ver2/data
- Files:
-
- 7 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 -
branches/comu-ver2/data/module/Smarty/libs/plugins/function.html_options.php
r15532 r17676 31 31 { 32 32 require_once $smarty->_get_plugin_filepath('shared','escape_special_chars'); 33 33 34 34 $name = null; 35 35 $values = null; … … 37 37 $selected = array(); 38 38 $output = null; 39 39 40 40 $extra = ''; 41 41 42 42 foreach($params as $_key => $_val) { 43 43 switch($_key) { … … 45 45 $$_key = (string)$_val; 46 46 break; 47 47 48 48 case 'options': 49 49 $$_key = (array)$_val; 50 50 break; 51 51 52 52 case 'values': 53 53 case 'output': … … 58 58 $$_key = array_map('strval', array_values((array)$_val)); 59 59 break; 60 60 61 61 default: 62 62 if(!is_array($_val)) { … … 75 75 76 76 if (isset($options)) { 77 77 78 78 foreach ($options as $_key=>$_val) 79 79 $_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected); 80 80 81 81 } else { 82 82 83 83 foreach ($values as $_i=>$_key) { 84 84 $_val = isset($output[$_i]) ? $output[$_i] : ''; … … 101 101 smarty_function_escape_special_chars($key) . '"'; 102 102 if (in_array((string)$key, $selected)) 103 $_html_result .= ' selected ="selected"';103 $_html_result .= ' selected'; 104 104 $_html_result .= '>' . smarty_function_escape_special_chars($value) . '</option>' . "\n"; 105 105 } else {
Note: See TracChangeset
for help on using the changeset viewer.