/home/mjc1/public_html/j3demo/adm/init.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
include("./_common.php");
include(
$j3_adm_path."/shop_header.php");

$f fopen($j3_path."/dbupdate.php","r"); // DB버젼 가져오기
for($i=0;$i<5;$i++){
    
$line fgets$f4096 );
    if(
substr($line,0,12)=='$shop_db_ver'){
        
$v explode("'",$line);
        
$new_db_ver $v[1];
    }
}

?>
<Br>
<div class='config_init_class'>1. 환경설정 초기화 하기</div>
<Br><Br>
<div class='skinm_init_class'>2. 최종 스킨모듈 초기화 하기</div>
<br><br>
<div class='skinm_update_class'>3. 추가된 스킨모듈 업데이트 하기</div>
<br><br>
<div class='skin1_init_class'>4. 디자인 스킨1 초기화 하기 <span class='help_info'>디자인 1번에 해당되는 스킨으로 세팅 합니다. 완전 초기화를 위해서는 2번의 스킨모듈 초기화와 같이 하시는게 좋습니다.</span></div>
<br><br>
<?php

_pr
($_SESSION);
_pr($_COOKIE);
_pr($config);
_pr($configshop);
?>

<script>
$(function(){
    if('<?php echo $new_db_ver;?>'>'<?php echo $config['shop_db_ver'];?>'){
        if(confirm('DB버젼이 업데이트 되었습니다. DB를 업데이트 하시겠습니까?')){
            $.get("<?php echo $j3_url."/dbupdate.php";?>",function(rtn){
                alert(rtn);
            });
        }
    }

    $(".config_init_class").css("cursor","pointer").click(function(){
        if(confirm('기존의 환경설정을 삭제하고 초기화 합니다. 정말로 실행하시겠습니까?')){
            $.get("init.config.val.php",function(rtn){
                alert(rtn);
            });
        }
    });

    $(".skinm_init_class").css("cursor","pointer").click(function(){
        if(confirm('기존의 스킨모듈을 삭제하고 초기화된 스킨모듈을 가져옵니다. 정말로 실행하시겠습니까?')){
            $.get("init.skinm.val.php",function(rtn){
                alert(rtn);
            });
        }
    });

    $(".skinm_update_class").css("cursor","pointer").click(function(){
        if(confirm('추가된 스킨모듈만 업데이트 합니다. 기존에 등록된 스킨은 업데이트 하지 않습니다. 설정값이 유지됩니다.')){
            $.get("init.skinm.update.php",function(rtn){
                alert(rtn);
            });
        }
    });

    $(".skin1_init_class").css("cursor","pointer").click(function(){
        if(confirm('기존의 스킨설정을 삭제하고 초기화된 스킨을 가져옵니다. 정말로 실행하시겠습니까?')){
            $.get("init.skin.val.php?file_name=skin1.sql.php",function(rtn){
                alert(rtn);
            });
        }
    });
});
</script>
<?php
include($j3_adm_path."/shop_footer.php");
?>