/home/mjc1/public_html/html/millennium/withdrawProcess.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<? include("./_common.php"); ?>

<?
    
if($_COOKIE['USERID']==''){
        echo 
"<script>alert('·Î±×ÀÎÇϼžߠÇÕ´Ï´Ù.');document.location.href='logingo.php';</script>"; exit;
    } else {
        
$sql "select count(*) as cnt from mBoard_withdraw where userid = '{$_COOKIE['USERID']}' ";
        
$res mysql_query($sql,$connect_web);
        
$info mysql_fetch_array($res);
        if(
$info['cnt']>0){
            echo 
"<script>alert('À̹̠ȸ¿øÅ»Åð ½ÅûÀ» Çϼ̽À´Ï´Ù.');window.history.go(-1);</script>"; exit;
        } else {
            
$sql "insert into mBoard_withdraw set
                        userid = '
{$_COOKIE['USERID']}', content = '{$detail}', reg_date = '".date("Y-m-d H:i:s",time())."'
            "
;
            
$res mysql_query($sql,$connect_web);
            echo 
"<script>alert('ȸ¿øÅ»Åð½ÅûÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù. ³»ºÎÀûÀ¸·Î CS°ü·Ãµ¥ÀÌÅÍ È®ÀÎÈÄ ÃÖÁ¾È¸¿øÅ»Åð󸮿͠¿¬¶ôÀ»µå¸®µµ·Ï ÇϰڽÀ´Ï´Ù.'); document.location.href='/';</script>"; exit;
        }
    }
?>