[TLBB] Code đổi bạc tại sao bí lỗi ai biết (PHP) vào cứu tớ với
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 3 của 3
  1. #1
    Thành Viên TS2GVN's Avatar
    Ngày tham gia
    Aug 2010
    Bài viết
    880
    Thanks
    75
    Thanked 526 Times in 104 Posts

    Code đổi bạc tại sao bí lỗi ai biết (PHP) vào cứu tớ với

    Nó báo Giao dịch bất hợp pháp

    PHP Code:
    <?php
        
    //isLogIn();

    if($_SERVER['REQUEST_METHOD'] == 'POST' && $_SERVER['HTTP_REFERER']) {
        
    $message $dom NULL;
        
    $ip  getUserIp();
        
    $date dbDateTime(); // Thời gian để ghi vào DB
        
    $time displayDateTime(); // Thời gian để ghi vào File
        
    $una $_SESSION['una']; // User Name
        
    $cap trim($_POST['captcha']); // Captcha
        
    $charId checkValidInt(VTDecode($_POST['idChar']));
        
    $amount checkValidInt(VTDecode($_POST['num']));
        if (
    $cap == $_SESSION['captcha'] &&  $charId && $amount ){ 
            
    $oAc $oChar = new oAccount();
            if (
    $amount $oAc->getUserInfo('point') || $oAc->getUserInfo('score') == ){
                
    //$message = "Giao dịch bất hợp pháp"; $dom = "notify_error"; 
            
    } elseif ( !$oAc->costPoint($amount) ) {
                
    $message "Giao dịch thất bại"$dom "notify_error"
            } else {
                
    $oAc->insert('exchange',array($una,$charId,$amount,$date),array('user','charguid','amount','time'));
                unset(
    $oAc);
                
    $oChar = new oChar();
                if (!
    $charInfo $oChar->checkCharExist($charId)){
                    
    $message "Nhân vật này không tồn tại"$dom "notify_error";
                } else {
                    
    //$exchange = $oChar->setMenpaiPoint($charId, $charInfo['menpaipoint'] + $amount); // Điểm môn phái
                    
    $exchange $oChar->setZengdian($charId$charInfo['zengdian'] + $amount); // Điểm tặng
                    
    if ($exchange){
                        
    $message "Quy đổi thành công! Nhận được {$amount} điểm tặng."$dom "notify_success";
                        
    $array "Tài khoản: ".$una.", Nhân vật: ".$charId.", Số lượng: ".$amount.",Thời gian: ".$time.", IP: ".$ip ;
                        
    logFile("doi_bac_ok.log"$array);
                    } else {
                        
    $message "Quy đổi thất bại!"$dom "notify_error";
                        
    $array "Tài khoản: ".$una.", Nhân vật: ".$charId.", Số lượng: ".$amount.",Thời gian: ".$time.", IP: ".$ip ;
                        
    logFile("doi_bac_error.log"$array);
                    }
                }
            } 

            
        } else {
                
    $message "Mã xác nhận không đúng!"$dom "notify_warning";
        }
    }
        
    ?>
        

        <!--Content-->
        <div id="content_wrapper">
            <div id="main_content" class="main_content">
                <div id="content_main" >
                    <span>Đổi Bạc</span><div style="clear:both"></div>

                    <span class="<?php echo isset($dom) ? $dom "notify_info"?>" ><?php echo isset($message) ? $message "Vui lòng thoát Game 2 phút trước khi thao tác"?></span><div style="clear:both"></div>

                    <form id="formID" name="formID" action="" method="post" onsubmit="return checkInput();">
                        
                        <table id="paymentTable" style="width: 100%; height: auto; padding: 10px 0 0 0;" cellspacing="0" cellpadding="0">
                            <tr><td colspan="3"></span></td></tr>
                        <!-- Chọn nhân vật -->
                            <tr>
                                <td class="l">► Chọn nhân vật</td>
                                <td >
                                    <SELECT NAME="idChar" id="idChar" class="validate[required] option-field">
                                    <OPTION VALUE="">Vui lòng chọn</OPTION>
                                    <?php
                                        
    //$charList = getCharList();
                                        
    $oChar = new oChar();
                                        
    $charList $oChar->getCharList();
                                        if (
    $charList){
                                            foreach (
    $charList as $char) {
                                            echo 
    "<OPTION VALUE='".VTEncode($char['charguid'])."'";
                                            echo 
    ">Tên: ".$char['charname']." - Cấp:".$char['level']."</OPTION>";
                                               }
                                        }
                                        
                                    
    ?>                
                                    </SELECT>
                                    <div class="clearboth"></div>
                                </td>
                            </tr>
                        <!-- Số lượng quy đổi -->
                            <tr>
                                <td class="l">► Số lượng đổi</td>
                                <td >
                                    <SELECT NAME="num" id="num" class="validate[required] option-field" data-prompt-position="bottomRight:-70,3">
                                    <OPTION VALUE="">0</OPTION>
                                    <?php
                                        $oAc 
    $oChar = new oAccount();
                                        
    $p $oAc->getUserInfo('point');
                                        if (
    $p >= 10000){
                                            for (
    $i=10000;$i<=$p && $i <= 200000;$i+=10000){
                                                
    $n $i/10000 ;
                                                if (
    $n==|| $n==|| $n==|| $n==12 || $n==20  )
                                                echo 
    "<option value='".VTEncode($i)."'>".$i." Bạc</option>";
                                            }
                                        }
                                    
    ?>                
                                    </SELECT>
                                    <div class="clearboth"></div>
                                </td>
                            </tr>

                        <!-- Mã xác nhận -->            
                            <tr><td colspan="3" ><span class="captcha_tit"></span></td></tr>

                            <tr>
                                <td class="l"></td>
                                <td class="captcha">
                                    <img src="captcha.php" title="" alt="" />
                                    <div class="clearboth"></div>
                                </td>
                            </tr>
                            
                            <tr>
                                <td class="l"></td>
                                <td class="captcha">
                                    <input id="captcha" name="captcha" type="text" class="validate[required,custom[onlyLetterNumber,minSize[6],maxSize[6] ] ] text-field" maxlength="6" placeholder="✩  Gồm 6 ký tự" autocomplete="off" data-prompt-position="bottomRight:-70,3" />
                                    <div class="clearboth"></div>
                                </td>
                            </tr>
                            
                            
                            <tr><td colspan="3" style="padding: 10px 0px;"><hr></td></tr>

                            <tr>
                                <td colspan="3" width="100%" style="padding: 10px 0px;">
                                    <input class="sub" type="submit" value="Đổi Bạc" id="submit" name="submit" />
                                    <input class="dec" type="reset" name="reset" value="Nhập lại" />
                                </td>
                            </tr>

                        </table>
                    </form>

                </div>
                    
                <?php include('modules/module-sider-login.php');?>                
            </div><!--END Content-->
        </div>
    Khách viếng thăm hãy cùng TS2GVN xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên thoigian07's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    74
    Thanks
    25
    Thanked 12 Times in 12 Posts

    Ðề: Code đổi bạc tại sao bí lỗi ai biết (PHP) vào cứu tớ với

    Trích dẫn Gửi bởi TS2GVN [Only registered and activated users can see links. ]
    Nó báo Giao dịch bất hợp pháp

    PHP Code:
    <?php
        
    //isLogIn();

    if($_SERVER['REQUEST_METHOD'] == 'POST' && $_SERVER['HTTP_REFERER']) {
        
    $message $dom NULL;
        
    $ip  getUserIp();
        
    $date dbDateTime(); // Thời gian để ghi vào DB
        
    $time displayDateTime(); // Thời gian để ghi vào File
        
    $una $_SESSION['una']; // User Name
        
    $cap trim($_POST['captcha']); // Captcha
        
    $charId checkValidInt(VTDecode($_POST['idChar']));
        
    $amount checkValidInt(VTDecode($_POST['num']));
        if (
    $cap == $_SESSION['captcha'] &&  $charId && $amount ){ 
            
    $oAc $oChar = new oAccount();
            if (
    $amount $oAc->getUserInfo('point') || $oAc->getUserInfo('score') == ){
                
    //$message = "Giao dịch bất hợp pháp"; $dom = "notify_error"; 
            
    } elseif ( !$oAc->costPoint($amount) ) {
                
    $message "Giao dịch thất bại"$dom "notify_error"
            } else {
                
    $oAc->insert('exchange',array($una,$charId,$amount,$date),array('user','charguid','amount','time'));
                unset(
    $oAc);
                
    $oChar = new oChar();
                if (!
    $charInfo $oChar->checkCharExist($charId)){
                    
    $message "Nhân vật này không tồn tại"$dom "notify_error";
                } else {
                    
    //$exchange = $oChar->setMenpaiPoint($charId, $charInfo['menpaipoint'] + $amount); // Điểm môn phái
                    
    $exchange $oChar->setZengdian($charId$charInfo['zengdian'] + $amount); // Điểm tặng
                    
    if ($exchange){
                        
    $message "Quy đổi thành công! Nhận được {$amount} điểm tặng."$dom "notify_success";
                        
    $array "Tài khoản: ".$una.", Nhân vật: ".$charId.", Số lượng: ".$amount.",Thời gian: ".$time.", IP: ".$ip ;
                        
    logFile("doi_bac_ok.log"$array);
                    } else {
                        
    $message "Quy đổi thất bại!"$dom "notify_error";
                        
    $array "Tài khoản: ".$una.", Nhân vật: ".$charId.", Số lượng: ".$amount.",Thời gian: ".$time.", IP: ".$ip ;
                        
    logFile("doi_bac_error.log"$array);
                    }
                }
            } 

            
        } else {
                
    $message "Mã xác nhận không đúng!"$dom "notify_warning";
        }
    }
        
    ?>
        

        <!--Content-->
        <div id="content_wrapper">
            <div id="main_content" class="main_content">
                <div id="content_main" >
                    <span>Đổi Bạc</span><div style="clear:both"></div>

                    <span class="<?php echo isset($dom) ? $dom "notify_info"?>" ><?php echo isset($message) ? $message "Vui lòng thoát Game 2 phút trước khi thao tác"?></span><div style="clear:both"></div>

                    <form id="formID" name="formID" action="" method="post" onsubmit="return checkInput();">
                        
                        <table id="paymentTable" style="width: 100%; height: auto; padding: 10px 0 0 0;" cellspacing="0" cellpadding="0">
                            <tr><td colspan="3"></span></td></tr>
                        <!-- Chọn nhân vật -->
                            <tr>
                                <td class="l">► Chọn nhân vật</td>
                                <td >
                                    <SELECT NAME="idChar" id="idChar" class="validate[required] option-field">
                                    <OPTION VALUE="">Vui lòng chọn</OPTION>
                                    <?php
                                        
    //$charList = getCharList();
                                        
    $oChar = new oChar();
                                        
    $charList $oChar->getCharList();
                                        if (
    $charList){
                                            foreach (
    $charList as $char) {
                                            echo 
    "<OPTION VALUE='".VTEncode($char['charguid'])."'";
                                            echo 
    ">Tên: ".$char['charname']." - Cấp:".$char['level']."</OPTION>";
                                               }
                                        }
                                        
                                    
    ?>                
                                    </SELECT>
                                    <div class="clearboth"></div>
                                </td>
                            </tr>
                        <!-- Số lượng quy đổi -->
                            <tr>
                                <td class="l">► Số lượng đổi</td>
                                <td >
                                    <SELECT NAME="num" id="num" class="validate[required] option-field" data-prompt-position="bottomRight:-70,3">
                                    <OPTION VALUE="">0</OPTION>
                                    <?php
                                        $oAc 
    $oChar = new oAccount();
                                        
    $p $oAc->getUserInfo('point');
                                        if (
    $p >= 10000){
                                            for (
    $i=10000;$i<=$p && $i <= 200000;$i+=10000){
                                                
    $n $i/10000 ;
                                                if (
    $n==|| $n==|| $n==|| $n==12 || $n==20  )
                                                echo 
    "<option value='".VTEncode($i)."'>".$i." Bạc</option>";
                                            }
                                        }
                                    
    ?>                
                                    </SELECT>
                                    <div class="clearboth"></div>
                                </td>
                            </tr>

                        <!-- Mã xác nhận -->            
                            <tr><td colspan="3" ><span class="captcha_tit"></span></td></tr>

                            <tr>
                                <td class="l"></td>
                                <td class="captcha">
                                    <img src="captcha.php" title="" alt="" />
                                    <div class="clearboth"></div>
                                </td>
                            </tr>
                            
                            <tr>
                                <td class="l"></td>
                                <td class="captcha">
                                    <input id="captcha" name="captcha" type="text" class="validate[required,custom[onlyLetterNumber,minSize[6],maxSize[6] ] ] text-field" maxlength="6" placeholder="✩  Gồm 6 ký tự" autocomplete="off" data-prompt-position="bottomRight:-70,3" />
                                    <div class="clearboth"></div>
                                </td>
                            </tr>
                            
                            
                            <tr><td colspan="3" style="padding: 10px 0px;"><hr></td></tr>

                            <tr>
                                <td colspan="3" width="100%" style="padding: 10px 0px;">
                                    <input class="sub" type="submit" value="Đổi Bạc" id="submit" name="submit" />
                                    <input class="dec" type="reset" name="reset" value="Nhập lại" />
                                </td>
                            </tr>

                        </table>
                    </form>

                </div>
                    
                <?php include('modules/module-sider-login.php');?>                
            </div><!--END Content-->
        </div>
    bạn vào database cột "score" cho giá tri vào ,ko được để tróng
    Khách viếng thăm hãy cùng thoigian07 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #3
    Thành Viên s2bac95's Avatar
    Ngày tham gia
    Nov 2011
    Bài viết
    220
    Thanks
    55
    Thanked 73 Times in 51 Posts

    Ðề: Code đổi bạc tại sao bí lỗi ai biết (PHP) vào cứu tớ với

    SCORE và POINT ở db web phải hợp lệ
    Khách viếng thăm hãy cùng s2bac95 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. xin code khóa mod và code reset time
    Bởi _ThienThan_ trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 5
    Bài viết cuối: 05-11-15, 08:18 PM
  2. [MU] xin code đóng khung code đếm ngược event
    Bởi vanhai32 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 5
    Bài viết cuối: 24-08-15, 10:25 AM
  3. [KT] Tools hỗ trợ viết code LUA [ Code Snippet Function]
    Bởi khoctinhmhs trong diễn đàn Releases
    Trả lời: 6
    Bài viết cuối: 03-12-14, 06:03 PM
  4. [JX] cần xin code auto backup của PTTk bác nào có code autoit đó share giúp thanks
    Bởi Olala trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 0
    Bài viết cuối: 18-10-14, 12:49 AM
  5. [Gunny] Xin Code Web Chuyển xu Game thành Cash Web Với code xóa pet 5 sao với ...
    Bởi vinateam trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 5
    Bài viết cuối: 14-07-14, 01:04 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 08:13 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.