Pereiti prie turinio

net999

Patvirtinti nariai
  • Pranešimai

    97
  • Užsiregistravo

  • Lankėsi

  • Atsiliepimai

    100%

Reputacijos išklotinė

  1. Pagarba
    net999 sureagavo į Mr Kent Ar galite man padėti nusipirkti kursą iš ru platformos?   
    Gal žmogus iš geranoriškumo tiesiog padeda forumiečiams 😉
    Host321 ir man yra padėjęs, viskas su juo ok
  2. Patinka
    net999 gavo reakciją nuo SilvQ mokejimai.lt padekite integruoti i sistema   
    Sveiki turiu sistema ten yra intergruotas webmoney ir paypal mokejimas. Dabar reikalingas mokejimai.lt geriausiai kad naujausias 1.6 butu. gal kas laisvo laiko turite galetumete padeti, kaip veikia paypal mano sistemoje yra du failai ppresult.php ir enter.php
    enter.php:
     

    <?php print $body; if($login) { if($_GET['action'] == "send") { $money = sprintf("%01.2f", $_POST[money]); if($money < 0 OR $money > 1000) { print "<p class=\"er\">".$lng['enter_cor_sum']."</p>"; } elseif($_GET['ps'] == 1) { $sql = 'INSERT INTO enter (sum, date, login) VALUES ("'.$money.'", "'.time().'", "'.$login.'")'; if(mysql_query($sql)) { print ' <form method="POST" action="https://merchant.webmoney.ru/lmi/payment.asp"> <input type="hidden" name="LMI_PAYMENT_AMOUNT" value="'.$money.'"> <input type="hidden" name="LMI_PAYMENT_DESC" value="'.$lng['enter_balance'].': '.$cfgURL.'"> <input type="hidden" name="LMI_PAYMENT_NO" value="'.mysql_insert_id().'"> <input type="hidden" name="LMI_PAYEE_PURSE" value="'.$cfgWMZ.'"> <input type="hidden" name="LMI_SIM_MODE" value="'.$sim_mode.'"> <center> '.$lng['you_enter'].' <strong>'.$money.'</strong> WM'.$cfgPurse.' '.$lng['in_purse'].' <strong>'.$cfgWMZ.'</strong><br /> '.$lng['account'].' <strong>'.$login.'</strong><br /> <input class="subm" type="submit" value=" '.$lng['enter_yes'].' " /> </center> </form>'; } else { print "<p class=\"er\">".$lng['er_pay']."!</p>"; } } elseif($_GET['ps'] == 2) { $sql = 'INSERT INTO enter (sum, date, login) VALUES ("'.$money.'", "'.time().'", "'.$login.'")'; if(mysql_query($sql)) { print '<form method="post" action= "https://www.paypal.com/cgi-bin/webscr"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="'.$adminmail.'"> <input type="hidden" name="item_name" value="Balanso papildymas servise '.$cfgURL.'"> <input type="hidden" name="item_number" value="'.mysql_insert_id().'"> <input type="hidden" name="amount" value="'.$money.'"> <input type="hidden" name="return" value="http://'.$cfgURL.'/advert/"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="cancel_return" value="http://'.$cfgURL.'/enter/"> <input type="hidden" name="notify_url" value="http://'.$cfgURL.'/ppresult.php"> <input type="hidden" name="no_shipping" value="1"> <center> '.$lng['you_enter'].' <strong>'.$money.'</strong> USD<br /> '.$lng['account'].' <strong>'.$login.'</strong><br /> <input class="subm" type="submit" value=" '.$lng['enter_yes'].' " /> </center> </form>'; } else { print "<p class=\"er\">".$lng['er_pay']."!</p>"; } } } else { print '<table align="center"> <form method="POST" action="?action=send&ps=1"> <tr> <td><img src="/images/webmoney.png" width="88" height="31" border="0" /></td> <td>'.$lng['sum'].':</td> <td style="padding-top: 3px;"><input type="text" name="money" value="100.00" size="10" maxlength="8" /></td> <td>WMZ</td> <td><input class="subm" type="submit" value=" '.$lng['pay'].' " /></td> </tr> </form> </table><hr />'; print '<table align="center"> <form method="POST" action="?action=send&ps=2"> <tr> <td><img src="/images/paypal.gif" width="88" height="31" border="0" /></td> <td>'.$lng['sum'].':</td> <td style="padding-top: 3px;"><input type="text" name="money" value="100.00" size="10" maxlength="8" /></td> <td>USD</td> <td><input class="subm" type="submit" value=" '.$lng['pay'].' " /></td> </tr> </form> </table>'; } } else { include "includes/auth.php"; } ?>
     
    ir ppresult.php toks:
     

    <?php include "cfg.php"; $paypalemail = $ppmail; // e-mail pardavejo $adminemail = $adminmail; // e-mail administratoriaus $currency = "USD"; // valiuta $postdata=""; foreach ($_POST as $key=>$value) $postdata.=$key."=".urlencode($value)."&"; $postdata .= "cmd=_notify-validate"; $curl = curl_init("https://www.paypal.com/cgi-bin/webscr"); curl_setopt ($curl, CURLOPT_HEADER, 0); curl_setopt ($curl, CURLOPT_POST, 1); curl_setopt ($curl, CURLOPT_POSTFIELDS, $postdata); curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 1); $response = curl_exec ($curl); curl_close ($curl); if ($response != "VERIFIED") die("You should not do that ..."); if ($_POST['receiver_email'] != $paypalemail || $_POST["txn_type"] != "web_accept") { die("You should not be here ..."); } $query = "SELECT * FROM enter WHERE id = ".intval($_POST['item_number'])." AND status != 2 LIMIT 1"; $result = mysql_query($query); $rows = mysql_num_rows($result); $row = mysql_fetch_array($result); if($rows && $row['sum'] == $_POST['mc_gross']) { $date = date("d.m.Y"); mysql_query('UPDATE users SET balance = balance + '.$row[sum].' WHERE login = "'.$row[login].'" LIMIT 1'); mysql_query("UPDATE enter SET status = 2, wmz = '".htmlspecialchars($_POST['payer_email'])."' WHERE id = ".intval($_POST['item_number'])." LIMIT 1"); mysql_query("UPDATE logs SET enter=enter+".$row[sum]." WHERE date='".$date."' LIMIT 1"); } else { print "ERROR"; } ?>
     
    Taigi va toks kodas nedidelis taigi enter.php tai ten lankytojas pasirinka per kokia sistema nori pildyti ir iraso suma spaudzia patvirtinti, jam ismeta toki teksta ir raso Jūs papildote savo balansą 100.00 USD
    Vartotojas Dainius ir kai jau dar karta spaudi mokejima patvirtinu permeta jau i svetaine paypal, ir jau toje svetaine zino kiek jis ivede suma tokia pati, bent jau pradziai tai realizuoti, poto jau atsakyma po apomokejimo. Visiems aciu
  3. Patinka
    net999 gavo reakciją nuo nerijuszs Reikia pagalbos del cron   
    crontab -e konsoleje, ir webmin nebereikia, ka butent sutvarkyti reikia jums, prasyciau daugiau info. galbut galesiu jums padeti.
  4. Patinka
    net999 gavo reakciją nuo Dywaz Ooops... Sorry you got be hacked   
    koks tos dainos pavadinimas?
  5. Patinka
    net999 gavo reakciją nuo KasperaviciusR Duomenu centras Aukstos kokybes serveriai   
    Asmeniškai man neteko naudoti nieko siaubingiausio, iki siol esu ju klientas bet netgi serverio ju nebesinaudoju. iš 10 dočiau tik 5б Na kalbant apie tech pagalba tai visai nusiviliau, nesugeba paaiskinti nieko , meta pokalbi ir tiek.
×
×
  • Pasirinkite naujai kuriamo turinio tipą...