Jump to content

Archived

This topic is now archived and is closed to further replies.

Haxigi

[Dotpay] Skrypt działa, ale nie do końca.

Recommended Posts

Witam. Zamówiłem sobie usługę w dotpay.pl - SMS zwracający kod dostępu do usługi. Kod generowany i dopisywany do listy kodow. Sprawdzanie kodow w Dotpay.

Pobrałem skrypt i wkleiłem go w moją stronę.

Skrypt umieszczony jest pod adresem:

http://xxxxxxxx.xx/v3/index.php?a=buycredits

Po wciśnięciu przycisku sprawdzającego kod i przenoszącego do danej strony, powinienem otrzymać taki adres:

http://dotpay.pl/check_code.php?id=".$id."&code=".$code."&check=".$check."&type=".$type."&del=".$del, 'r'

Odpowiednio wypełniając zmienne. Zamiast tego otrzymuję adres:

http://xxxxxxxx.xx/v3/index.php?check=kod_otrzymany_smsem

I nic się w tym czasie nie dzieje. Błąd polega pewnie na tym, że zamiast adresu do sprawdzenia kodu, dopisuje się do index.php ten cały check. Ktoś wie jak to naprawić ?

<?php

$id = mój_id;              # numer ID zarejestrowanego klienta
$code = "GOLMAF";        # identyfikator usług SMS
$type = "sms";          # typ konta: C1 - 8 znakowy kod bezobsługowy
               # typ konta: sms dla sprawdzania SMSow
$page = "up10.php";    # nazwa pliku jaki ma sie zaladowac po podaniu poprawnego kodu


# gdy sprawdzane będą zarówno konta smsowe jak i konta przy płatnościach kartą
# to należy wtedy użyć zapisu:
# $type = "c1,sms";

#
# przy sprawdzaniu kilku kont o różnych identyfikatorach należy użyć zapisu:
# $code = "abcd1,abcd2,kody2,kody6";

$del=0;   # jeżeli kod ma być skasowany od razu po sprawdzeniu to ustaw wartość na 1
################################################################################
#
$check = $_POST['check']; # podany kod na stronie gdzie wejście jest płatne i wymagany jest zakupiony kod
if($check == NULL)
  exit("Prosze wpisac kod");
  

    $handle = fopen("http://dotpay.pl/check_code.php?id=".$id."&code=".$code."&check=".$check."&type=".$type."&del=".$del, 'r');
    $status = fgets($handle, 8);
    $czas_zycia = fgets($handle, 24);
    fclose($handle);
    $czas_zycia = rtrim($czas_zycia);



    if ($status == 0) {print "Kod niepoprawny."; exit;}  # gdy kod niepoprawny
    else
    {  # gdy kod poprawny:
    if (!isset($_COOKIE['ActiveCode']))
    {
        setcookie('ActiveCode',1, time()+$czas_zycia);
    }
    else
    {
        setcookie('ActiveCode',0, time()+2, "/");
        setcookie('ActiveCode',1, time()+$czas_zycia, "/");
    }
    header("Location: ".$page);        # włączenie strony głównej
    }
?>

Link to comment
Share on other sites

Ciężko będzie mając tylko ten jeden skrypt. Przydałby się jeszcze kod formularza, z którego wchodzisz na daną stronę. W dodatku dosyć pokrętnie wyjaśniłeś problem. Ten skrypt na pewno nie powinien przekierować Cię na

http://dotpay.pl/check_code.php?id=".$id."&code=".$code."&check=".$check."&type=".$type."&del=".$del, 'r'

ale na

http://xxxxxxxx.xx/v3/up10.php

Przypuszczam, że problem jest taki:

Adres

http://xxxxxxxx.xx/v3/index.php?check=kod_otrzymany_smsem

wskazuje na to, że używasz metody GET w formularzu, a w linii

$check = $_POST['check'];

oczekujesz przypisania czegoś przesłanego metodą POST. Skrypt działa więc jak należy, czyli wykonuje te linie

if($check == NULL)
  exit("Prosze wpisac kod");

Link to comment
Share on other sites

<?
if(isset($_POST['first'])){
if($data->callcredits >= 10){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'10', `vipdays`=`vipdays`+'15' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['second'])){
if($data->callcredits >= 15){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'28', `vipdays`=`vipdays`+'30' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['third'])){
if($data->callcredits >= 8){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'15', `bank`=`bank`+'3000000' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['fourth'])){
if($data->callcredits >= 15){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'28', `bank`=`bank`+'6000000' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['fifth'])){
if($data->callcredits >= 4){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'4', `bankstandard`=`bankstandard`+'5' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['fifth'])){
if($data->callcredits >= 4){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'7', `bankstandard`=`bankstandard`+'10' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['fifth'])){
if($data->callcredits >= 4){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'4', `bankstandard`=`bankstandard`+'15' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['sixth'])){
if($data->callcredits >= 7){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'7', `dagenrente`=`dagenrente`+'15' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['seventh'])){
if($data->callcredits >= 9){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'9', `maffia`=`maffia`+'24' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['eighth'])){
if($data->callcredits >= 13){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'13', `maffia`=`maffia`+'48' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['nineth'])){
if($data->callcredits >= 8){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'28', `maffia`=`maffia`+'12', `power`=`power`+'1500', `bank`=`bank`+'1000000' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['tenth'])){
if($data->callcredits >= 15){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'40', `power`=`power`+'75000' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['eleventh'])){
if($data->callcredits >= 28){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'28', `health`='100' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['twelveth'])){
if($data->callcredits >= 7){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'7' WHERE `login`='$data->login'");
mysql_query("UPDATE `clicks` SET `active`='0' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['thirteenth'])){
if($data->callcredits >= 7){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'5', `killers`=`killers`+'30' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['fourteenth'])){
if($data->callcredits >= 15){
mysql_query("UPDATE `registered_ip` SET `max`=`max`+'1' WHERE `ip`='$data->IP'");
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'15' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
}
}
if(isset($_POST['vijftien'])){
    if($data->callcredits >= 28){
        mysql_query("UPDATE `users` SET `vermoord`='0', `health`='100', `safe`='1', `callcredits`=`callcredits`-'5' WHERE `login`='$data->login'");
        }
}
if(isset($_POST['zestien'])){
if($data->callcredits >= 30){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'50', `rankvord`=`rankvord`+'50' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
   }
}
if(isset($_POST['zeventien'])){
if($data->callcredits >= 11){
mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'50', `respect`=`respect`+'150' WHERE `login`='$data->login'");
   header("Location: $sitelink/v3/buycredits.php?p=shop");
        ?> <meta http-equiv="refresh" content="0" />
<style type="text/css">
<!--
.stijl1 {color: #FF0000}
-->
</style>
); <?
    }
}
?>
                    <script language="javascript">
    function handleTabs(pTab){

        var tabblad;
        var tabbladen = new Array();
        tabbladen[0] = 'Kup';
        tabbladen[1] = 'info';
        tabbladen[2] = 'shop';

        for(i=0;i<tabbladen.length;i++){
            document.getElementById('tab_' + tabbladen[i]).style.backgroundImage = 'url(images/tab_dark.jpg)';
            document.getElementById('page_' + tabbladen[i]).style.display = 'none';
        }

        document.getElementById('tab_' + pTab).style.backgroundImage = 'url(images/tab_light.jpg)';
        document.getElementById('page_' + pTab).style.display = 'block';
    }
</script>
<h1 id="ajax_targetpay" style="display:none">AJAX TEST</h1>

        <div class="title_bg">
            <div class="title">VIP sklep</div>
        </div>

        <div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
        <table cellpadding="0" cellspacing="0" width="100%"><tr><td>
        <table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            <div id="tab_Kup" style="float:left; width:130px; height:35px; background: url(images/tab_dark.jpg) no-repeat;">
                <div style="margin-left:15px; margin-top:8px;"><img src="images/icons/money.png" align="bottom">
                    <a style="font-size:16px; color:black" href="java script:handleTabs('Kup')">Kup</a>
                </div>
            </div>
            <div id="tab_info" style="float:left; width:130px; height:35px; background: url(images/tab_dark.jpg) no-repeat; margin-left:10px;">
                <div style="margin-left:15px; margin-top:8px;"><img src="images/icons_gif/information.gif" align="bottom">
                    <a style="font-size:16px; color:black" href="java script:handleTabs('info')">Informacje</a>
                </div>
            </div>
            <div id="tab_shop" style="float:right; width:130px; height:35px; background: url(images/tab_dark.jpg) no-repeat; margin-left:10px;">
                <div style="margin-left:15px; margin-top:8px;"><img src="images/icons_gif/basket.gif" align="bottom">
                    <a style="font-size:16px; color:black" href="java script:handleTabs('shop')">Sklep</a>
                </div>
            </div>
        </td>
    </tr><?if($data->vermoord > 0){?>
                            <div id="page_nl" style="display:none;">
                    <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
                                                <tr>
                            <td width="100%" colspan="2">
                                <div id="js_msg"  style="width:100%; background:url(images/js_msg/bg.gif) repeat-y; margin-top:10px; margin-left:2px;margin-right:2px;">
                                    <table cellpadding="0" cellspacing="0" border="0" align="center" width="596">
                                        <tr>
                                            <td colspan="4" height="4px"><img src="images/js_msg/top.gif"></td>
                                        </tr>
                                        <tr>
                                            <td width="2px"> </td>
                                            <td align="center" valign="middle" style="padding-top:0; padding-left:3px"  bgcolor="#FFFFFF">
                                                <table cellspacing="5">
                                                    <tr>
                                                        <td>
                                                            <img src="images/js_msg/exl_big_red.gif">
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td width="556px" bgcolor="#FFFFFF">
                                                <div id="text_shop" style="display:block; line-height:135%; font-size:12px; font-weight:bold">
                                                    <font color='black' id="js_msg_msg">
                                                        <table width="100%">
                                                        <tr>

                                                            <td width="100%">
                                                                <b style="font-size:18px">Niestety, zostales zabity...</b><br>
                                                                <br>
                                                                Aby wrócic do zywych postepuj wedlug nastepujacych kroków.. <br>
                                                                <br>
                                                                Oprócz 100% zycia, zdobadz kolejne <b> 28 </ b> kredytów, które mozesz uzyc w VIP shopie aby poczuc sie silniejszym !                                                                
                                                                <br />
                                                                Jezeli masz wystarczajaco kredytów mozesz przejsc do VIP sklepu!
                                                                </td>
                                                            <td>
                                                                <img src="images/dood.jpg" align="left" width="200px">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    </font>
                                                </div>
                                            </td>
                                            <td width="2px"></td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" height="13px"><img src="images/js_msg/bottom.gif"></td>
                                        </tr>
                                    </table>

                                </div>


                            </td>
                        </tr><?}?>
    <tr>
        <td>
            <div id="page_Kup" style="display:none;">
                <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
                                        <tr>
                        <td width="400" colspan="2">
                            <div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
                                <div id="text_nl" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
                                    Aby robic zakupy w VIP sklepie potrzebujesz kredytów.<br>
                                    Mozesz otrzymac nawet <b>50 kredytów</b> w nastepujacy sposób:
                                </div>
                            </div>
                        </td>
                    </tr>
<?
echo $error;
?>
                                        <tr>
                        <td colspan="2">
                            <form method="GET">
                            <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3">
                                <tr>
                                    <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" height="40">
                                        <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Co i jak ?</div>

                                    </td>

                                    <td rowspan="6" valign="top" align="right" style="padding-right:10px;">
                                        <div style="width:160px; height:100px; text-align:center;">
                                        <img src="images/dotpay.gif" />
<a href="java script:handleTabs('info')" style="color:#6b5e40; margin-top:3px; display:block">Co to sa kredyty?</a><br>
                                        </div>
                                    </td>
                                </tr>

                                <tr>

                                    <td colspan=2>
                                        <br>
                                        <div style="margin-left:10px; font-family:Verdana; font-size:14px;">Kredyty mozesz otrzymac wykonujac platnosc SMS.<br> W pózniejszym czasie zostanie wprowadzona<br> mozliwosc przelewów !</div>
                                        <br><br>
                                    </td>
                                </tr>

                                <tr>
                                    <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395px" height="40">

                                        <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Krok 2:</div>
                                    </td>
                                </tr>

                                <tr>
                                    <td>
                                        <br>
                                        <div style="margin-left:10px; font-family:Verdana; font-size:12px;">
Wybierz rodzaj platnosci:<br />
<table border="0">
  <tr>
    <td><p>Aby otrzymac dodatkowe kredyty  wyslij SMS</p>
      <table width="379" border="0">
        <tr>
          <td width="37"><strong>Ilosc</strong></td>
          <td width="126"><strong>Tresc wiadomosci</strong></td>
          <td width="53"><strong>Numer</strong></td>
          <td width="145"><strong>Koszt</strong></td>
        </tr>
        <tr>
          <td>50</td>
          <td>AP.GOLDMAF</td>
          <td>91968</td>
          <td>23,18 zl brutto z VAT</td>
        </tr>
        <tr>
          <td>20</td>
          <td>AP.GOLDMAF</td>
          <td>79068</td>
          <td>10,98 zl brutto z VAT</td>
        </tr>
        <tr>
          <td>10</td>
          <td>AP.GOLDMAF</td>
          <td>76068</td>
          <td>7,32 zl brutto z VAT</td>
        </tr>
      </table>
    <p> Usluga dziala w sieciach operatorów: Plus GSM, Era, Orange, Play. Wlasciciel serwisu: haxigi@gmail.com. Serwis SMS obsluguje Dotpay.pl.   <a href="http://www.dotpay.pl/regulaminsms">Regulamin</a>.</p></td>
  </tr>
</table>
    <br />

<br />
                                        </div>
                                        <br><br>
                                    </td>
                                </tr>

                                <tr>
                                    <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395px" height="40">
                                        <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Krok 3</div>

                                    </td>
                                </tr>

                                <tr>
                                    <td>
                                        <br>
                                        <div style="margin-left:10px; font-family:Verdana; font-size:12px;width:370px">

[color="#FF0000"]<FORM ACTION="sprawdz.php" METHOD=POST>
Wpisz tutaj kod, jezeli kupiles 10 kredytów: <INPUT TYPE=TEXT NAME="check" SIZE=10 MAXLENGTH=8>
<CENTER><INPUT TYPE=SUBMIT VALUE="KUP"></CENTER>
</FORM><BR /><FORM ACTION="sprawdz2.php" METHOD=POST>
Wpisz tutaj kod, jezeli kupiles 20 kredytów: <INPUT TYPE=TEXT NAME="check" SIZE=10 MAXLENGTH=8>
<CENTER><INPUT TYPE=SUBMIT VALUE="KUP"></CENTER>
</FORM><BR /><FORM ACTION="sprawdz3.php" METHOD=POST>
Wpisz tutaj kod, jezeli kupiles 50 kredytów: <INPUT TYPE=TEXT NAME="check" SIZE=10 MAXLENGTH=8>
<CENTER><INPUT TYPE=SUBMIT VALUE="KUP"></CENTER>
</FORM>[/color]
                                            <!--<center><img src="ajax/loading.gif" align="middle"></center>-->
                                        </div>
                                        <br><br>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                </form>
            </div>
            <div id="page_info" style="display:none">
                <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
                                        <tr>
                        <td width="400" colspan="2">
                            <div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
                                <div id="text_be" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
         Tutaj znajdziesz wszelkie informacje odnosnie kredytów:
                                </div>
                            </div>
                        </td>
                    </tr>
                                        <tr>
                        <td colspan="2">
                            <form method="GET">
                                <input type="hidden" name="a" value="mod_credit_shop_new">
                                <input type="hidden" name="f" value="phone_be">
                                <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3">
                                    <tr>
                                        <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395" height="40">
                                            <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Informacje:</div>
                                        </td>

                                    </tr>

                                    <tr>
                                        <td>
                                            <br>
                                            <div style="margin-left:10px; font-family:Verdana; font-size:14px;">Kredyty sa forma platnosci za rzeczy w VIP sklepie. <br>Otrzymac je mozesz placac za nie prawdziwymi pieniedzmi.<BR>Forma platnosci jest przelew SMS.<br>Cena SMS'a w zaleznosci od ilosci kredytów</div>

                                            <br><br>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>


            <div id="page_shop" style="display:none">
                <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
                    <tr>
                        <td width="400" colspan="2">
                            <div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
                                <div id="text_be" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
                                    <a style="color:black" href="java script:handleTabs('Kup')">Posiadasz <b><?echo $data->callcredits;?></b> kredytów, Wcisnij aby zwiekszyc ich ilosc!</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <table width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list" bgcolor="#e5dfd3">
                                <tr>
                                    <td align="center" width="3%" class="subtable"> </td>
                                    <td class="subtable"><strong>Przedmiot</strong></td>
                                    <td class="subtable" align="center"><strong>Kredyty</strong></td>
                                    <td align="center" width="6%" class="subtable"><strong>Kupno</strong></td>
                                </tr>
    <form method="POST">
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/star_big.gif' alt='15 dniowe konto premium' border='0'></td>
                                    <td class="subtable">
                                        15 dniowe konto premium
                                                                                </td>
                                    <td class="subtable">10 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 10){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="first"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/star_big.gif' alt='30 dniowe konto premium' border='0'></td>
                                    <td class="subtable">
                                        30 dniowe konto premium
                                                                                </td>
                                    <td class="subtable">20 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 20){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="second"><?}?>
                                                                            </td>
                                </tr>
<tr class="top">
    <td align="center" width="6%" class="subtable">
        <img width="16" src='images/icons_gif/heart.gif' alt='Reanimatie' border='0'>
    </td>
    <td class="subtable">
        100% Zdrowia ( Gdy zostales zabity, przywróci ciebie do zycia )
    </td>
    <td class="subtable">
        28 Kredytów
    </td>
    <td align="center" width="6%" class="subtable">
        <? if($data->callcredits < 28 || $data->vermoord == 0){?>
            <font class="callshop_kopen_no"> Kup </font><?
        }
        else{?>
            <input type="submit" class="mod_submit" value=" Kup " name="vijftien"><?
        }?>
    </td>
</tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='Extra geld: € 3.000.000' border='0'></td>
                                    <td class="subtable">
                                        Dodatkowe pieniadze: € 3.000.000                                                                                </td>
                                    <td class="subtable">15 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 15){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="third"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='Extra geld: € 6.000.000' border='0'></td>
                                    <td class="subtable">
                                        Dodatkowe pieniadze: € 6.000.000                                                                                </td>
                                    <td class="subtable">28 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 28){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="fourth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='5 keer vaker storten bij de bank' border='0'></td>
                                    <td class="subtable">
                                        5 dodatkowych wplat do banku                                                                                </td>
                                    <td class="subtable">4 Kredyty</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 4){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="fifth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='15 dagen lang 10% rente' border='0'></td>
                                    <td class="subtable">
                                        15 dniowe 10% odsetki                                                                            </td>
                                    <td class="subtable">7 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 7){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="sixth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/shield.gif' alt='24 uur bescherming' border='0'></td>
                                    <td class="subtable">
                                        24 godzinna ochrona                                                                                </td>
                                    <td class="subtable">9 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 9){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="seventh"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/shield.gif' alt='48 uur bescherming' border='0'></td>
                                    <td class="subtable">
                                        48 godzinna ochrona                                                                                </td>
                                    <td class="subtable">13 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 13){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="eighth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/shield.gif' alt='€ 1.000.000, 12 uur bescherming en 1.500 power' border='0'></td>
                                    <td class="subtable">
                                        € 1.000.000, 12 godzinna ochrona i 1500 mocy                                                                                </td>
                                    <td class="subtable">28 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 28){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="nineth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/lightning.gif' alt='75000 extra power' border='0'></td>
                                    <td class="subtable">
                                        75000 dodatkowej energii                                                                                </td>
                                    <td class="subtable">40 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 40){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="tenth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/delete.gif' alt='Secret Link Cleaner' border='0'></td>
                                    <td class="subtable">
                                        Czyszczenie sekretnego linku                                                                                </td>
                                    <td class="subtable">7 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 7){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="twelveth"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/brick.gif' alt='Maarliefst 150 attack coins' border='0'></td>
                                    <td class="subtable">
                                        30 Morderców                                                                            </td>
                                    <td class="subtable">5 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 5){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="thirteenth"><?}?>
                                                                            </td>
                                </tr>
                                
                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/brick.gif' alt='Maarliefst 150 attack coins' border='0'></td>
                                    <td class="subtable">
                                        50 % Dodatkowego Postepu                                                                        </td>
                                    <td class="subtable">50 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 50){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="zestien"><?}?>
                                                                            </td>
                                </tr>
                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/brick.gif' alt='Maarliefst 150 attack coins' border='0'></td>
                                    <td class="subtable">
                                        150 Dodatkowego Respektu                                                                        </td>
                                    <td class="subtable">50 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 50){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="zeventien"><?}?>
                                                                            </td>
                                </tr>
                                                                <tr class="top">
                                    <td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/status_offline.gif' alt='Extra account' border='0'></td>
                                    <td class="subtable">
                                        Dodatkowe konto
                                                                                </td>
                                    <td class="subtable">15 Kredytów</td>
                                    <td align="center" width="6%" class="subtable">
<?if($data->callcredits < 15){?>
                                                                                    <font class="callshop_kopen_no"> Kup </font>
<?}else{?>                <input type="submit" class="mod_submit" value=" Kup " name="fourteenth"><?}?>
                                                                            </td>
                                </tr><tr class="top">
                                    <td align="center" width="6%" class="subtable">
                                    <td class="subtable stijl1">
                                        <font color="#FF0000"><b>Jezeli zakupisz 2x ten sam przedmiot, nie oznacza to, ze bedziesz mial wydluzony czas tego przedmiotu. Kazdy zakup traktowany jest osobno, dlatego badz rozwazny!<br /><br />

VIP Sklep sluzy tylko do czasowego ulatwienia gry, przedmioty nie sa na stale!</b></font>                                                                            </td>
                                    <td align="center" width="6%" class="subtable">
                                  </td>
                                </tr>
                                                            </table>
        </form>
                        </td>
                    </tr>
                </table>
            </div>



                    </td>
    </tr>
</table>
<?if($_GET['p'] == shop){
?>
    <script language="javascript">
        handleTabs('shop');
    </script>
<?}
if($_GET['p'] != shop){
?>
    <script language="javascript">
        handleTabs('Kup');
    </script>
<?}?>

        </td></tr></table>
        </div>

        <table width='100%' cellspacing='2' cellpadding='2'>
            <tr>

                <td class='content_bottom'></td>
            </tr>
        </table>

<script language="javascript">



  setTimeout("do_nl()",10000);
  setTimeout("do_be()",11000);

    function do_nl(){
        new Ajax.PeriodicalUpdater('ajax_targetpay', 'http://www.goldmaffia.nl/v3//ajax/targetpay.php?code=615158&country=NL',
              {
            method: 'get',
            frequency: 2,
            decay: 1,
            onSuccess: function(transport){
                var response = transport.responseText.split("|");
                  if(response[0] == "NL_OK"){
                      document.location.href = 'index.php?a=mod_credit_shop_new&f=done_nl&credits='+response[1];
                  }
            }

              }
          );
    }

    function do_be(){
        new Ajax.PeriodicalUpdater('ajax_targetpay', 'http://www.goldmaffia.nl/v3//ajax/targetpay.php?code=615083&country=BE',
              {
            method: 'get',
            frequency: 2,
            decay: 1,
            onSuccess: function(transport){
                var response = transport.responseText.split("|");
                  if(response[0] == "BE_OK"){
                      document.location.href = 'index.php?a=mod_credit_shop_new&f=done_be&credits='+response[1];
                  }
            }
              }
          );
    }
</script>        </div>
    </td>
    </tr>

    </table>
    </td>

Jest co cały kod z pliku w którym jest dołączona płatność.

To co na czerwono, jest kodem, który dostałem z paczki dotpay.

Link to comment
Share on other sites

Masz niezły burdel w kodzie. Interesuje nas framgment.

                            <form method="GET">
                            <table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3">
                                <tr>
                                    <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" height="40">
                                        <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Co i jak ?</div>

                                    </td>

                                    <td rowspan="6" valign="top" align="right" style="padding-right:10px;">
                                        <div style="width:160px; height:100px; text-align:center;">
                                        <img src="images/dotpay.gif" />
<a href="java script:handleTabs('info')" style="color:#6b5e40; margin-top:3px; display:block">Co to sa kredyty?</a><br>
                                        </div>
                                    </td>
                                </tr>

                                <tr>

                                    <td colspan=2>
                                        <br>
                                        <div style="margin-left:10px; font-family:Verdana; font-size:14px;">Kredyty mozesz otrzymac wykonujac platnosc SMS.<br> W pózniejszym czasie zostanie wprowadzona<br> mozliwosc przelewów !</div>
                                        <br><br>
                                    </td>
                                </tr>

                                <tr>
                                    <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395px" height="40">

                                        <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Krok 2:</div>
                                    </td>
                                </tr>

                                <tr>
                                    <td>
                                        <br>
                                        <div style="margin-left:10px; font-family:Verdana; font-size:12px;">
Wybierz rodzaj platnosci:<br />
<table border="0">
  <tr>
    <td><p>Aby otrzymac dodatkowe kredyty  wyslij SMS</p>
      <table width="379" border="0">
        <tr>
          <td width="37"><strong>Ilosc</strong></td>
          <td width="126"><strong>Tresc wiadomosci</strong></td>
          <td width="53"><strong>Numer</strong></td>
          <td width="145"><strong>Koszt</strong></td>
        </tr>
        <tr>
          <td>50</td>
          <td>AP.GOLDMAF</td>
          <td>91968</td>
          <td>23,18 zl brutto z VAT</td>
        </tr>
        <tr>
          <td>20</td>
          <td>AP.GOLDMAF</td>
          <td>79068</td>
          <td>10,98 zl brutto z VAT</td>
        </tr>
        <tr>
          <td>10</td>
          <td>AP.GOLDMAF</td>
          <td>76068</td>
          <td>7,32 zl brutto z VAT</td>
        </tr>
      </table>
    <p> Usluga dziala w sieciach operatorów: Plus GSM, Era, Orange, Play. Wlasciciel serwisu: haxigi@gmail.com. Serwis SMS obsluguje Dotpay.pl.   <a href="http://www.dotpay.pl/regulaminsms">Regulamin</a>.</p></td>
  </tr>
</table>
    <br />

<br />
                                        </div>
                                        <br><br>
                                    </td>
                                </tr>

                                <tr>
                                    <td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395px" height="40">
                                        <div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Krok 3</div>

                                    </td>
                                </tr>

                                <tr>
                                    <td>
                                        <br>
                                        <div style="margin-left:10px; font-family:Verdana; font-size:12px;width:370px">

[color="#FF0000"]<FORM ACTION="sprawdz.php" METHOD=POST>
Wpisz tutaj kod, jezeli kupiles 10 kredytów: <INPUT TYPE=TEXT NAME="check" SIZE=10 MAXLENGTH=8>
<CENTER><INPUT TYPE=SUBMIT VALUE="KUP"></CENTER>
</FORM><BR /><FORM ACTION="sprawdz2.php" METHOD=POST>
Wpisz tutaj kod, jezeli kupiles 20 kredytów: <INPUT TYPE=TEXT NAME="check" SIZE=10 MAXLENGTH=8>
<CENTER><INPUT TYPE=SUBMIT VALUE="KUP"></CENTER>
</FORM><BR /><FORM ACTION="sprawdz3.php" METHOD=POST>
Wpisz tutaj kod, jezeli kupiles 50 kredytów: <INPUT TYPE=TEXT NAME="check" SIZE=10 MAXLENGTH=8>
<CENTER><INPUT TYPE=SUBMIT VALUE="KUP"></CENTER>
</FORM>[/color]
                                            <!--<center><img src="ajax/loading.gif" align="middle"></center>-->
                                        </div>
                                        <br><br>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                </form>

Kod ten działa tak jak powinien, czyli jest wywoływany zewnętrzny formularz (czyli <form method="GET">, a nie któryś z wewnętrznych. Formularzy w HTML się nie zagnieżdża!

Link to comment
Share on other sites

Kod ten działa tak jak powinien, czyli jest wywoływany zewnętrzny formularz (czyli <form method="GET">, a nie któryś z wewnętrznych. Formularzy w HTML się nie zagnieżdża!

Czyli co powoduje błąd, skoro ten kod jest poprawny ?

Link to comment
Share on other sites

Nie napisałem, że jest poprawny, tylko, że działa zgodnie z tym, jak został napisany. Usuń ten zewnętrzny formularz i wtedy dopiero będzie poprawny.

Dziękuję. teraz działa poprawnie, ale nie wiem dlaczego pokazuje, że kod niepoprawny.

Mam ustawione w sprawdz.php wszystko poprawnie, w dotpay.pl też (ip i adres). Nie wiem czym to może byś spowodowane, ale teraz będę męczył obsługę techniczną jak sam nic nie wymyślę :)

Link to comment
Share on other sites



  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...