Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2. session_start();
  3. require ("includes/config.php");
  4. $facebookID = $_GET[fb];
  5. $username = $_GET[username];
  6. $password = $_GET[password];
  7. /**************************************
  8.  
  9. DEFAULT CLASSES TO RUN
  10.  
  11. ***************************************/
  12. $DB = new db($c_db_username, $c_db_password, $c_db_database, $c_db_host); // conect to the database
  13.  
  14. $UI = new user($username,$password,$facebookID);                          // check for logged in user
  15.  
  16. ($_GET['action']=='logout') ? $UI->logout() : "";                         // logout on request
  17.  
  18. if($UI->_loggedIn) { echo 'logged in'; } else { echo 'not logged in'; }   // display if user is logged in or not
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement