SHARE
TWEET

Untitled

a guest Jun 15th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. define('IN_PHPBB', true);
  3. $phpbb_root_path = './../forums/';
  4. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  5. include($phpbb_root_path . 'common.' . $phpEx);
  6.  
  7. // Start session management
  8. $user->session_begin();
  9. $auth->acl($user->data);
  10. $user->setup();
  11.  
  12. if (!$user->data['is_registered'])
  13. {
  14. ?>
  15.       <div id="loginbox" class="loginbox">
  16. <form method="POST" action="./../forums/ucp.php?mode=login" >
  17. <p>Username: <input type="text" name="username" size="20"><br />
  18. Password: <input type="password" name="password" size="20"><br />
  19. Remember Me?: <input type="checkbox" name="autologin"><br />
  20. <input type="submit" value="Submit" name="login"></p>
  21. <input type="hidden" name="redirect" value="./../main/newindex.php">
  22. </form>
  23. <?php
  24. }
  25. else
  26. {
  27. ?>
  28. <div id="userbox" class="userbox">
  29. <?php
  30. echo 'Hello &nbsp;', $user->data['username'],' &nbsp; You are logged in!';
  31. }
  32. ?>
  33. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top