Changeset 21442 for branches/version-2_12-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2012/02/06 11:27:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/util/SC_Utils.php
r21441 r21442 40 40 if (!defined('ECCUBE_INSTALL')) { 41 41 $phpself = $_SERVER['PHP_SELF']; 42 if (strpos('/install/', $phpself) === false ) {42 if (strpos('/install/', $phpself) === false) { 43 43 $path = substr($phpself, 0, strpos($phpself, basename($phpself))); 44 44 $install_url = SC_Utils_Ex::searchInstallerPath($path); … … 197 197 // 「リファラ無」 の場合はスルー 198 198 // 「リファラ有」 かつ 「管理画面からの遷移でない」 場合にエラー画面を表示する 199 if (empty($_SERVER['HTTP_REFERER']) ) {199 if (empty($_SERVER['HTTP_REFERER'])) { 200 200 // TODO 警告表示させる? 201 201 // sfErrorHeader('>> referrerが無効になっています。'); … … 253 253 // 前画面からPOSTされるuniqidが正しいものかどうかをチェック 254 254 $uniqid = $objSess->getUniqId(); 255 if (!empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid) ) {255 if (!empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid)) { 256 256 return true; 257 257 } else { … … 564 564 if ( ! checkdate($end_month ,$end_day ,$end_year) ) $error = 2; 565 565 } 566 if (! $error ) {566 if (! $error) { 567 567 $date1 = $start_year ."/".sprintf("%02d",$start_month) ."/".sprintf("%02d",$start_day) ." 000000"; 568 568 $date2 = $end_year ."/".sprintf("%02d",$end_month) ."/".sprintf("%02d",$end_day) ." 235959"; … … 597 597 598 598 function sfGetEnabled($val) { 599 if (! $val ) {599 if (! $val) { 600 600 return " disabled=\"disabled\""; 601 601 } … … 1147 1147 $fileArray=glob( $src."*" ); 1148 1148 if (is_array($fileArray)) { 1149 foreach ($fileArray as $key => $data_ ) {1149 foreach ($fileArray as $key => $data_) { 1150 1150 // CVS管理ファイルはコピーしない 1151 1151 if (ereg("/CVS/Entries", $data_)) { … … 1161 1161 mb_ereg("^(.*[\/])(.*)",$data_, $matches); 1162 1162 $data=$matches[2]; 1163 if (is_dir( $data_ ) ) {1163 if (is_dir( $data_ )) { 1164 1164 $mess = SC_Utils_Ex::sfCopyDir( $data_.'/', $des.$data.'/', $mess); 1165 1165 } else { … … 1609 1609 // インデックスが設定されている場合 1610 1610 if (is_array($arrayIndex) && 0 < count($arrayIndex)) { 1611 for ($j = 0; $j < count($arrayIndex); $j++ ) {1611 for ($j = 0; $j < count($arrayIndex); $j++) { 1612 1612 if ( $j > 0 ) $return .= ","; 1613 1613 $return .= "\""; … … 1615 1615 } 1616 1616 } else { 1617 for ($j = 0; $j < count($array[$i]); $j++ ) {1617 for ($j = 0; $j < count($array[$i]); $j++) { 1618 1618 if ( $j > 0 ) $return .= ","; 1619 1619 $return .= "\"";
Note: See TracChangeset
for help on using the changeset viewer.
