da mir aufgefallen ist das es noch garnicht so ein donate script gibt. Dachte ich mir ich release mal meins.
PHP Code :
PHP Code:
<?php
$server = "DEINSERVER\SQLEXPRESS";
$user = "";
$pass= "";
$username = $_POST['account'];
$password = $_POST['pw'];
$pin1 = $_POST['pin1'];
$pin2 = $_POST['pin2'];
$pin3 = $_POST['pin3'];
$pin4 = $_POST['pin4'];
$email = $_POST['email'];
if(isset($_POST['psc_sbm']))
{
if (preg_match('/[^a-zA-Z0-9]/',$_POST['account']))
{
die (' <font color="red">Dein Benutzername enthält unerlaubte Zeichen</font> ');
}
else if (empty($_POST['account']))
{
die (' <font color="red">Bitte gebe einen Benutzer namen ein</font> ');
}
else if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin1']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
else if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin2']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
else if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin3']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
else if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin4']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
else if (empty($_POST['pin1']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
else if (empty($_POST['pin2']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
else if (empty($_POST['pin3']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
else if (empty($_POST['pin4']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
else if (empty($_POST['email']))
{
die (' <font color="red">Bitte gebe eine E-Mail adresse ein</font> ');
}
else if(strlen($_POST['pin1']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
else if(strlen($_POST['pin2']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
else if(strlen($_POST['pin3']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
else if(strlen($_POST['pin4']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
$conn = mssql_connect($server,$user,$pass);
if(!$conn)
{
die("Connection failed!<br>");
}
$select = mssql_select_db("Donate_DBF",$conn);
if(!$select)
{
die("Can't select Database!<br>");
}
mssql_query("USE [Donate_DBF]
SET NOCOUNT ON
INSERT INTO Donate (Account, Email, Pin1, Pin2, Pin3, Pin4, Password)
VALUES ('$username', '$email', '$pin1', '$pin2', '$pin3', '$pin4', '$password')");
echo ' <font color="green">Deine PaysafeCard wird ueberprueft und du erhaeltst innerhalb der naechsten 24H deine dPoints und eine bestaetigungs E-Mail.</font> ';
}
?>
<div style="text-align: center;">
<img src="img/psc.png" style="margin-top: 5px; margin-bottom: 8px;" />
<form action="" method="post">
<br>Lightning Points<br/>
<select name="worth" style="background: url('img/input_txtmid.png'); width: 170px; height: 22px;">
<option value="10,00">1000 dPoints E10,00</option>
<option value="25,00">2500 dPoints E25,00</option>
<option value="50,00">5250 dPoints E50,00</option>
<option value="100,00">11000 dPoints E100,00</option>
</select><br/><br/>
<b> <?php echo 'Account Name' ?>:</b>
<input type="text" maxlength="30" name="account" style="background: url('img/input_txtmid.png'); width: 120px;" />
<br/><br/>
<?php echo 'E-Mail Adresse'?> :</b>
<input type="text" maxlength="45" name="email" style="background: url('img/input_txtmid.png'); width: 120px;" />
<br/><br/>
<b><?php echo 'PaysafeCard PIN' ?>:</b>
<input type="text" maxlength="4" name="pin1" style="background: url('img/input_txtsmall.png'); width: 28px;" />
<input type="text" maxlength="4" name="pin2" style="background: url('img/input_txtsmall.png'); width: 28px;" />
<input type="text" maxlength="4" name="pin3" style="background: url('img/input_txtsmall.png'); width: 28px;" />
<input type="text" maxlength="4" name="pin4" style="background: url('img/input_txtsmall.png'); width: 28px;" />
<br/><br/>
<b>*<?php echo 'Paysafecard Password'?> :</b>
<input type="text" name="pw" />
<br/><br/>
<input type="submit" name="psc_sbm" value="<?php echo 'Donate' ?>" />
</form>
<br/>
<span id="small">* <?php echo 'PaysafeCard Password, Falls keines auf der Paysafe Card ist, frei lassen.'?> </span>
</div>
<br style="clear: both;" />
<?php
?>
ihr macht eine neue Datenbank in MSSQL die Donate_dbf heißt
da macht ihr die zeilen :
Account, Email, Pin1, Pin2, Pin3, Pin4, Password
die tab bar hab ich jetz nicht mit eingebunden ist aber hüpsch xD
Dl Link für die Img :

Dl Link für die DB falls ihr zu faul seit eine mit Rechtsklick zu erstellen:

Habs mal hier als vorzeige screen :
Das Lightning Points kann man naütrlich ganz leicht umändern da es eine line ist und nicht ein bild
Credits an mich fürs Coden des Scripts
Credits an [K]urosaki* für das machen meiner DB in eine SQL datei
Credits für die Hintergrund images an Stefan ;D






