Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_GET['forum']=='login') {
- require_once('forum/smf_1-1_api.php');
- $username = $_POST['username'];
- $password = $_POST['password'];
- smf_setLoginCookie(360000, $username, $password, $encrypted = false);
- smf_authenticateUser();
- }
- if ($_GET['forum']=='logout') {
- require_once('forum/smf_1-1_api.php');
- smf_setLoginCookie(360000, "", "", $encrypted = false);
- smf_authenticateUser();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement