Guest User

Untitled

a guest
May 14th, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. include_once('./globals.php');
  3. if(isset($_GET['complete'])) {
  4. $db->query('UPDATE `users` SET `tutorial` = -1 WHERE (`userid` = '. $_SESSION['userid'] .');');
  5. header('Location: index.php');
  6. }
  7. if(isset($_GET['skip'])) {
  8. $db->query('UPDATE `users` SET `tutorial` = `tutorial` + 1 WHERE (`userid` = '. $_SESSION['userid'] .');');
  9. header('Location: index.php');
  10. }
Advertisement
Add Comment
Please, Sign In to add comment