/home/mjc1/public_html/html/millennium/friday_program.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.php"); ?>
<?php

    
/*
    //2023-12-11 ¹è¼ÒÁø, ÇÁ·Î±×·¥¼Â¾÷-±Ý¿äÀϹöÀü Å©·Ò¿¡¼­ Á¢¼Ó½Ã ¹«ÇÑ ·ÎµùÀÌ µÇ´Â ¹®Á¦·Î ÄÚ¸àÆ®Ã³¸®ÇÔ.
    if($_SERVER['HTTPS']=='on'){
        echo "<script>document.location.href='http://mjsoft.co/html/millennium/friday_program.php';</script>";
        exit;
    }
    */

    /*$sql = "select substring_index(category_name,'->',-1) as cate_name, DemoDownFile from cate3 where 1 ";
    $res = mysql_query($sql);
    while($info=mysql_fetch_array($res)){
        $cate3_array[] = $info;
    }
    $cate3_array[] = array('cate_name'=>'    Ä«¸ÞÀÌÆ® Pro ÆÐÄ¡','DemoDownFile'=>'CarmatePro_patch.exe');
    $cate3_array[] = array('cate_name'=>'    Ä«¸ÞÀÌÆ® Lite ÆÐÄ¡','DemoDownFile'=>'Carmate_Lite_patch.exe');
    $cate3_array[] = array('cate_name'=>'    ¿¥Á¦PDA-L','DemoDownFile'=>'MJPDAL.CAB');
    $cate3_array[] = array('cate_name'=>'    ¿¥Á¦PDA-L3','DemoDownFile'=>'    MJPDAL3.CAB');
    $cate3_array[] = array('cate_name'=>'    ¿¥Á¦PDA-R','DemoDownFile'=>'MJPDAR.CAB');
    $cate3_array[] = array('cate_name'=>'    ¿¥Á¦PDA-R3','DemoDownFile'=>'MJPDAR3.CAB');
    $cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µII ÆÐÄ¡','DemoDownFile'=>'MJProduction2_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µCS','DemoDownFile'=>'MJProductionCS_setup.exe');
    $cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µCS ÆÐÄ¡','DemoDownFile'=>'MJProductionCS_setup_patch.exe');
    
    $cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µProCS ÆÐÄ¡','DemoDownFile'=>'MJProductionProCS_setup_patch.exe');
    
    $cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µPro ÆÐÄ¡','DemoDownFile'=>'MJProductionPro_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ2 ÆÐÄ¡','DemoDownFile'=>'MJmanagement2_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ3 ºä','DemoDownFile'=>'MJmanagement3View_setup.exe');
    
    $cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µCS ÆÐÄ¡','DemoDownFile'=>'MJmanagementCS_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µLITE ÆÐÄ¡','DemoDownFile'=>'MJmanagementLite_setup_patch.exe');
    
    $cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ ºä ÆÐÄ¡','DemoDownFile'=>'    MJmanagementView_setup_patch.exe');
    
    $cate3_array[] = array('cate_name'=>'    ÀÌÁöÅØ½ºcs ÆÐÄ¡','DemoDownFile'=>'easytaxcs_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'    ÀÌÁöÅØ½º2 ÆÐÄ¡','DemoDownFile'=>'easytaxii_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'ÀÌÁöÅØ½ºlite','DemoDownFile'=>'easytaxlite_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'Á¶ÀÌ·»Æ®','DemoDownFile'=>'    joylent_setup_patch.exe');
    $cate3_array[] = array('cate_name'=>'ÀÎÅͳݠÁÖ¹®¼­ ÆÐÄ¡','DemoDownFile'=>'jumun1_patch.exe');
    $cate3_array[] = array('cate_name'=>'MJ ±Þ¿©°ü¸® ÆÐÄ¡','DemoDownFile'=>'mijinpay_patch.exe');
    $cate3_array[] = array('cate_name'=>'¿ø·ëÀÓ´ë°ü¸® ÆÐÄ¡','DemoDownFile'=>'rental_patch.exe');*/


    
$cate3_array[] = array('cate_name'=>'õ³â°æ¿µ3','DemoDownFile'=>'MJmanagement3_setup.exe','seq'=>'1');
    
$cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ3C/S','DemoDownFile'=>'MJmanagement3CS_setup.exe','seq'=>2);
    
$cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ3 ºä','DemoDownFile'=>'MJmanagement3View_setup.exe','seq'=>3);

    
$cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ2','DemoDownFile'=>'MJmanagement2_setup.exe','seq'=>4);
    
$cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ2CS','DemoDownFile'=>'MJmanagementCS_setup.exe','seq'=>5);
    
$cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µLITE','DemoDownFile'=>'MJmanagementLite_setup.exe','seq'=>6);
    
$cate3_array[] = array('cate_name'=>'    Ãµ³â°æ¿µ2 ºä','DemoDownFile'=>'MJmanagementView_setup.exe','seq'=>7);

    
$cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µII','DemoDownFile'=>'MJProduction2_setup.exe','seq'=>8);
    
$cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µCS','DemoDownFile'=>'MJProductionCS_setup.exe','seq'=>9);
    
$cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µPro','DemoDownFile'=>'MJProductionPro_setup.exe','seq'=>10);
    
$cate3_array[] = array('cate_name'=>'    Á¦Á¶°æ¿µProCS','DemoDownFile'=>'MJProductionProCS_setup.exe','seq'=>11);
    
    
$cate3_array[] = array('cate_name'=>'    MJPDA-L','DemoDownFile'=>'MJPDAL.CAB','seq'=>12);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-L3','DemoDownFile'=>'MJPDAL3.CAB','seq'=>13);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-R','DemoDownFile'=>'MJPDAR.CAB','seq'=>14);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-R3','DemoDownFile'=>'MJPDAR3.CAB','seq'=>15);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-L(PC¼³Ä¡¿ë)','DemoDownFile'=>'mjpda_local.exe','seq'=>16);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-L3(PC¼³Ä¡¿ë)','DemoDownFile'=>'mjpda_local3.exe','seq'=>17);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-R(PC¼³Ä¡¿ë)','DemoDownFile'=>'mjpda_real.exe','seq'=>18);
    
$cate3_array[] = array('cate_name'=>'    MJPDA-R3(PC¼³Ä¡¿ë)','DemoDownFile'=>'mjpda_real3.exe','seq'=>19);

    
$cate3_array[] = array('cate_name'=>'    ÀÌÁöÅØ½º2','DemoDownFile'=>'easytaxii_setup.exe','seq'=>20);
    
$cate3_array[] = array('cate_name'=>'    ÀÌÁöÅØ½ºcs','DemoDownFile'=>'easytaxcs_setup.exe','seq'=>21);
    
$cate3_array[] = array('cate_name'=>'    ÀÌÁöÅØ½ºlite','DemoDownFile'=>'easytaxlite_setup.exe','seq'=>22);

    
$cate3_array[] = array('cate_name'=>'    Ä«¸ÞÀÌÆ® Pro','DemoDownFile'=>'    CarmatePro.exe','seq'=>23);
    
$cate3_array[] = array('cate_name'=>'    Ä«¸ÞÀÌÆ® Pro C/S','DemoDownFile'=>'carmateprocs.exe','seq'=>24);
    
$cate3_array[] = array('cate_name'=>'    Ä«¸ÞÀÌÆ® Lite','DemoDownFile'=>'Carmate_Lite.exe','seq'=>25);

    
$cate3_array[] = array('cate_name'=>'    Á¶ÀÌ·»Æ®','DemoDownFile'=>'joylent_setup.exe','seq'=>26);
    
$cate3_array[] = array('cate_name'=>'    ÀÎÅͳݠÁÖ¹®¼­','DemoDownFile'=>'jumun1.exe','seq'=>27);
    
$cate3_array[] = array('cate_name'=>'    MJ ±Þ¿©°ü¸®','DemoDownFile'=>'mijinpay.exe','seq'=>28);
    
$cate3_array[] = array('cate_name'=>'    ¿ø·ëÀÓ´ë°ü¸®','DemoDownFile'=>'rental.exe','seq'=>29);


    
//_pr($cate3_array);

    
$ipaddr getenv("REMOTE_ADDR");  
    
$h date("H",time());
    
set_session("nomem_hash".$h$_SERVER['REMOTE_ADDR']);
    
set_session("nomem_hash_h"$h);

    
$mon['Jan'] = '1';
    
$mon['Feb'] = '2';
    
$mon['Mar'] = '3';
    
$mon['Apr'] = '4';
    
$mon['May'] = '5';
    
$mon['Jun'] = '6';
    
$mon['Jul'] = '7';
    
$mon['Aug'] = '8';
    
$mon['Sep'] = '9';
    
$mon['Oct'] = '10';
    
$mon['Nov'] = '11';
    
$mon['Dec'] = '12';


    
$ftp_domain 'mjsoft.synology.me';
    
$ftp_id 'mjseoul';
    
$ftp_pw 'mj8680';
    
$ftp_port '7021';

    
$ftp_conn ftp_connect($ftp_domain$ftp_port) or die ("Cannot connect to host");
    
ftp_login($ftp_conn$ftp_id$ftp_pw) or die("Cannot login");
    
ftp_pasv ($ftp_conntrue);

    
$ftp_dir "./ÇÁ·Î±×·¥¼Â¾÷-Àüü/(±Ý¿äÀϹöÀü)";

    
ftp_chdir($ftp_conn$ftp_dir);

    
$list ftp_rawlist($ftp_conn".");
    
// ¸®½ºÆ®¸¦ Iteration ¹æ½ÄÀ¸·Î µ¥ÀÌÅ͸¦ ¹Þ´Â´Ù.
    
foreach ($list as $val) {
        
$ftp_filelist[] = $val;
    }

    
//_pr($ftp_filelist);

    
foreach($ftp_filelist as $key=>$val){
        
$v explode(" ",$val);
        
$info null;
        foreach(
$v as $k1=>$v1){
            if(
trim($v1)!=''){
                
$info[] = trim($v1);
            }
        }
        
$info_array[] = $info;
    }
    
//_pr($info_array);

if($_GET['file_name']!=''){

    
$ftp_conn ftp_connect($ftp_domain$ftp_port) or die ("Cannot connect to host");
    
ftp_login($ftp_conn$ftp_id$ftp_pw) or die("Cannot login");
    
ftp_pasv ($ftp_conntrue);

    
$ftp_dir "./ÇÁ·Î±×·¥¼Â¾÷-Àüü/(±Ý¿äÀϹöÀü)";

    
ftp_chdir($ftp_conn$ftp_dir);

    
$filename $_GET['file_name'];
    
//$local_dir = "/tmp";
    
$local_dir $_SERVER['DOCUMENT_ROOT']."/save_dir/program";
    
$local_file "{$local_dir}/".$filename// ¼îÇθô ÆÄÀÏ
    
$server_file $filename// FTPÀúÀåµÈ ÆÄÀÏ

    
if(ftp_get($ftp_conn$local_file$server_fileFTP_BINARY)){

    } else {
        echo 
"¿À·ù";
    }

    
//unlink($local_file);
}

ftp_close($ftp_conn);

foreach(
$info_array as $k1=>$val){
    
//_pr($val);
}

?>
<style>
.office_title{height:263px;}
.office_title{background:url('./img/customer/board_title/customer_edc_tit.png') center no-repeat;}
.office_ft{height:310px;}
.office_ft{background:url('./img/customer/board_title/customer_edc_ft.png') center  no-repeat;}

.edc_layout{text-align:center;padding:30px 0 40px;}
.edc_table table{margin-bottom:20px;}
.edc_tit{display:inline-block;margin-bottom:20px;line-height: 24px;}
.edc_tit h4{float:left;color:#0071e4;font-size:17px;font-weight:600;}
.edc_tit h4:before{content:'¡Ü';font-size:12px;position:relative;top:-2px;margin-right:5px;}
.edc_tit p{float:left;text-align:left;font-size:16px;}
.edc_tit span{font-weight:600}
.edc_table{width:1100px;margin:0 auto;border-top:3px solid #0071e4;}
.edc_table .edc_table_tit{background:#dae9ff;font-weight:600;font-size:16px;text-align:center;padding-left:0;}
.edc_table table tbody tr th{color:#3d3d3d;text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:16px;font-weight:600;background:#f1f0f0;}
.edc_table table tbody tr td{text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:14px;font-weight:600;}
.edc_table table th, .edc_table table td{height:45px;line-height:45px;padding:3px 0;border-right:2px solid #acacac;border-bottom:2px solid #acacac;}
.edc_table table tbody tr td input{border: 1px solid #b3b3b3;height:32px;border-radius:5px;padding:0 10px;margin-right:10px;}
.edc_table .edc_tel td input{width:60px;margin-right:0;}
.edc_table .edc_tel td span{margin:0 10px;}
.edc_table .edc_date td input{width:60px;margin-right:0;}
.edc_table .edc_date td span{margin:0 10px;}
.tieupAgree{width:1100px;margin:0 auto;border-top:0;position:relative;display:inline-block;}
.tieupAgree h2{text-align:left;font-size:16px;color:#000;}
.tieupAgree h2 span{font-size:12px;font-weight:400;}
.tieupAgree p{float:right;text-align: right;}
.tieupAgree textarea {width:1075px;margin:0 auto;margin-top:10px;}
.privacy_link{position:absolute;top:0;right:0;}
.privacy_link a{font-size: 13px;padding: 7px 10px;}
.edc_tit h4:before{content:'¡Ü';font-size:12px;position:relative;top:-2px;margin-right:5px;}
.office_ft_txt{background:#424242;}
.office_ft_txt ul{width:1100px;margin:0 auto;display:block;height:40px;line-height:40px;color:#fff;font-size:16px;}
.office_ft_txt ul li{width:50%;text-align:center;float:left;}
.office_ft_txt ul li:before{content:'¡Ü';font-size:11px;position:relative;top:-2px;margin-right:5px;}
.edc_btn{padding:15px 0px;width:150px;background:#0071e5;color:#fff;display:inline-block;font-size:17px;font-weight:600;border-radius:5px;cursor:pointer;}
.price_cs_btn{padding:15px 0;width:150px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;}
.price_cs_btn a{color:#fff;font-weight:600;}
.show_program_customer2{padding:15px 0;width:150px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;}
</style>
    <!--<div class="office_title"></div>-->
    <div class="wrap">

        <div class="contents" style='margin-top:0px;margin-bottom:0px;'>
            
            <div class="subContents" style='width:1200px'>
                <div class="section" style='width:1200px'>
                <br><br>
                    <h2 style='font-size:24px;'><b>ÇÁ·Î±×·¥¼Â¾÷-±Ý¿äÀϹöÁ¯</b></h2>

                    <table class="faqTable mt30" style='width:1200px'>
                        <tr> 
                            <th width="90">¹øÈ£</th>
                            <th width="">ÇÁ·Î±×·¥¸í</th>
                            <th width="">ÇÁ·Î±×·¥ÆÄÀϸí</th>
                            <th width="150">´Ù¿î·Îµå</th>
                            <th width="250">µî·ÏÀÏ</th>
                            <th width="250">ÆÄÀÏÅ©±â</th>
                        </tr>

<?
foreach($cate3_array as $key=>$cate_info){
    foreach(
$info_array as $k1=>$f1){
        if(
trim($f1[8])==trim($cate_info['DemoDownFile'])){
            
$program_name $cate_info['cate_name'];
            
$info $f1;
            break;
        }
    }
        
//_pr($info);
        
if(strpos($info[7],":")>0){
            
$date $mon[$info[5]]."-".$info[6]." ".$info[7];
        } else {
            
$date $info[7]."-".$mon[$info[5]]."-".$info[6];
        }
        
/*$program_name = "";
        foreach($cate3_array as $k1=>$p1){
            if(trim($p1['DemoDownFile'])==trim($info[8])){
                $program_name = $p1['cate_name'];
            }
        }
        if(strpos($info[8],"_patch")>0){ continue; }*/
?>
                        <tr>
                            <td ><?=$key+1;?></td>
                            <td style='text-align:left;margin-left:20px;'><?php echo $program_name;?></td>
                            <td style='text-align:left;margin-left:20px;'><?php echo $info[8];?></td>
                            <td ><a onclick="file_down('<?php echo $info[8];?>')" style='cursor:pointer;'>[´Ù¿î·Îµå]</a></td>
                            <td ><?php echo $date;?></td>
                            <td ><?php echo number_format($info[4]);?></td>
                        </tr>
<?    
    
}  
?>
                        <tr>
                            <td ><?=$key+1;?></td>
                            <td style='text-align:left;margin-left:20px;'>õ³â°æ¿µS</td>
                            <td style='text-align:left;margin-left:20px;'>newest.apk</td>
                            <td ><a href='http://mwas.mjsoft.co/android_login/_emergency/jego1s_XPDA/Debug/newest.apk' target='submit_frame' style='cursor:pointer;'>[´Ù¿î·Îµå]</a></td>
                            <td ></td>
                            <td class='apk1_size'></td>
                        </tr>
                        <tr>
                            <td ><?=$key+1;?></td>
                            <td style='text-align:left;margin-left:20px;'>õ³â°æ¿µ3S</td>
                            <td style='text-align:left;margin-left:20px;'>newest.apk</td>
                            <td ><a href='http://mwas.mjsoft.co/android_login/_emergency/jego3s/Debug/newest.apk' target='submit_frame' style='cursor:pointer;'>[´Ù¿î·Îµå]</a></td>
                            <td ></td>
                            <td  class='apk2_size'></td>
                        </tr>
                    </table>

                </div><!-- //section -->

            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->

<script>
function file_down($file){
    if(confirm($file+' ÆÄÀÏÀ» ´Ù¿î·Îµå ÇϽðڽÀ´Ï±î?')){
            submit_frame.document.location.href='?file_name='+$file;
    }
}
$(function(){
    setTimeout(function(){
        $.get("friday_program_apk1.php",function(rtn){
            $(".apk1_size").html(rtn);
        });
    },200);
    setTimeout(function(){
        $.get("friday_program_apk2.php",function(rtn){
            $(".apk2_size").html(rtn);
        });
    },200);
});
<?php if($_GET['file_name']!=''){ ?>
    document.location.href='/save_dir/program/<?php echo $_GET['file_name'];?>';
<?php ?>
</script>
<iframe id='submit_frame' name='submit_frame' style='width:1px;height:1px;'></iframe>
<? include("./Page/common/footer.php"); ?>
<?
    
//_pr($cate3_array);
?>