Plugin Directory

Changeset 1673967


Ignore:
Timestamp:
06/09/2017 12:04:29 AM (9 years ago)
Author:
kagla
Message:

1.4.6 update

Location:
gnucommerce/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • gnucommerce/trunk/adm/bbs/board_copy_update.php

    r1490649 r1673967  
    3232    $board['bo_count_write'] = 0;
    3333    $board['bo_count_comment'] = 0;
     34}
     35
     36//페이지를 생성하는 훅을 걸어준다
     37if( isset($_POST['bo_auto_install']) && !empty($_POST['bo_auto_install']) ) {
     38    add_action('gc_admin_board_create', 'gc_mk_page');
    3439}
    3540
     
    158163if ( false === $result ){
    159164    gc_show_db_error();
     165} else {
     166    // 워드프레스의 페이지를 자동 생성합니다.
     167    do_action('gc_admin_board_create' , $data);
    160168}
    161169
     
    238246
    239247}
     248
     249
    240250gc_delete_cache_latest($bo_table);
    241251gc_delete_cache_latest($target_table);
  • gnucommerce/trunk/adm/bbs/board_form_update.php

    r1445302 r1673967  
    344344                    gc_show_db_error();
    345345                } else {
     346                    // 워드프레스의 페이지를 자동 생성합니다.
    346347                    do_action('gc_admin_board_create' , $data);
    347348                }
  • gnucommerce/trunk/adm/bbs/board_list.php

    r1445302 r1673967  
    146146
    147147<script>
     148
     149function fboardcopy_check(f)
     150{
     151    var bo_regex = /^[A-Za-z0-9_]{1,20}$/;
     152
     153    if ( !bo_regex.test(f.target_table.value) ) {
     154        alert("<?php _e('복사할 테이블명은 20자 이내로 영문,숫자,_ 로 입력해 주세요.', GC_NAME);?>");
     155        return false;
     156    }
     157
     158    if (f.bo_table.value == f.target_table.value) {
     159        alert("<?php _e('원본 테이블명과 복사할 테이블명이 달라야 합니다.', GC_NAME);?>");
     160        return false;
     161    }
     162
     163    return true;
     164}
     165
    148166function fboardlist_submit(f)
    149167{
     
    225243            </td>
    226244        </tr>
     245        <tr>
     246            <th scope="col"><?php _e('페이지생성', GC_NAME);  //페이지생성?></th>
     247            <td>
     248                <input type="checkbox" name="bo_auto_install" id="bo_auto_install" value="1" checked="checked">
     249                <label for="bo_auto_install">체크시 게시판 페이지를 자동으로 생성합니다.</label>
     250            </td>
     251        </tr>
    227252        </tbody>
    228253        </table>
  • gnucommerce/trunk/config.php

    r1637300 r1673967  
    55
    66    public function __construct() {
    7         define( 'GC_VERSION', '1.4.5' );
     7        define( 'GC_VERSION', '1.4.6' );
    88        define( 'GC_NAME', 'gnucommerce' );
    99        define( 'GC_OPTION_KEY', 'gc_options' );    //쇼핑몰옵션키
  • gnucommerce/trunk/gnucommerce.php

    r1637300 r1673967  
    55 *  Author: SIR Soft
    66 *  Author URI: http://sir.kr
    7  *  Version: 1.4.5
     7 *  Version: 1.4.6
    88 *  Text Domain: SIR Soft
    99 */
  • gnucommerce/trunk/lib/gc_board.class.php

    r1568385 r1673967  
    315315                        $gcboard->bo_table = $bo_table;
    316316
    317                         add_filter('the_content', array( $this, 'filter_the_content') );   //내용 관리 필터
     317                        add_filter('the_content', array( $this, 'filter_the_content'), 20 );   //내용 관리 필터
    318318
    319319                        break;break;break;
  • gnucommerce/trunk/readme.txt

    r1637300 r1673967  
    55Requires at least: 4.0
    66Tested up to: 4.7
    7 Stable tag: 1.4.5
     7Stable tag: 1.4.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464
    6565== Changelog ==
     66
     67= 1.4.6 =
     68게시판 복사시 워드프레스 페이지도 생성되게금 수정했습니다. 
     69특정조건내에서 게시판에서 숏코드를 생성할수 있는 부분을 더 이상 동작되지 않도록 수정했습니다.
    6670
    6771= 1.4.5 =
  • gnucommerce/trunk/shop/inicis/m_settle_common.php

    r1612999 r1673967  
    109109                // 개인결제 정보
    110110                $pp_check = false;
    111                 $sql = $wpdb->prepare(" select * from `$wpdb->gc_shop_personalpay_table` where pp_id = %.0f and pp_use = '1' ", $P_OID);
     111                $sql = $wpdb->prepare(" select * from `$wpdb->gc_shop_personalpay_table` where pp_id = %.0f and pp_tno = '%s' and pp_use = '1' ", $P_OID, $P_TID);
    112112                $pp = $wpdb->get_row($sql, ARRAY_A);
    113113               
     
    188188                    $data['od_app_no'] = $od_app_no;
    189189                    $data['od_mobile'] = 1;
    190                     $data['od_mobile'] = $config['de_card_test'];
     190                    $data['od_test'] = $config['de_card_test'];
    191191                    $od_mod_history = $INIpayLog ? 'inicis noti ('.$P_AMT.') '.GC_TIME_YMDHIS : '';
    192192
  • gnucommerce/trunk/shop/settle_inicis.inc.php

    r1612999 r1673967  
    107107
    108108$inipay->SetField("inipayhome", GC_INICIS_KEY_PATH); // 이니페이 홈디렉터리(상점수정 필요)
    109 $inipay->SetField("debug", apply_filters('gnucommerce_debug_mode', GC_DEBUG_MODE, 'inicis_log') );  // 로그모드("true"로 설정하면 상세로그가 생성됨.)
     109$inipay->SetField("debug", "false");  // 로그모드("true"로 설정하면 상세로그가 생성됨.)
    110110
    111111if( GC_IS_MOBILE ){    //모바일이면
Note: See TracChangeset for help on using the changeset viewer.