Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 17:09

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

Advertisement



[help needed] registration

Discussion on [help needed] registration within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
[help needed] registration


it never did this before im using a reg php script from dkunderground
my registration page from my site wont work
any ideas im not very brite with php
i just design site havent go to php coding yet
[DEV]AlphaOMEGA is offline  
Old 04/24/2010, 05:20   #2
 
daddycool.'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 296
Received Thanks: 166
Nice design, anyway check the line 65 of your register.php or post the script here.
daddycool. is offline  
Old 04/24/2010, 05:24   #3
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
PHP Code:
<?php

// fill in your mssql info here
$mssql = array(
        
'host' => "i placed ip here",
        
'user' => "sa",
        
'pass' => "i placed pass here"
    
);

echo 
"<center>";

if(
$_POST['activ'] == '1') {
    
        
$con mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);

        
$result1 mssql_query("SELECT * FROM account.dbo.USER_PROFILE WHERE user_id = '".$_POST['accname']."'",$con);
        
$result2 mssql_query("SELECT * FROM account.dbo.Tbl_user WHERE user_id = '".$_POST['accname']."'",$con);
        
$result3 mssql_query("SELECT * FROM account.dbo.Tbl_user WHERE user_mail = '".$_POST['accmail']."'",$con);

        
$row1 mssql_num_rows($result1);
        
$row2 mssql_num_rows($result2);
        
$row3 mssql_num_rows($result3);
        
        
$dk_time=strftime("%y%m%d%H%M%S");
         list(
$usec1$sec1) = explode(" ",microtime());
         
$dk_user_no=$dk_time.substr($usec1,2,2);


        if(empty(
$_POST['accname']) || empty($_POST['accpass1']) || empty($_POST['accpass2'])|| empty($_POST['accname']) || empty($_POST['accmail'])) {
            echo 
"<br>You didnt fill in all fields<a href='javascript:history.back()'>Go Back</a>";
        } elseif(
$row1 '0' || $row2 '0') {
            echo 
"<br>This Account name already exists.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(
$row3 '0') {
            echo 
"<br>This E-Mail is already in use.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(
$_POST['accpass1'] != $_POST['accpass2']) {
            echo 
"<br>The passwords did not match<a href='javascript:history.back()'>Go Back</a>";
        } elseif(
$_POST['accpass1'] == $_POST['accname']) {
            echo 
"<br>Account name and password are the same.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(!
preg_match("/^[0-9a-zA-Z]{3,15}$/i"$_POST['accname'])) {
            echo 
"<br>Enter a account name only with 0-9 , a-z and A-Z.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(!
preg_match("/^[0-9a-zA-Z]{3,15}$/i"$_POST['accpass1'])) {
            echo 
"<br>Enter a password only with 0-9 , a-z and A-Z.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(!
preg_match("/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/i",$_POST['accmail'])) {
            echo 
"<br>Your e-Mail is not correct.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(
strlen($_POST['accname']) < || strlen($_POST['accname']) > 15) {
            echo 
"<br>The Accountname must at least 3 indications long and may maximally 15 indications long.<a href='javascript:history.back()'>Go Back</a>";
        } elseif(
strlen($_POST['accpass1']) < || strlen($_POST['accpass1']) > 15) {
            echo 
"<br>The Password must at least 3 indications long and may maximally 15 indications long.<a href='javascript:history.back()'>Go Back</a>";
        } else {

            
$accpass md5($_POST['accpass1']);

            
mssql_query("INSERT INTO account.dbo.USER_PROFILE (user_no,user_id,user_pwd,resident_no,user_type,login_flag,login_tag,ipt_time,login_time,logout_time,user_ip_addr,server_id) VALUES ('$dk_user_no','".$_POST['accname']."','".$accpass."','801011000000','1','0','Y','".$date."',null,null,null,'000')",$con);
            
mssql_query("INSERT INTO account.dbo.Tbl_user (user_no,user_id,user_pwd,user_mail,user_answer,user_question) VALUES ('$dk_user_no','".$_POST['accname']."','".$_POST['accpass1']."','".$_POST['accmail']."','0','0')",$con);

            echo 
"<center><b><u>The account was successfully created. Have fun !</b></u></center><br><br>";
            echo 
"<center>Here is your login info again:</center>";
            echo 
"<center>Your account name is: <b>".$_POST['accname']."</b></center>";
            echo 
"<center>Your password is: <b>".$_POST['accpass1']."</b></center>";
            echo 
"DO NOT LOOSE THIS INFO, YOU MAY WRITE IS DOWN AND HIDE IT";
        }

} else {

    
$con mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);
    
$result1 mssql_query("SELECT * FROM account.dbo.USER_PROFILE",$con);
    
$row1 mssql_num_rows($result1);
    
    echo 
"<center><b><u>This time we have ".$row1." Registed Accounts on our Server<br>Join us.</b></u></center><br>";
    echo 
"<form action='".$_SEVER['PHP_SELF']."' method='POST'>";
    echo 
"<center><table>";
    echo 
"<tr><td colspan='2' align='center'><b><u>Your Account Info</u></b></td></tr>";
    echo 
"<tr><td>Account Name</td><td><input type='text' name='accname' maxlength='12'></td></tr>";
    echo 
"<tr><td>Password</td><td><input type='password' name='accpass1' maxlength='12'></td></tr>";
    echo 
"<tr><td>Again pass.</td><td><input type='password' name='accpass2' maxlength='12'></td></tr>";
    echo 
"<tr><td>&nbsp;</td><td>&nbsp;</td></tr>";
    echo 
"<tr><td colspan='2' align='center'><b><u>Other account info</u></b></td></tr>";
    echo 
"<tr><td>Email</td><td><input type='text' name='accmail' maxlength='50'></td></tr>";
    echo 
"<tr><td>&nbsp;</td><td>&nbsp;</td></tr>";
    echo 
"<tr><td colspan='2' align='center'>
        <input type='hidden' name='activ' value='1'>
        <input type='submit' value='Create Account'></td></tr>"
;
    echo 
"</table></center>";
    echo 
"</form>";

}

echo 
"</center>";

?>
that is the code
[DEV]AlphaOMEGA is offline  
Old 04/24/2010, 05:36   #4
 
daddycool.'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 296
Received Thanks: 166
Only register.php is giving this error?
daddycool. is offline  
Old 04/24/2010, 05:43   #5
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
that is the whole register page script
its just a simple one that says how may ppl have joined
and what there info they entered at the ending page
[DEV]AlphaOMEGA is offline  
Old 04/24/2010, 06:36   #6
 
daddycool.'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 296
Received Thanks: 166
Ok, open the file php.ini search for:

Code:
;extension=php_mssql.dll
and change it to:

Code:
extension=php_mssql.dll
removing ";" ... save the file, restart your webserver and try again.
daddycool. is offline  
Old 04/24/2010, 06:57   #7
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
wow i get the same for every script i add lol

Fatal error: Call to undefined function mssql_connect()
i think its just my webserver now
[DEV]AlphaOMEGA is offline  
Old 04/24/2010, 08:06   #8
 
Nosferatu.'s Avatar
 
elite*gold: 22
Join Date: Jan 2008
Posts: 743
Received Thanks: 450
Call to undefined function , webserver is missing Module / Plugin

For debian
Quote:
apt-get install php5-sybase
after installing
Quote:
/etc/init.d/apache2 restart
Under windows look for php.ini and search for extensions and activate it by removing ";"
Nosferatu. is offline  
Old 04/24/2010, 16:20   #9
 
naruto820's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 964
Received Thanks: 233
well what webserver are you using?
naruto820 is offline  
Old 04/24/2010, 22:33   #10
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
wow now im supper frustrated with xxamp
i did this before with no problems
[DEV]AlphaOMEGA is offline  
Old 04/24/2010, 22:34   #11
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
wow now im supper frustrated with xxamp
i did this before with no problems
[DEV]AlphaOMEGA is offline  
Old 04/25/2010, 02:39   #12
 
Decima's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,297
Received Thanks: 928
// fill in your mssql info here
$mssql = array(
'host' => "127.0.0.1",
'user' => "sa",
'pass' => "i placed pass here"
);


instead of ur IP, put 127.0.0.1
Decima is offline  
Old 04/25/2010, 02:50   #13
 
daddycool.'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 296
Received Thanks: 166
You did what I posted earlier?

Enable the extension for MSSQL server... removing the ";" before extension=php_mssql.dll and try to turn on the output_buffering all in php.ini. Remember to save the file and restart your webserver.
daddycool. is offline  
Thanks
1 User
Old 04/25/2010, 07:32   #14
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
EDITED#

Thanks i got it now
+1 thanks for you Darth nerd
i spend forever looking for that code and getting booted off the dedi lol
cus they were updating

#REQUEST CLOSE
[DEV]AlphaOMEGA is offline  
Reply

« WinHex | :) »

Similar Threads Similar Threads
Registration
08/04/2010 - C9 - Continent of the Ninth - 7 Replies
Hi Guys where can i make a C9 registration? thx :)
Hy i need registration help.
03/12/2009 - Metin2 Private Server - 0 Replies
can anyone help me register to this chinese metin server? http://121.205.89.154:1997/regist.asp
asian client registration help needed
12/21/2007 - Archlord - 12 Replies
ok i havent got it yet nore will i :mad: i am able to copy images that contain text however the god dam reg page prevents me from being able to do it.So i can not just copy and paste to google trans and reg that way.I have been trying to get onto japaneese instead of korean.As everytime i open the korean one i get to a page that i cant get past= http://archlord.hangame.com/ {not for not trying}.So 5houres i ask u as u seem to know more about this then me.Do u know any way to maybe save the...



All times are GMT +1. The time now is 17:10.


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.