sid-betaling
--index.php--
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
session_start(); // Zet sessions aan
include "bestanden.php"; // Haalt de arrays op
// Vanaf hier mag je bewerken
print "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>";
print "<html>";
print "<head>";
print "<title>SID Betaling - Baed Net</title>";
print "<meta http-equiv=Content-Type content='text/html; charset=windows-1252'>";
print "</head>";
print "<body>";
// en vanaf hier niet meer :P
if(isset($_GET['sid'])) {
if(isset($bestandu[$_GET['sid']]) && isset($bestando[$_GET['sid']])) {
$smsuser = "baed"; // Vul hier je username in
$land = "nl"; // Land waaruit de betaling gedaan moet worden kan nl of be
$url = "http://gateway.multisms.nl/getpin.php" .
"?username=" . $smsuser .
"&land=" . $land; // Vraagt Pincode aan
$pincode = @implode('', file($url)); // Haalt Pincode op
$_SESSION['pin'] = $pincode; // Zet de pincode in een Session
$_SESSION['bestand'] = $_GET['sid']; // Zet de SID in een session
print "<h2>". $bestando[$_GET['sid']] ." betaling!</h2><br><br>"; // Verteld de naam van de link waar je naartoe gaat na de betaling
print "Bel naar 0909-PINCODE (0909-7462633) Alleen NL!<br>En toets deze code in: ". $pincode; // Verteld de pincode
print "<br><a href='check.php'>Klik hier na betaling!</a>"; // Link voor na de betaling
} else {
print "<fieldset><legend>Fout:</legend>Onbekende SID!</fieldset><br><fieldset><legend>Oplossing:</legend>";
print "<form method='get' action='index.php'>SID: <input type='text' name='sid'> <input type='submit' value='Klik hier!'></form>";
print "</fieldset>";
}
} else {
print "<fieldset><legend>Fout:</legend>Er is geen SID opgegeven!</fieldset><br><fieldset><legend>Oplossing:</legend>";
print "<form method='get' action='index.php'>SID: <input type='text' name='sid'> <input type='submit' value='Klik hier!'></form>";
print "</fieldset>";
}
print "</body>";
print "</html>";
?>
session_start(); // Zet sessions aan
include "bestanden.php"; // Haalt de arrays op
// Vanaf hier mag je bewerken
print "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>";
print "<html>";
print "<head>";
print "<title>SID Betaling - Baed Net</title>";
print "<meta http-equiv=Content-Type content='text/html; charset=windows-1252'>";
print "</head>";
print "<body>";
// en vanaf hier niet meer :P
if(isset($_GET['sid'])) {
if(isset($bestandu[$_GET['sid']]) && isset($bestando[$_GET['sid']])) {
$smsuser = "baed"; // Vul hier je username in
$land = "nl"; // Land waaruit de betaling gedaan moet worden kan nl of be
$url = "http://gateway.multisms.nl/getpin.php" .
"?username=" . $smsuser .
"&land=" . $land; // Vraagt Pincode aan
$pincode = @implode('', file($url)); // Haalt Pincode op
$_SESSION['pin'] = $pincode; // Zet de pincode in een Session
$_SESSION['bestand'] = $_GET['sid']; // Zet de SID in een session
print "<h2>". $bestando[$_GET['sid']] ." betaling!</h2><br><br>"; // Verteld de naam van de link waar je naartoe gaat na de betaling
print "Bel naar 0909-PINCODE (0909-7462633) Alleen NL!<br>En toets deze code in: ". $pincode; // Verteld de pincode
print "<br><a href='check.php'>Klik hier na betaling!</a>"; // Link voor na de betaling
} else {
print "<fieldset><legend>Fout:</legend>Onbekende SID!</fieldset><br><fieldset><legend>Oplossing:</legend>";
print "<form method='get' action='index.php'>SID: <input type='text' name='sid'> <input type='submit' value='Klik hier!'></form>";
print "</fieldset>";
}
} else {
print "<fieldset><legend>Fout:</legend>Er is geen SID opgegeven!</fieldset><br><fieldset><legend>Oplossing:</legend>";
print "<form method='get' action='index.php'>SID: <input type='text' name='sid'> <input type='submit' value='Klik hier!'></form>";
print "</fieldset>";
}
print "</body>";
print "</html>";
?>
--bestanden.php--
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// Bestands omschrijvingen:
$bestando[1] = "Google redirect";
$bestando[2] = "Live Search redirect";
/* Je kan hier medere omschrijvingen toevoegen. Maar gewoon nog een set aan.
Voorbeeld:
$bestando[3] = "Omschrijving";
*/
// Bestands URL's:
$bestandu[1] = "http://google.nl";
$bestandu[2] = "http://live.com";
/* Je kan hier medere url's toevoegen. Maar gewoon nog een set aan.
Voorbeeld:
$bestandu[3] = "http://example.com";
*/
?>
// Bestands omschrijvingen:
$bestando[1] = "Google redirect";
$bestando[2] = "Live Search redirect";
/* Je kan hier medere omschrijvingen toevoegen. Maar gewoon nog een set aan.
Voorbeeld:
$bestando[3] = "Omschrijving";
*/
// Bestands URL's:
$bestandu[1] = "http://google.nl";
$bestandu[2] = "http://live.com";
/* Je kan hier medere url's toevoegen. Maar gewoon nog een set aan.
Voorbeeld:
$bestandu[3] = "http://example.com";
*/
?>
--check.php--
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
session_start();
include "bestanden.php"; // Haalt weer de arrays op
print "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>";
print "<html>";
print "<head>";
print "<title>SID Betaling - Baed Net</title>";
print "<meta http-equiv=Content-Type content='text/html; charset=windows-1252'>";
print "</head>";
print "<body>";
$smsuser = "baed"; // Verander hier nog eens je username
$land = "nl"; // en eventueel weer het bel land
if(isset($_SESSION['pin']) AND isset($_SESSION['bestand'])) {
$pincode = $_SESSION['pin']; // haalt de pincode terug uit de sessies
$url = "http://gateway.multisms.nl/checkpin.php" .
"?username=" . $smsuser .
"&land=" . $land .
"&pincode=" . $pincode; // Checkt de pincode
$returncode = @implode('', file($url)); // Verteld aan ons de returncode
if($returncode == 1) {
header("Location: ". $bestand[$_SESSION['bestand']]); // Je hebt betaald! Je word doorgestuurd
} elseif($returncode == 2) {
print "De code is nog NIET geactiveerd!"; // Hier het bericht met de mededeling dat de pincode nog niet is geactiveerd
} elseif($returncode == 3) {
print "Pincode bestaat niet!"; // Spreekt vanzelf
} elseif($returncode == 4) {
print "Gebruikers naam onbekend!"; // Dit ook
} else {
print "Onbekende fout!"; // en deze is voor als er een fout voorkomt in het php script
}
} else {
print "Geen sessies gevonden!"; // Mededeling voor als er geen sessie is gevonden.
}
print "</body>";
print "</html>";
?>
session_start();
include "bestanden.php"; // Haalt weer de arrays op
print "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>";
print "<html>";
print "<head>";
print "<title>SID Betaling - Baed Net</title>";
print "<meta http-equiv=Content-Type content='text/html; charset=windows-1252'>";
print "</head>";
print "<body>";
$smsuser = "baed"; // Verander hier nog eens je username
$land = "nl"; // en eventueel weer het bel land
if(isset($_SESSION['pin']) AND isset($_SESSION['bestand'])) {
$pincode = $_SESSION['pin']; // haalt de pincode terug uit de sessies
$url = "http://gateway.multisms.nl/checkpin.php" .
"?username=" . $smsuser .
"&land=" . $land .
"&pincode=" . $pincode; // Checkt de pincode
$returncode = @implode('', file($url)); // Verteld aan ons de returncode
if($returncode == 1) {
header("Location: ". $bestand[$_SESSION['bestand']]); // Je hebt betaald! Je word doorgestuurd
} elseif($returncode == 2) {
print "De code is nog NIET geactiveerd!"; // Hier het bericht met de mededeling dat de pincode nog niet is geactiveerd
} elseif($returncode == 3) {
print "Pincode bestaat niet!"; // Spreekt vanzelf
} elseif($returncode == 4) {
print "Gebruikers naam onbekend!"; // Dit ook
} else {
print "Onbekende fout!"; // en deze is voor als er een fout voorkomt in het php script
}
} else {
print "Geen sessies gevonden!"; // Mededeling voor als er geen sessie is gevonden.
}
print "</body>";
print "</html>";
?>
Commetaar/reacties is altijd welkom!