Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require ("includes/config.php");
- $facebookID = $_GET[fb];
- $username = $_GET[username];
- $password = $_GET[password];
- /**************************************
- DEFAULT CLASSES TO RUN
- ***************************************/
- $DB = new db($c_db_username, $c_db_password, $c_db_database, $c_db_host); // conect to the database
- $UI = new user($username,$password,$facebookID); // check for logged in user
- ($_GET['action']=='logout') ? $UI->logout() : ""; // logout on request
- if($UI->_loggedIn) { echo 'logged in'; } else { echo 'not logged in'; } // display if user is logged in or not
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement