Advertisement
hadar

Hadar

Jan 21st, 2010
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. require_once('settings.php');
  3. checkLogin('1 2 3 4 5 6 7');
  4.  
  5. $query = "SELECT * FROM `users` WHERE `ID` = " . $db->qstr ( $_SESSION['user_id'] );
  6. $row = $db->getRow ( $query );
  7. $username=$row->Username;
  8. $username=strtolower($username);
  9.  
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <title>Untitled Document</title>
  16. </head>
  17.  
  18. <body>
  19. <form name="return" id="webform" action="URL" method="POST">
  20. <input type="hidden" name="user" value="<?=$username?>">
  21. <input type="hidden" name="pass" size="16" value="<?=$row->webmailpass?>">
  22. <script language="JavaScript" type="text/javascript">
  23. document.return.submit();
  24. </script>
  25. </form>
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement