Register for your free account! | Forgot your password?

You last visited: Today at 12:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Donate Script

Discussion on [Release] Donate Script within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
[Release] Donate Script

Hi,
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

    ?>
und!
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
Jopsi332 is offline  
Thanks
18 Users
Old 10/18/2011, 15:24   #2
 
-Feuer-'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 501
Received Thanks: 164
find ich toll das so etwas mal kommt danke Jopsi332
-Feuer- is offline  
Thanks
1 User
Old 10/18/2011, 15:30   #3
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
Das mit der echzeit überprüfen ist ja leider in ner API die gebühren kostet <.< sonst hätte ich es mit reingepackt
Jopsi332 is offline  
Thanks
1 User
Old 10/18/2011, 15:42   #4
 
elite*gold: 1
Join Date: May 2010
Posts: 676
Received Thanks: 223
Kenn ich zwar aber danke nochmal
Das ganze geht auch mit Mysql
Razzer' is offline  
Thanks
1 User
Old 10/18/2011, 15:43   #5
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
das mysql is von damned flyff
ich habs für mssql und selber gemacht
hab nur die input screens von damned geklaut sonst nix ;D
Jopsi332 is offline  
Thanks
1 User
Old 10/18/2011, 16:08   #6
 
xFruchti.'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 1,344
Received Thanks: 543
Nicht schlecht würde es aber noch ein wenig bearbeiten dass Graue da wegmachen oder so ^^
Achja dass mit dem 1nem Psc Code Slot ist das nur bei einer Spende von 10€ oder gibts da nur 1 und nicht mehr ?
Da es viele user gibt die 3-5 10€ Psc´s Spenden ^^
xFruchti. is offline  
Thanks
1 User
Old 10/18/2011, 16:46   #7
 
elite*gold: 455
Join Date: Jun 2009
Posts: 1,601
Received Thanks: 1,103
Quote:
Originally Posted by dergunga View Post
Kenn ich zwar aber danke nochmal
Das ganze geht auch mit Mysql
.. und warum genau 'ne zweite Datenbank verwenden wenn auch alles
in einer geht?

Nunja, da ich mal denke dass es zum größten Teil C&P von Stefan's HP
ist würde ich Credits angeben - aber sowas macht ja Shadow Revenge nicht.
Schreiben ja sogar Copy Right Shadow Revenge unten rein.

Homepage nehmen, okay. Aber ein wenig Respekt sollte man da schon haben.
Flash! is offline  
Thanks
4 Users
Old 10/18/2011, 17:08   #8
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
Wieso c+p?
ich hab nur die hintergrund farben von der damend hp genommen mehr nicht?
Und da steht NIWO copy right shadow revenge oder son mist

E: also für die eingabe fenster
sonst ist da nix c+p
Jopsi332 is offline  
Thanks
1 User
Old 10/18/2011, 17:15   #9

 
elite*gold: 0
Join Date: Oct 2009
Posts: 1,131
Received Thanks: 264
Ist kein c+p,hab mit ihm geschrieben als er es geschrieben hat
Synxx© is offline  
Thanks
1 User
Old 10/18/2011, 18:29   #10



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
#Indexed
Sedrika is offline  
Thanks
1 User
Old 10/18/2011, 20:38   #11
 
elite*gold: LOCKED
The Black Market: 116/0/3
Join Date: May 2011
Posts: 3,618
Received Thanks: 2,007
PHP Code:
        $select mssql_select_db("Donate_DBF",$conn); 
Wo finde ich denn die DB? =)
Kurosaki' is offline  
Old 10/18/2011, 20:54   #12
 
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
die musstu selber machen hatte keine lust extra ne sql datei zumachen die das erleichter
einfach
rechtsklick neue datenbank erstellen und so?
Jopsi332 is offline  
Old 10/18/2011, 21:00   #13
 
elite*gold: 0
Join Date: Jun 2011
Posts: 153
Received Thanks: 31
Hi,

Wie und wo muss ich das eingeben? da macht ihr die zeilen :
Account, Email, Pin1, Pin2, Pin3, Pin4, Password

mfg. Pumba[GM]
Pumba[GM] is offline  
Old 10/18/2011, 21:02   #14
 
elite*gold: LOCKED
The Black Market: 116/0/3
Join Date: May 2011
Posts: 3,618
Received Thanks: 2,007
Dann füg mal diesen Downloade Link in deinem Thread, für die, die es nicht wissen, wie es geht.

Kurosaki' is offline  
Thanks
2 Users
Old 10/19/2011, 16:16   #15
 
elite*gold: 0
Join Date: Mar 2011
Posts: 715
Received Thanks: 598
Würde ich nicht benutzen da man dort SQL Code injecten kann.
yannickminecraft is offline  
Thanks
4 Users
Reply


Similar Threads Similar Threads
[Release] Texteditoren Script für hen!'s Script
05/21/2011 - Metin2 PServer Designs, Websites & Scripts - 21 Replies
Aloha Epvp! Aktuellste Version: V1.1 Ich hatte ma etwas langeweile und dachte mir ich mache mal eine neue Funktion für das Admin Panel von hen! seinen Script.
Please I Need A Donate Bot
03/05/2011 - Conquer Online 2 - 9 Replies
Yeah so i really need a auto donate bot if anyone knows of one please send it to me thanks =)
PLease donate :)
11/01/2009 - Dekaron Trading - 0 Replies
hei all my name is maria i didnt play 2moons for 1 years..and the last time i quit the game is because i being hacked hahaha.. so now i have very noob item..is very pain being hit by mobs and dont have good guild to level...anyone want to invite me? and donate some normal or dils for me :D i will really apreciate :) my msn is [email protected] do add me ;)
[Release][GC PH] Script and Char script
10/22/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 27 Replies
Here's the Script and Char_script with yellow lines hope it helped paki crch2 na lang po kasi na delete ko ung crch2 ko if any problems paki post na lang agad Credits to :handsdown::handsdown:Brian~ and Craymel:handsdown::handsdown: Btw... pang range po yan pede rin ung jump attack(Down) ng Dk,ragna bolt,block attack ng Ak,jump attack ng lass ung iba ko pang d nsabi paki banggit na rin
Donate
04/02/2008 - Dekaron - 3 Replies
Hi, i was using this for some time now, i get some usefull information and i like to contribut with a donation, in the front i have setup subscrition, i have to click there too? Do i have aditional information if i click there or only the regular information in the forum? Tanks Ps. Even if i do not have aditional information i will donate cause of the info i get in the past



All times are GMT +1. The time now is 12:01.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.