Changeset 17672
- Timestamp:
- 2008/11/01 12:38:04 (14 years ago)
- Location:
- branches/comu-ver2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_Initial.php
r17605 r17672 210 210 function createCacheDir() { 211 211 if (defined("HTML_PATH")) { 212 if (!file_exists(COMPILE_DIR)) { 212 umask(0); 213 if (!file_exists(COMPILE_DIR)) { 213 214 mkdir(COMPILE_DIR); 214 215 } -
branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r17671 r17672 136 136 SC_Utils::sfDispError(''); 137 137 } 138 138 139 //現在使用中のテンプレートとデフォルトのテンプレートは削除できないようにする 139 140 $template_code = $objForm->getValue('template_code_temp'); 140 if ($template_code == DEFAULT_TEMPLATE_NAME ) {141 141 if ($template_code == DEFAULT_TEMPLATE_NAME || $template_code == 'default') { 142 $this->tpl_onload = "alert('選択中のテンプレートは削除出来ません');"; 142 143 break; 143 144 } 144 145 145 $this->lfDeleteTemplate($template_code); 146 146 break; -
branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php
r17671 r17672 462 462 unset($arrColList[$arrColList_tmp["product_class_id"]]); //規格ID 463 463 unset($arrColList[$arrColList_tmp["product_id"]]); //商品ID 464 464 unset($arrColList[$arrColList_tmp["create_date"]]); 465 465 466 $col = SC_Utils_Ex::sfGetCommaList($arrColList); 466 467 … … 482 483 $objDb->updateProductCategories($arrList['category_id'], $product_id); 483 484 } 484 485 // 規格登録 486 SC_Utils_Ex::sfInsertProductClass($objQuery, $arrList, $product_id , $arrList['product_class_id'] ); 487 485 486 //商品登録の時は規格を生成する。複製の場合は規格も複製されるのでこの処理は不要。 487 if( $_POST["copy_product_id"] == "" ){ 488 // 規格登録 489 SC_Utils_Ex::sfInsertProductClass($objQuery, $arrList, $product_id , $arrList['product_class_id'] ); 490 } 491 488 492 // 関連商品登録 489 493 $this->lfInsertRecommendProducts($objQuery, $arrList, $product_id); -
branches/comu-ver2/data/class/util/GC_Utils.php
r17580 r17672 172 172 // ファイル名を取得 173 173 $basename = basename($path); 174 174 //umask値を777にする。スクリプトが終われば元のumask値に戻る。 175 umask(0); 175 176 // ファイルが最大サイズを超えていないかチェック 176 177 if(filesize($path) > $max_size) { -
branches/comu-ver2/data/include/module.inc
r17671 r17672 45 45 46 46 /** 47 * インクルードするモジュールの一覧47 * 常にinclude.phpを呼び出すモジュールの一覧を$_arrModuleに定義している 48 48 * FIXME dtb_moduleとかに保持する 49 * TODO dtb_module内にカラムを追加して判定するか、include.phpで定義するかに変更する必要有り。 49 50 */ 50 51 $_arrModule = array( 51 52 'mdl_a8', 52 53 'mdl_moba8', 54 'mdl_janet', 53 55 'mdl_opebuilder', 54 56 'mdl_souraku', -
branches/comu-ver2/html/install/index.php
r17662 r17672 434 434 // 権限エラー等が発生していない場合 435 435 if(!$err_file) { 436 umask(0); 436 437 $path = HTML_PATH . "upload/temp_template"; 437 438 if(!file_exists($path)) {
Note: See TracChangeset
for help on using the changeset viewer.