#Eventific
Event Management system for event managers and event explorers.
##Sync with repository
- Create gitHub account.
- Send username to Peter.
- Download gitHub GUI and login with your gitHub account:
- Once added to the repository, clone the repository from github (+ sign at top left).
- Create a new branch for new features and merge it back to master once it is done.
- Don't forget to Sync your local repository to the gitHub repository at every logical moment.
##Database settings
- Install MySQL.
- Login as root.
- Run the eventific/webtechgroup5.sql on your database.
- Create a new user:
- Username: webtech
- Password: KKll55
- Give it (at least) SELECT, INPUT and UPDATE privileges to this user, on the webtechgroup5 database (and every tables in it) @ localhost or 127.0.0.1 (depending on your setup).
##Server settings
- Make sure the wwwroot folder in the repository is your document root folder of your server setup.
- This will make sure that all other folders and files in the first level of the repository will be protected against direct access.
##Configure Secure Sessions
- Create Database table and seperate user and limit it's permissions. (see secureSessionDB.sql)
- Install MCrypt extension for php (if not installed)
#Facebook Login:
- Alter the table members: ALTER TABLE
members
ADDfbid
VARCHAR(128) NOT NULL DEFAULT '0' ; - When you log in to facebook, you get redirected to eventific.dev/......., you have to change this to your local host. For example: locahost:8080/......
- Once logged in, there should be a line of text below "Welcome to your Eventific account ....". There are three log in types: Default (site only), FB or Both.
- There are variables stored in the session for lots of things, i think all of them are pretty clear.
$_SESSION['user_friends'] = $result; $_SESSION['valid'] = true; $_SESSION['timeout'] = time(); $_SESSION['FB'] = true; $_SESSION['username'] = $graphObject['name']; $_SESSION['id'] = $graphObject['id']; $_SESSION['first_name'] = $graphObject['first_name']; $_SESSION['last_name'] = $graphObject['last_name']; $_SESSION['gender'] = $graphObject['gender']; $_SESSION['email'] = $graphObject['email'];