Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 18:21

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

Advertisement



I can not get site registration

Discussion on I can not get site registration within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
xRAZOR [BR]'s Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 23
Received Thanks: 0
Question I can not get site registration

I already had everything set up o'que to configure the config, map, password, register appears more when I try to create a bit of line type xampp / config line 26 so that has nothing on the line also already created the account in the same odbc more just does not make the record anyone know any tutorial with a simple registration page that I can try to fix?
xRAZOR [BR] is offline  
Old 03/05/2012, 03:48   #2
 
PyrexiaStudios's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 150
Received Thanks: 74
Last time im spoon feeding you.


PHP Code:
<?php
// fill in your mssql info here
$mssql = array(
                
'host' => "localhost",
                
'user' => "sa",
                
'pass' => "serverpass"
        
);
function 
anti_injection($sql) {
   
$sql preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
   
$sql trim($sql);
   
$sql strip_tags($sql);
   
$sql addslashes($sql);
   return 
$sql;
}

echo 
"<center>";
if(
$_POST['activ'] == '1') {
                
$accname anti_injection($_POST['accname']);
                
$accmail anti_injection($_POST['accmail']);
                
                
$accpass1 anti_injection($_POST['accpass1']);
                
$accpass2 anti_injection($_POST['accpass2']);
        
                
$con mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);
                
$result1 mssql_query("SELECT * FROM account.dbo.USER_PROFILE WHERE user_id = '".$accname."'",$con);
                
$result2 mssql_query("SELECT * FROM account.dbo.Tbl_user WHERE user_id = '".$accname."'",$con);
                
$result3 mssql_query("SELECT * FROM account.dbo.Tbl_user WHERE user_mail = '".$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(
$accname) || empty($accpass1) || empty($accpass2)|| empty($accname) || empty($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(
$accpass1 != $accpass2) {
                        echo 
"<br>The passwords did not match<a href='javascript:history.back()'>Go Back</a>";
                } elseif(
$accpass1 == $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"$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"$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",$accmail)) {
                        echo 
"<br>Your e-Mail is not correct.<a href='javascript:history.back()'>Go Back</a>";
                } elseif(
strlen($accname) < || strlen($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($accpass1) < || strlen($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($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','".$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','".$accname."','".$accpass1."','".$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>".$accname."</b></center>";
                        echo 
"<center>Your password is: <b>".$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>";
?>
PyrexiaStudios is offline  
Thanks
1 User
Old 03/05/2012, 04:29   #3
 
xRAZOR [BR]'s Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 23
Received Thanks: 0
sorry friend and I am new to Dekaron not want to dumb down;/ you tell me where i put that file? and thank you> <'
xRAZOR [BR] is offline  
Old 03/05/2012, 06:14   #4
 
PyrexiaStudios's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 150
Received Thanks: 74
web server/htdocs/register.php
PyrexiaStudios is offline  
Thanks
1 User
Old 03/05/2012, 16:34   #5
 
elite*gold: 0
Join Date: Aug 2011
Posts: 168
Received Thanks: 78
Copy and paste the code he gave you into a notepad file, save the file as "register.php"

go to your htdocs, make a new folder called register in htdocs, put the register.php file in the folder, and you're done.

You should be able to go to whatever IP your using and access the register page.

(Example)
Cataracts is offline  
Thanks
1 User
Old 03/05/2012, 23:21   #6
 
xRAZOR [BR]'s Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 23
Received Thanks: 0
thanks boys ><? very thanks

WHAT I asked you to put the host'' localhost'' user'' put my 'I put my password it gave more here;/

Notice: Undefined index: activ in htdocs\register\register.php on line 17

Fatal error: Call to undefined function mssql_connect() in htdocs\register\register.php on line 67
xRAZOR [BR] is offline  
Old 03/06/2012, 00:16   #7
 
elite*gold: 85
Join Date: Feb 2011
Posts: 117
Received Thanks: 12
use xampp and activate in the php.ini the php_mssql.dll save and restart apache

Xampp Version 1.7.3
Paravibez is offline  
Thanks
1 User
Old 03/06/2012, 02:25   #8
 
xRAZOR [BR]'s Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 23
Received Thanks: 0
I am using xampp 1.7.7 has some problem? WHAT have to change in php.ini? and where this tidy php_mssql.dll? have to put inside the htdoc?
xRAZOR [BR] is offline  
Old 03/06/2012, 02:31   #9
 
Decima's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,297
Received Thanks: 928
omfg, take that **** out from under ur name, its obvious u cant script urself from a wet paper bag ffs

i implore you guys to stop handing this guy anything else until he learns the very basics of wtf hes doing, seeing 100 posts by him with the most retarded questions it starting to really burn my ***.
Decima is offline  
Thanks
3 Users
Old 03/06/2012, 02:48   #10
 
xRAZOR [BR]'s Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 23
Received Thanks: 0
oops sorry did not know the friend elitepvpers was a forum just to tops einstein;/ thought forums were designed to learn! since we do not want to help me friend can do nothing and let anyone help help me!
I was angry to grieve
xRAZOR [BR] is offline  
Old 03/06/2012, 03:37   #11
 
elite*gold: 0
Join Date: Nov 2010
Posts: 143
Received Thanks: 23
Quote:
Originally Posted by Decima View Post
omfg, take that **** out from under ur name, its obvious u cant script urself from a wet paper bag ffs

i implore you guys to stop handing this guy anything else until he learns the very basics of wtf hes doing, seeing 100 posts by him with the most retarded questions it starting to really burn my ***.
It's the same as people putting [DEV] in their name, but have never made a server lol.. Never going to end, nothing we can do
Delerium is offline  
Thanks
1 User
Old 03/06/2012, 22:00   #12
 
elite*gold: 0
Join Date: Aug 2011
Posts: 168
Received Thanks: 78
Quote:
Originally Posted by Delerium View Post
It's the same as people putting [DEV] in their name, but have never made a server lol.. Never going to end, nothing we can do
Not to go off topic or anything.. but owning a server has nothing to do with being a DEV.

On-topic, as Decima says, just quit spoon-feeding this guy and let him figure out. He's obviously not smart enough to attempt to learn it on his own.

and seriously dude, we obviously know all that **** under your name is bullshit by now, you should really get rid of it.
Cataracts is offline  
Old 03/09/2012, 15:31   #13
 
alexzzzzz's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 59
Received Thanks: 22
I want no how all connect to reg.php to dekaron server. Plss Thx!!

haha jk...
alexzzzzz is offline  
Old 03/10/2012, 13:48   #14
 
Element~'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 39
Received Thanks: 17
Quote:
Originally Posted by alexzzzzz View Post
I want no how all connect to reg.php to dekaron server. Plss Thx!!

haha jk...
Code:
'host' => "localhost", 
                'user' => "sa", 
                'pass' => "serverpass"
localhost is ur ip where is hosted "sa", now u put ur pass "sa" where say "serverpass"
if have ur server on u pc, them in "localhost" u can write "127.0.0.1"
this has no more tricks.
Element~ is offline  
Old 03/11/2012, 18:25   #15
 
elite*gold: 0
Join Date: Jun 2008
Posts: 65
Received Thanks: 12
instead of complaining about how dumb he is why not educate him by just giving him a link to a guide on how to set it up
gondudy is offline  
Reply


Similar Threads Similar Threads
REGISTRATION SITE HELP
02/13/2012 - EO PServer Hosting - 3 Replies
HELLO FRIENDS. COME HERE TODAY TO ASK FOR A HELP .. HELP ME ABOUT POWER FICO GRATEFUL. LET THERE LIGO ON MY PC WHEN THE SITE REGISTRATION DOES THE NORMAL. LIGO WHEN THE SITE IN THE HOST OF A MISTAKE AT THE TIME THAT I DO NOT KNOW WHY THIS IS HAPPENING ... PLEASE SEE THE BUG. http://eonbongo.hdfree.com.br/123.JPG THIS TYPE AND HOST JA DID A TEST OF MORE THAN 10 DB bug AND ALL OF THE REGISTER
Bloody SRo Registration site???
10/29/2011 - SRO Private Server - 19 Replies
Hi guys,i want to try out bloody sro,i downloaded the client and the media pk but i don't know where can i register.I tried sro.bloody.eu but it doesn't work even on the bloody forum i went to the games section and i clicked by silkroad register and still nothing happened.If any of you can help me please write it.Thank you!
[NEED HELP] in Registration Site
10/15/2010 - Metin2 Private Server - 2 Replies
hi people >:D its my first time as Admin of metin2 Private server and i make evrey thing .. but i dont know how to make Registration site im new :(
Registration on Korean site
08/17/2008 - General Gaming Discussion - 7 Replies
Hi all. i have a problem, i'm from Russia and i cant reg on Korean site, i downloaded a new TS client, but i cant play without registration. Problem is proxy and ActiveX element. And i've a question: can anybody req me on Korean site? I'll give my information for this.:confused:



All times are GMT +1. The time now is 18:21.


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.