This is a simple site with register,login,password_reset > form, include email validation after register and in password reset process.
Is developed in Xampp on localmashine
Some instructions for up site on your mashine if you use windows os
Setup Apache httpd.conf
Need to find and redact:
<!--if you install xampp in another path set your path-->
DocumentRoot "C:/xampp/htdocs/MySite"
<Directory "C:/xampp/htdocs/MySite">
Setup Apache php.ini
Need to find and redact after [mail function]
SMTP=smtp.gmail.com
smtp_port=465
sendmail_from = [email protected]
<!-- if you install xampp in another path set your path -->
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
\
Setup Sendmail in Xampp > C:\xampp\sendmail.ini:
Need to find and redact positions:
smtp_server=smtp.gmail.com
smtp_port=465
[email protected]
auth_password=Hebydusaq1995
[email protected]
Setup http://localhost/phpmyadmin/
in project folder find file MySite/db_dump/indrivo.sql
upload "indrivo.sql" in http://localhost/phpmyadmin/
i use in this project default creditials from phpmyadmin: (username="root",password="")
<!--if you install xampp in another path set your path-->
Copy project folder "MySite" in path C:/xampp/htdocs/
looks like C:/xampp/htdocs/MySite/...
Test if site is up >> http://localhost/
<!--if you http port 80 is in use, you can use any other -->
<!--just redact httpd.conf file: find: Listen 80 and ghange it, -->
<!--recomand to use in range 81-89 to avoid port conflicts -->
Restart apache after this
For link work from email we need to change some in code:
6.1
Find file MySite/controller/register.php
change this line:
http://93.113.64.122:33331/controller/verify-mail.php?email='.$email.'&hash='.$hash.'
to
http://localhost<!--: you custom port -->/controller/verify-mail.php?email='.$email.'&hash='.$hash.'
6.2
Same for MySite/controller/restore_password_mail.php
change this line:
http://93.113.64.122:33331/view/reset_password.php?
to:
http://localhost<!--: you custom port -->/view/reset_password.php?