Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #191

Merged
merged 68 commits into from
Aug 25, 2013
Merged

Develop #191

merged 68 commits into from
Aug 25, 2013

Conversation

panique
Copy link
Owner

@panique panique commented Aug 25, 2013

No description provided.

devplanete and others added 30 commits August 17, 2013 18:43
Replace mysqli functions by PHP PDO functions in all database calls.

Replace all direct calls to "new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME)" by the function "private function databaseConnection()"
This function check if database connection already opened, create connection if needed and return true or false (if false, error message is added to error string of the class)
… by controller/action/model, exactly like it should be ;)
Replace mysqli functions by PHP PDO functions in all database calls.
Update Registration.php : PDO support
Update Login.php - PDO support
I have cleaned codes and refactored the class with an eye on PSR-0/1/2 code conventions
Update Registration.php - Code cleaned & refactored with PSR-0/1/2 code conventions
devplanete and others added 28 commits August 22, 2013 22:10
…event SQLite database file from being downloaded and blocked folder access
…event SQLite database file from being downloaded and blocked folder access
Improve Remember Me cookie feature and security
replace direct calls to database to look for user data by a new function getUserData (it's improve code lisibility and maintenance)

added some comments to explain new internal functions
Update login.php Add new function getUserData and comments
Rather than directly use $_POST and $_GET inside functions of the class, I have added some parameters to class functions.

It's far more easy to know now input data needed by each functions 
- registerNewUser($user_name, $user_email, $user_password, $user_password_repeat, $captcha)
- verifyNewUser($user_id, $user_activation_hash)
- sendVerificationEmail($user_id, $user_email, $user_activation_hash)

Some private variables have been removed because not use anymore.

At user creation, I record inside database the current datetime and the ip address used
Registration.php - code improvement
Registration.php update for compatibility with Mysql 5.0
panique added a commit that referenced this pull request Aug 25, 2013
@panique panique merged commit cc1a7a6 into master Aug 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant