Advertisement
Guest User

Untitled

a guest
May 15th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. if ($_GET['forum']=='login') {
  2.     require_once('forum/smf_1-1_api.php');
  3.     $username = $_POST['username'];
  4.     $password = $_POST['password'];
  5.     smf_setLoginCookie(360000, $username, $password, $encrypted = false);
  6.     smf_authenticateUser();
  7.     }
  8.    
  9. if ($_GET['forum']=='logout') {
  10.     require_once('forum/smf_1-1_api.php');
  11.     smf_setLoginCookie(360000, "", "", $encrypted = false);
  12.     smf_authenticateUser();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement