Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- session_start();
- if (!isset($_SESSION[$user]) || !isset($_SESSION['admin'])) {
- header ('Location: login2.php');
- exit;
- }
- ?>
- <?php
- $location = 'http://www.domain.com/Connections/uploader.php';
- require_once($location); ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <style>
- a:link {
- text-decoration: none;
- }
- a:visited {
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- a:active {
- text-decoration: none;
- }
- .pagecontent{
- margin-left:auto;
- margin-right:auto;
- width:500px;
- }
- </style>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- </head>
- <body>
- <?php require_once('http://www.domain.com/VBS/header.php'); ?>
- <div class="pagecontent">
- <h3>Your Account Stats: </h3>
- <?php
- mysql_select_db($database_uploader, $uploader);
- $query = "SELECT * FROM members WHERE uname='"
- . mysql_real_escape_string($_SESSION[$user]) . "'";
- $result = mysql_query($query) or die(mysql_error());
- if (mysql_num_rows($result) > 0) {
- $row = mysql_fetch_array($result) or die(mysql_error());
- echo "well this is good... i got in!";
- if (($row['acntStatus']) == 0) { // If account is OK
- echo "<img src='../Images/ok_checkmark_green.png' width='128' height='128' /><h3>OK</h3>";
- mysql_close($result);
- }
- else { // If account is NOT OK
- echo "<img src='../../Images/x.png' width='300' height='300' /><h3>BAD</h3>";
- mysql_close($result);
- }
- } else { echo "<br>there is no selected account!!"; }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement