/home/mjc1/public_html/receipt/index_view.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
<?
session_start
();
@
extract($_REQUEST);
require_once(
"../inc/config.php");
$s_doc_name "receipt";

/*
 email_bill_d       |
| email_bill_m       |
| email_sale_d       |
| email_sale_m
*/

//À¯Àú ÀÎÁõ È®ÀΠ¹× °ü·Ã ¸µÅ© ¼³Á¤

$id "mijin";
//$pass = "kims";
$mailtype 0;
$singid $id;
$singpass $pass;
$mail_type $mailtype;
if(
$mail_type == 1){$mail_type "bill";}else if($mall_type ==0){$mail_type ="sale";}
/*
0= °Å·¡¸í¼¼Ç¥
¡¼ÃÖ»óÈ£¡½Èû³»ÀÚ! Èû! ´ÔÀÇ ¸»:
1=¼¼±Ý°è»ê¼­ ÀÔ´Ï´Ù. email_bill_d;   ¼¼±Ý°è»ê¼­ µðÅ×ÀÏ
*/

if($mail_type == "bill"){
    
$singQuery "select login_id from email_bill_m where login_id = '$singid'";
    
//$singQuery = "select Mid,Mpassword from member where Mid='$singid' and Mpassword='$singpass'";
    
$singResult mysql_query($singQuery);
    
$singRow mysql_fetch_array($singResult,MYSQL_ASSOC);
    if(
$singRow[login_id] == $singid){
        
        
session_register("sing_id","sing_check","sing_type","view_file","submit_file");
        
$sing_id $id;
        
$sing_check "Y";
        
$sing_type "bill";
        
$view_file "bill_list.php";
        
$submit_file "bill_mail.php";
        echo (
"<meta http-equiv='refresh' content='0; url=./bill_list.php'>");
    
    }else {
        echo(
"ÀÎÁõ ½ÇÆÐ");
        echo(
"
        <script> alert('ÀÎÁõ ½ÇÆÐ µÇ¾ú½À´Ï´Ù.');</script>
        <script> self.close();</script>
        "
);
    
    }
    


}else
if(
$mail_type == "sale"){
    
$singQuery "select login_id from email_sale_m where login_id = '$singid'";
    
//$singQuery = "select Mid,Mpassword from member where Mid='$singid' and Mpassword='$singpass'";
    
$singResult mysql_query($singQuery);
    
$singRow mysql_fetch_array($singResult,MYSQL_ASSOC);
    
    
    
    if(
$singRow[login_id] == $singid){
        
        
session_register("sing_id","sing_check","sing_type","view_file","submit_file");
        
$sing_id $id;
        
$sing_check "Y";
        
$sing_type="sale";
        
$view_file "sale_list.php";
        
$submit_file "sale_mail.php";


        echo (
"<meta http-equiv='refresh' content='0; url=./sale_list.php'>");
    
    }else {
        echo(
"ÀÎÁõ ½ÇÆÐ");
        echo(
"
        <script> alert('ÀÎÁõ ½ÇÆÐ µÇ¾ú½À´Ï´Ù.');</script>
        <script> history.back();</script>
        "
);
    
    }

    
    
}

?>