Advertisement
droidus

Untitled

Jun 11th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.64 KB | None | 0 0
  1. <?
  2. session_start();
  3. if (!isset($_SESSION[$user]) || !isset($_SESSION['admin'])) {
  4.     header ('Location: login2.php');
  5.     exit;
  6. }
  7. ?>
  8. <?php
  9. $location = 'http://www.domain.com/Connections/uploader.php';
  10.  require_once($location); ?>
  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. <style>
  15. a:link {
  16.     text-decoration: none;
  17. }
  18. a:visited {
  19.     text-decoration: none;
  20. }
  21. a:hover {
  22.     text-decoration: underline;
  23. }
  24. a:active {
  25.     text-decoration: none;
  26. }
  27. .pagecontent{
  28.     margin-left:auto;
  29.     margin-right:auto;
  30.     width:500px;
  31. }
  32. </style>
  33. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  34. <title>Untitled Document</title>
  35. </head>
  36.  
  37. <body>
  38. <?php require_once('http://www.domain.com/VBS/header.php'); ?>
  39. <div class="pagecontent">
  40. <h3>Your Account Stats: </h3>
  41. <?php
  42.  
  43. mysql_select_db($database_uploader, $uploader);    
  44.     $query = "SELECT * FROM members WHERE uname='"
  45.     . mysql_real_escape_string($_SESSION[$user]) . "'";
  46.     $result = mysql_query($query) or die(mysql_error());
  47.  
  48.     if (mysql_num_rows($result) > 0) {
  49.         $row = mysql_fetch_array($result) or die(mysql_error());
  50.        
  51.         echo "well this is good... i got in!";
  52.                
  53.         if (($row['acntStatus']) == 0) {  // If account is OK
  54.             echo "<img src='../Images/ok_checkmark_green.png' width='128' height='128' /><h3>OK</h3>";
  55.             mysql_close($result);
  56.         }
  57.         else {  // If account is NOT OK
  58.             echo "<img src='../../Images/x.png' width='300' height='300' /><h3>BAD</h3>";
  59.             mysql_close($result);
  60.         }
  61.     }  else { echo "<br>there is no selected account!!"; }
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement