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
|
<? $dir = "."; include_once($dir."/_common.php"); ?> <? if(!isset($_SESSION['USERID'])) $_SESSION['USERID'] = "";
if( $_SESSION['USERID'] !== "" && isset($_SESSION['USERID'])){
//*************µô·¯½ÂÀο©ºÎ È®ÀÎ*************** $SelectQry = "select Com_num from member where Mid = '".$_SESSION['USERID']."' ";
$sSQL_result = mysql_query($SelectQry,$connect_web);
$row = mysql_fetch_array($sSQL_result);
if ($row['Com_num'] !== '0') {
?>
<script> location.href = "http://www.mjsoft.co/save_dir/doc/dealerguide.hwp"; </script> <? } else {
?>
<script> alert("µô·¯½ÂÀÎ ÈÄ ´Ù¿î·Îµå °¡´ÉÇÕ´Ï´Ù. \n\nµô·¯°¡ÀÔ¹®ÀÇ:02-401-5121 / 011-522-0911"); location.href = "./deal.php"; </script>
<?
}
} else { ?>
<script> alert("µô·¯½ÂÀÎ ÈÄ ´Ù¿î·Îµå °¡´ÉÇÕ´Ï´Ù."); location.href = "./deal.php"; </script>
<? } ?>
|