Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Modyfikacja pliku
lkow77
post
Post #1





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 15.01.2009

Ostrzeżenie: (10%)
X----


Gdzieś robie błąd ale nie wiem gdzie, chodzi o taką reakcje skryptu by modyfikowal saldo Klienta po transakcji.


  1. <?php
  2.  
  3. define ('IN_SITE', 1);
  4.  
  5. include_once ('includes/global.php');
  6. include_once ('includes/class_fees.php');
  7.  
  8. (string) $active_pg = 'DOTPAY';
  9. (string) $error_output = null;
  10.  
  11. $pg_enabled = $db->get_sql_field("SELECT checked FROM " . DB_PREFIX . "payment_gateways WHERE name='" . $active_pg . "' LIMIT 0,1", "checked");
  12.  
  13. if (!$pg_enabled) {
  14.  die('Dotpay jest nieaktywne');
  15. }
  16.  
  17. $dotpay_md5 = explode('amount', $_GET['md5']);
  18. list($custom, $fee_table) = explode('TBL', $dotpay_md5[1]);
  19. $payment_gross = $_GET['amount'];
  20. $id = ($_GET["id"]);
  21. $status = ($_GET["status"]);
  22. $t_id = ($_GET["t_id"]);
  23. $control = ($_GET['control']);
  24. $email = ($_GET['email']);
  25. $t_status = ($_GET['t_status']);
  26. $md5 = ($_GET['md5']);
  27.        
  28. if(!isset($_GET['error']))
  29. {
  30.  $process_fee = new fees();
  31.  $process_fee->setts = &$setts;
  32.  
  33.  $process_fee->callback_process($custom, $fee_table, $active_pg, $payment_gross, $_GET['control'], $_GET['md5'], $payment_currency);
  34.  
  35.  $redirect_url = SITE_PATH . 'payment_completed.php';
  36. } else {
  37.  $redirect_url = SITE_PATH . 'payment_failed.php';
  38. }
  39. header_redirect($redirect_url);
  40. ?>


Ten post edytował erix 18.01.2009, 15:58:20
Powód edycji: bbcode
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 06:49