Folders and its contents:
assets All the images and all used in projects
css contains all css files used in this project
database_update containes all the files that will verify gmail, reset password, etc (all functions used to update database data)
dp contains the profice picture of every user
js contains all the javaScript files used in this project
php containes all important php files
Files and its working:
chatui.html contains the platform ui where user will chat
index.php contains the signup and signin form
register_mail_conf.html age which will show user to check gmail inbox for verification
reset_password.html page whick will ask username to enter their registered email to reset password
verify_mail.php page that will update the status of user to activated (means user has verified his/her gmail account and now ready to chat)
reset_password.php page that will reset the password
config.php which creates connection of database from this project
Mail:
mail.php can be used to sent mail
https://jp1234ja.000webhostapp.com/?regid=[unique registration id from database]&stats=deactivated&msg=[message you want to show in mail (must include anchor with link of page in it) example: “<html><head></head><body><p><h1>hello </h1>click here</p></body></html>;]&link=[page link that will be be shown to check gmail inbox]&to=[gmail account of username]&sub=[subject of mail]
All the info written in “[]” should be followed properly
Initially you can’t sent mail unless and untill you host mail.php to a hosting which provides php mail function eg: 000webhost by hostinger
MYSQL:
It contains 8 columns i.e [‘id’ , ‘registration_id’ , ‘uid’ , ‘username’ , ‘password’ , ‘email’ , ‘dp’ , ‘status’]
Default values: a. id [set to auto increment] b. dp [path of any default profile pic] c. status [det value to deactivated y default]
Name of table used ‘users’
Initially changing registration id function in not working but will fix in later update
PASSWORDS:
Password are stored by the secured hasing method
BCRYPT method of hashing is used by us