Plugin Directory

Changeset 1787384


Ignore:
Timestamp:
12/15/2017 02:28:13 AM (8 years ago)
Author:
kagla
Message:

1.4.9 update

Location:
gnucommerce/trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • gnucommerce/trunk/bbs/download.php

    r1676363 r1787384  
    9999    header("content-disposition: attachment; filename=\"$original\"");
    100100    header("content-transfer-encoding: binary");
     101} else if (preg_match("/Firefox/i", $_SERVER['HTTP_USER_AGENT'])){
     102    header("content-type: file/unknown");
     103    header("content-length: ".filesize("$filepath"));
     104    header("content-disposition: attachment; filename=\"".basename($file['bf_source'])."\"");
     105    header("content-description: php generated data");
    101106} else {
    102107    header("content-type: file/unknown");
  • gnucommerce/trunk/bbs/write_update.php

    r1676363 r1787384  
    529529
    530530            // 아래의 문자열이 들어간 파일은 -x 를 붙여서 웹경로를 알더라도 실행을 하지 못하도록 함
    531             $filename = preg_replace("/\.(php|phtm|htm|cgi|pl|exe|jsp|asp|inc)/i", "$0-x", $filename);
     531            $filename = preg_replace("/\.(php|pht|phtm|htm|cgi|pl|exe|jsp|asp|inc)/i", "$0-x", $filename);
    532532
    533533            shuffle($chars_array);
  • gnucommerce/trunk/config.php

    r1732634 r1787384  
    55
    66    public function __construct() {
    7         define( 'GC_VERSION', '1.4.8' );
     7        define( 'GC_VERSION', '1.4.9' );
    88        define( 'GC_NAME', 'gnucommerce' );
    99        define( 'GC_OPTION_KEY', 'gc_options' );    //쇼핑몰옵션키
  • gnucommerce/trunk/gnucommerce.php

    r1732634 r1787384  
    55 *  Author: SIR Soft
    66 *  Author URI: http://sir.kr
    7  *  Version: 1.4.8
     7 *  Version: 1.4.9
    88 *  Text Domain: SIR Soft
    99 */
  • gnucommerce/trunk/js/shop.order.js

    r1442174 r1787384  
    22
    33(function($){
    4     gnucommerce.order_stock_check = function() {
     4    gnucommerce.order_stock_check = function(str_direct) {
    55        var result = "";
    66        $.ajax({
    77            type: "POST",
    88            url:gnucommerce.ajaxurl,
    9             data:{action: 'gc_ajax_orderstock'},
     9            data:{action: 'gc_ajax_orderstock', sw_direct: str_direct},
    1010            cache: false,
    1111            async: false,
  • gnucommerce/trunk/lib/gc_board.class.php

    r1676363 r1787384  
    455455            return $gc_error->get_error_message();
    456456        }
     457
     458        GC_Board_var::getInstance()->need_value_load();
    457459       
    458460        $arg = wp_parse_args($attr, array(
     
    581583        }
    582584
    583         $gc_page_url = gc_page_get_by($bo_table, 'url' );
     585        $gc_page_url = ( isset($arg['url']) && !empty($arg['url']) && esc_url($arg['url']) ) ? esc_url($arg['url']) : gc_page_get_by($bo_table, 'url' );
     586
    584587        ob_start();
    585588        if ( !file_exists($latest_skin_path) ) {  //해당 파일이 없으면
  • gnucommerce/trunk/lib/gc_board_common.php

    r1676363 r1787384  
    12911291
    12921292function gc_get_current_page() {
    1293  return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
     1293    return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
    12941294}
    12951295
  • gnucommerce/trunk/lib/gc_shop.lib.php

    r1735879 r1787384  
    136136
    137137    foreach( $it_images as $attachment_id ){
     138        add_filter( 'wp_calculate_image_srcset', '__return_false' );
    138139        if( $image = wp_get_attachment_image( $attachment_id, $size, false, $attr ) ){
    139140            break;
    140141        }
     142        remove_filter( 'wp_calculate_image_srcset', '__return_false' );
    141143    }
    142144    return $image;
  • gnucommerce/trunk/lib/recaptcha_hook.php

    r1454448 r1787384  
    2323         * @param string $secret shared secret between site and ReCAPTCHA server.
    2424         */
    25         function ReCaptcha_gc($secret)
     25        function __construct($secret)
    2626        {
    2727            if ($secret == null || $secret == "") {
  • gnucommerce/trunk/readme.txt

    r1732634 r1787384  
    44Tags: gnucommerce, shopping, cart, mall, youngcart, gnu, gnuboard, korea, korean, bulletin, board, bbs, community, forum, kalga
    55Requires at least: 4.0
    6 Tested up to: 4.7
    7 Stable tag: 1.4.8
     6Tested up to: 4.9.1
     7Stable tag: 1.4.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464
    6565== Changelog ==
     66
     67= 1.4.9 =
     68일부 오류를 수정했습니다.
    6669
    6770= 1.4.8 =
  • gnucommerce/trunk/shop/ajax.orderstock.php

    r1732634 r1787384  
    11<?php
    22if( !defined('GC_NAME') ) exit;
     3
     4if( isset($_POST['sw_direct']) ){
     5    gc_set_session("ss_direct", sanitize_text_field($_POST['sw_direct']));
     6}
    37
    48if (gc_get_session('ss_direct'))
  • gnucommerce/trunk/shop/inicis/INIStdPayReturn.php

    r1732634 r1787384  
    7979            if ($httpUtil->processHTTP($authUrl, $authMap)) {
    8080                $authResultString = $httpUtil->body;
    81                 echo "<p><b>RESULT DATA :</b> $authResultString</p>";           //PRINT DATA
     81                //echo "<p><b>RESULT DATA :</b> $authResultString</p>";         //PRINT DATA
    8282            } else {
    8383                echo "Http Connect Error\n";
  • gnucommerce/trunk/shop/orderform.php

    r1732634 r1787384  
    789789
    790790    // 재고체크
    791     var stock_msg = gnucommerce.order_stock_check();
     791    var stock_msg = gnucommerce.order_stock_check("<?php echo $sw_direct; ?>");
    792792    if(jQuery.trim(stock_msg) != "") {
    793793        alert(stock_msg);
     
    16111611{
    16121612    // 재고체크
    1613     var stock_msg = gnucommerce.order_stock_check();
     1613    var stock_msg = gnucommerce.order_stock_check("<?php echo $sw_direct; ?>");
    16141614    if(jQuery.trim(stock_msg) != "") {
    16151615        alert(stock_msg);
  • gnucommerce/trunk/skin/board/16-summer-ipha-gallery/write.skin.php

    r1732634 r1787384  
    203203    var char_min = parseInt(<?php echo $write_min; ?>); // 최소
    204204    var char_max = parseInt(<?php echo $write_max; ?>); // 최대
    205     check_byte("wr_content", "char_count");
     205    gc_check_byte("wr_content", "char_count");
    206206
    207207    jQuery(function($) {
    208208        $("#wr_content").on("keyup", function() {
    209             check_byte("wr_content", "char_count");
     209            gc_check_byte("wr_content", "char_count");
    210210        });
    211211    });
     
    307307                if (document.getElementById("char_count")) {
    308308                    if (char_min > 0 || char_max > 0) {
    309                         var cnt = parseInt(check_byte("wr_content", "char_count"));
     309                        var cnt = parseInt(gc_check_byte("wr_content", "char_count"));
    310310                        if (char_min > 0 && char_min > cnt) {
    311311                            alert( gcboard.sprintf("<?php _e('내용은 %d 글자 이상 쓰셔야 합니다.', GC_NAME);?>", char_min) );
  • gnucommerce/trunk/skin/board/16-summer-ipha/write.skin.php

    r1732634 r1787384  
    203203    var char_min = parseInt(<?php echo $write_min; ?>); // 최소
    204204    var char_max = parseInt(<?php echo $write_max; ?>); // 최대
    205     check_byte("wr_content", "char_count");
     205    gc_check_byte("wr_content", "char_count");
    206206
    207207    jQuery(function($) {
    208208        $("#wr_content").on("keyup", function() {
    209             check_byte("wr_content", "char_count");
     209            gc_check_byte("wr_content", "char_count");
    210210        });
    211211    });
     
    307307                if (document.getElementById("char_count")) {
    308308                    if (char_min > 0 || char_max > 0) {
    309                         var cnt = parseInt(check_byte("wr_content", "char_count"));
     309                        var cnt = parseInt(gc_check_byte("wr_content", "char_count"));
    310310                        if (char_min > 0 && char_min > cnt) {
    311311                            alert( gcboard.sprintf("<?php _e('내용은 %d 글자 이상 쓰셔야 합니다.', GC_NAME);?>", char_min) );
  • gnucommerce/trunk/skin/board/basic/write.skin.php

    r1732634 r1787384  
    203203    var char_min = parseInt(<?php echo $write_min; ?>); // 최소
    204204    var char_max = parseInt(<?php echo $write_max; ?>); // 최대
    205     check_byte("wr_content", "char_count");
     205    gc_check_byte("wr_content", "char_count");
    206206
    207207    jQuery(function($) {
    208208        $("#wr_content").on("keyup", function() {
    209             check_byte("wr_content", "char_count");
     209            gc_check_byte("wr_content", "char_count");
    210210        });
    211211    });
     
    307307                if (document.getElementById("char_count")) {
    308308                    if (char_min > 0 || char_max > 0) {
    309                         var cnt = parseInt(check_byte("wr_content", "char_count"));
     309                        var cnt = parseInt(gc_check_byte("wr_content", "char_count"));
    310310                        if (char_min > 0 && char_min > cnt) {
    311311                            alert( gcboard.sprintf("<?php _e('내용은 %d 글자 이상 쓰셔야 합니다.', GC_NAME);?>", char_min) );
  • gnucommerce/trunk/skin/board/default/write.skin.php

    r1568385 r1787384  
    203203    var char_min = parseInt(<?php echo $write_min; ?>); // 최소
    204204    var char_max = parseInt(<?php echo $write_max; ?>); // 최대
    205     check_byte("wr_content", "char_count");
     205    gc_check_byte("wr_content", "char_count");
    206206
    207207    jQuery(function($) {
    208208        $("#wr_content").on("keyup", function() {
    209             check_byte("wr_content", "char_count");
     209            gc_check_byte("wr_content", "char_count");
    210210        });
    211211    });
     
    307307                if (document.getElementById("char_count")) {
    308308                    if (char_min > 0 || char_max > 0) {
    309                         var cnt = parseInt(check_byte("wr_content", "char_count"));
     309                        var cnt = parseInt(gc_check_byte("wr_content", "char_count"));
    310310                        if (char_min > 0 && char_min > cnt) {
    311311                            alert( gcboard.sprintf("<?php _e('내용은 %d 글자 이상 쓰셔야 합니다.', GC_NAME);?>", char_min) );
  • gnucommerce/trunk/skin/board/gallery/write.skin.php

    r1568385 r1787384  
    203203    var char_min = parseInt(<?php echo $write_min; ?>); // 최소
    204204    var char_max = parseInt(<?php echo $write_max; ?>); // 최대
    205     check_byte("wr_content", "char_count");
     205    gc_check_byte("wr_content", "char_count");
    206206
    207207    jQuery(function($) {
    208208        $("#wr_content").on("keyup", function() {
    209             check_byte("wr_content", "char_count");
     209            gc_check_byte("wr_content", "char_count");
    210210        });
    211211    });
     
    307307                if (document.getElementById("char_count")) {
    308308                    if (char_min > 0 || char_max > 0) {
    309                         var cnt = parseInt(check_byte("wr_content", "char_count"));
     309                        var cnt = parseInt(gc_check_byte("wr_content", "char_count"));
    310310                        if (char_min > 0 && char_min > cnt) {
    311311                            alert( gcboard.sprintf("<?php _e('내용은 %d 글자 이상 쓰셔야 합니다.', GC_NAME);?>", char_min) );
Note: See TracChangeset for help on using the changeset viewer.