Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 07:43

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

Advertisement



[Release] Redux registration form (PHP)

Discussion on [Release] Redux registration form (PHP) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 01/07/2016, 23:54   #16
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Did you change the database connection information in includes/settings.php? Because it seems like you are trying to connect with my connection settings. Simply change in includes/settings.php

define("MYSQL_HOST", "localhost:3307");
define("MYSQL_USER", "root");
define("MYSQL_PASSWORD", "123456");
define("MYSQL_DBNAME", "redux");
turk55 is offline  
Old 01/08/2016, 00:31   #17
 
elite*gold: 0
Join Date: Aug 2010
Posts: 931
Received Thanks: 76
Already did that

Code:
<?php

define("MYSQL_HOST", "localhost:3307");
define("MYSQL_USER", "root");
define("MYSQL_PASSWORD", "********");
define("MYSQL_DBNAME", "redux");


//Custom error handler, so every error will throw a custom ErrorException
set_error_handler(function ($severity, $message, $file, $line) {
    throw new ErrorException($message, $severity, $severity, $file, $line);
});
denominator is offline  
Old 01/08/2016, 00:59   #18
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Quote:
Originally Posted by denominator View Post
Already did that

Code:
<?php

define("MYSQL_HOST", "localhost:3307");
define("MYSQL_USER", "root");
define("MYSQL_PASSWORD", "********");
define("MYSQL_DBNAME", "redux");


//Custom error handler, so every error will throw a custom ErrorException
set_error_handler(function ($severity, $message, $file, $line) {
    throw new ErrorException($message, $severity, $severity, $file, $line);
});
I am sure that you don't have MySQL running on port 3307, remove ":3307" and try again.
turk55 is offline  
Old 01/08/2016, 01:01   #19
 
elite*gold: 0
Join Date: Aug 2010
Posts: 931
Received Thanks: 76
Yup the 3307 was the problem lol, works now
denominator is offline  
Old 02/19/2016, 10:12   #20
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
Quote:
Originally Posted by mohammedqq1 View Post
i feel bad when i see this f*c*i*g ****!

i am sorry .
Tourettes? What is the purpose of this comment besides being spam?
Spirited is offline  
Old 02/19/2016, 15:03   #21


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Quote:
Originally Posted by Spirited View Post
Tourettes? What is the purpose of this comment besides being spam?
Trying to fit in.
KraHen is offline  
Old 03/07/2016, 11:53   #22
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
I hate to be the one to bring up something posted over a year ago, but it should be known that there are some security issues with this. The inputs should be sanitized further before entered into the database. It's well written, and it was easy to read because it follows most of PSR standard (if anyone cares) but anyone who is too lazy to build off of this deserves to be punished by XSS lol.
DePredaTe is offline  
Old 03/08/2016, 01:27   #23
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Quote:
Originally Posted by DePredaTe View Post
I hate to be the one to bring up something posted over a year ago, but it should be known that there are some security issues with this. The inputs should be sanitized further before entered into the database. It's well written, and it was easy to read because it follows most of PSR standard (if anyone cares) but anyone who is too lazy to build off of this deserves to be punished by XSS lol.
Yes you are right, the inputs should be better sanitized but the point of the release was to show how it could be actually done compared to the other ****** register page that got released and praised so much.
turk55 is offline  
Thanks
1 User
Old 11/17/2016, 17:17   #24
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Smile

HElp Got Error For this Site

arneljan is offline  
Old 11/17/2016, 17:33   #25
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Quote:
Originally Posted by arneljan View Post
HElp Got Error For this Site

It is because you changed the initialize.php
turk55 is offline  
Old 11/20/2016, 01:39   #26
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Quote:
Originally Posted by turk55 View Post
It is because you changed the initialize.php
No i didnt change it in initialize.php i was changing only in Settings
arneljan is offline  
Old 11/20/2016, 16:24   #27
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Quote:
Originally Posted by arneljan View Post
No i didnt change it in initialize.php i was changing only in Settings
Then that just proves the fact that you can not even change a settings file.
turk55 is offline  
Old 11/27/2016, 05:03   #28
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Quote:
Originally Posted by turk55 View Post
Then that just proves the fact that you can not even change a settings file.
if i dont change the DataBase Password,Root or localhost how can player register to my sql.
arneljan is offline  
Old 11/28/2016, 10:26   #29
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by turk55 View Post
It is because you changed the initialize.php
Looking at the code, it's not because he changed initialize.php. The actual problem lies in DBConnection.php, but PHP sucks ***** and doesn't give you the actual error location when using namespaces (I don't know if there is a setting for that, but probably not, knowing how retarded PHP is.)

Unless he actually changed use Redux\Database, in which case he's ******
Super Aids is offline  
Old 11/28/2016, 20:12   #30
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 700
Quote:
Originally Posted by Super Aids View Post
Looking at the code, it's not because he changed initialize.php. The actual problem lies in DBConnection.php, but PHP sucks ***** and doesn't give you the actual error location when using namespaces (I don't know if there is a setting for that, but probably not, knowing how retarded PHP is.)

Unless he actually changed use Redux\Database, in which case he's ******
On a second look, he uses AppServ which is cancerous piece of ****... and is probably using php 5.2? Which probably doesn't even support namespaces and/or constants.
turk55 is offline  
Thanks
1 User
Reply

Tags
classes, namespaces, pdo, php, redux


Similar Threads Similar Threads
[Learning Redux] Video Guides To Using Redux
03/22/2024 - CO2 PServer Guides & Releases - 43 Replies
So I know jumping into a new source can be scary and it's not something everyone wants to do, especially if they have a lot of content running already under something else (looking at you NCOS based servers!). These videos are designed to help people get their feet wet with Redux by providing accurate and easy to follow information on how to accomplish common tasks. DOWNLOAD REDUX/FAQ:...
Registration form autofilling tool ?
05/31/2012 - General Coding - 0 Replies
Hey, I need to register few accounts on leagueoflegends.com. Do any of you know the tool, that i could partially auto it ? It needs to type in, login, password, mail with +1 valuable, i can type captcha myself. I could pay for the tool if somone could make me one.
PHP Registration Form
09/27/2010 - Shaiya Private Server - 10 Replies
Hello, I had a php reg form for my private server.... but the server crashed and i had lost everything... I managed to get everything back on but i cant seem to find the registration form. If anyone of you could help me out it would be greatly appreciated. Regards.
[Request] Help with registration form (C#)
09/27/2010 - CO2 Private Server - 8 Replies
Hey ePvP's! Today i've been working on a small windowsapplicationform that allows you to create an account in my database. Now, i created the design. Can anyone help me on the road? I don't know how to let the program interact with the server.. Now what i got atm is like this 3 masked textboxes (masked textbox1) (masked textbox2) <-- etc.. 1 Check Box <-- which must be vinked 1 button <-- Register All fields must be filled.
SunWorld Registration, please take a look, I need a form :D
08/11/2009 - SRO Private Server - 5 Replies
I searched the forum now, and i can't find anything about it.. I've got into the reg page, but can't understand AY thing :D can someone help me, what info i shall write in the different boxes? On forehand THX



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


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.