pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP paste-bin - collaborative debugging tool View Help


Posted by aKa on Thu 7th Jun 08:39
download | new post

  1. <?
  2. /**
  3. * Author   THE MOTHER FUCKING MAN!!!!
  4. * Title    COCK MANIAC MONSTERS!!!! .com - Require Auth.
  5. * Desc     Front page for public website
  6. * Version  1.0
  7. * Created  06/03/2007
  8. */
  9.  
  10. /**** Page Settings ****/
  11. /** Classes to load before sessions **/
  12. $start_classes = array('user_auth');
  13. /** Allowed user types **/
  14. $user_auth_settings['admin'] = true;
  15. $user_auth_settings['publisher'] = true;
  16. $login_page = 'admin_web_login_page';
  17.  
  18. /**
  19. * Start: Run our boot loader. This will load all configs,
  20. *        connect to DB and pull load class files.
  21. */
  22. require_once '../../includes/start.inc.php';
  23.  
  24. /**
  25. * Header: Set load header
  26. */
  27. require_once 'includes/header.inc.php';
  28.  
  29. /**
  30. * Body: Do page specific function and output
  31. */
  32. ?>
  33. <h1>You have reached a page that requires login. Your user information is:</h1>
  34. <p><a href="./action_logout.php" style="color: #ff0000;">Log Out</a></p>
  35. <ul>
  36.   <li>ID: <?=$_SESSION[user]->id?></li>
  37.   <li>Member ID: <?=$_SESSION[user]->member_id?></li>
  38.   <li>Username: <?=$_SESSION[user]->username?></li>
  39.   <li>Password Hash: <?=$_SESSION[user]->password_hash?></li>
  40.   <li>Password Salt: <?=$_SESSION[user]->salt?></li>
  41.   <li>Last Login: <?=$_SESSION[user]->last_login?></li>
  42.   <li>Created On: <?=$_SESSION[user]->created_on?></li>
  43. </ul>
  44.  
  45. <?
  46.  
  47. /**
  48. * Footer: Pull Page Footer
  49. */
  50. require_once 'includes/footer.inc.php';
  51.  
  52. /**
  53. * End: Run out end script.  This will run all
  54. *      end of life functions we need.
  55. */
  56. require_once '../../includes/end.inc.php';
  57.  
  58. ?>

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings