[Release] Redux registration form (PHP)

01/07/2016 23:54 turk55#16
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");
01/08/2016 00:31 denominator#17
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);
});
01/08/2016 00:59 turk55#18
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.
01/08/2016 01:01 denominator#19
Yup the 3307 was the problem lol, works now :)
02/19/2016 10:12 Spirited#20
Quote:
Originally Posted by mohammedqq1 View Post
i feel bad when i see this f*c*i*g shit!

i am sorry .
Tourettes? What is the purpose of this comment besides being spam?
02/19/2016 15:03 KraHen#21
Quote:
Originally Posted by Spirited View Post
Tourettes? What is the purpose of this comment besides being spam?
Trying to fit in.
03/07/2016 11:53 DePredaTe#22
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.
03/08/2016 01:27 turk55#23
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 shitty register page that got released and praised so much.
11/17/2016 17:17 arneljan#24
HElp Got Error For this Site

[Only registered and activated users can see links. Click Here To Register...]
11/17/2016 17:33 turk55#25
Quote:
Originally Posted by arneljan View Post
HElp Got Error For this Site

[Only registered and activated users can see links. Click Here To Register...]
It is because you changed the initialize.php
11/20/2016 01:39 arneljan#26
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
11/20/2016 16:24 turk55#27
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.
11/27/2016 05:03 arneljan#28
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.
11/28/2016 10:26 Super Aids#29
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 balls 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 fucked
11/28/2016 20:12 turk55#30
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 balls 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 fucked
On a second look, he uses AppServ which is cancerous piece of shit... and is probably using php 5.2? Which probably doesn't even support namespaces and/or constants.