Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include 'connect.php';
- if(!isset($_SESSION['username']))
- {
- //already logged in, redirect
- header('Location: index.php');
- exit;
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="css/privat.css">
- <link rel="stylesheet" type="text/css" href="css/link.css">
- <link rel="stylesheet" type="text/css" href="css/content.css">
- <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
- <link rel="shortcut icon" href="img/icon.png" />
- <title>SE - Stick Empire</title>
- </head>
- <body>
- <?php include 'toplog.php'; ?>
- <div style="clear: both;"></div>
- <!-- CONTENT -->
- <div id="container">
- <div style="margin-top: 50px;">
- <!--- TOP --->
- <div style="margin-top: 20px;"></div>
- <!--- LEFT -->
- <?php include 'left.php'; ?>
- <!-- RIGHT -->
- <div style="margin-left: 20px; float: left; width: 827px;">
- <!--- CLAN -->
- <div id="rightcontenttop"></div>
- <div id="rightcontent">
- <div style="margin-left: 24px;">
-
- <div style="margin-top: 5px;"></div>
- <center><h2 style="font-family: Papyrus;">SHOP!</h2></center>
- <div style="margin-top: 5px;"></div>
-
- </div>
- </div>
- <div id="rightcontentbot"></div>
- <div style="margin-top: 20px;"></div>
- <!--- PROFILE -->
- <div id="rightcontenttop"></div>
- <div id="rightcontent">
- <div style="margin-left: 30px;">
- <!-- HOVED -->
- <div style="float: left; width: 195px;">
- <center>
- <?php
- $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='hoved' order by item ASC") or die(mysqli_error());
- while($row = mysqli_fetch_array($result)){
- echo "<img src='img/".$row['type']."/".$row['item'].".png' width='130' height='70' style='margin-left: 15px;'/>";
- echo "<br />";
- echo "<a href='?shop'><input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/></a>";
- echo "<br /><br /><br />";
- if(@$_GET['shop']){
- $id = $_GET['id'];
- mysqli_query($mysqli,"UPDATE `man` SET head = '".$row['item']."' WHERE `id` = '".$id."'") or die(mysqli_error());
- }
- }
- ?>
- </div>
- <!-- MAVE -->
- <div style="float: left; width: 195px;">
- <center>
- <?php
- $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='mave' order by item ASC") or die(mysqli_error());
- while($row = mysqli_fetch_array($result)){
- echo "<img src='img/".$row['type']."/".$row['item'].".png' width='170' height='70'/>";
- echo "<br />";
- echo "<input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/>";
- echo "<br /><br /><br />";
- }
- ?>
- </center>
- </div>
- <!-- BEN -->
- <div style="float: left; width: 195px;">
- <center>
- <?php
- $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='ben' order by item ASC") or die(mysqli_error());
- while($row = mysqli_fetch_array($result)){
- echo "<img src='img/".$row['type']."/".$row['item'].".png' width='170' height='70'/>";
- echo "<br />";
- echo "<input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/>";
- echo "<br /><br /><br />";
- }
- ?>
- </center>
- </div>
- <!-- FOD -->
- <div style="float: left; width: 195px;">
- <center>
- <?php
- $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='fod' order by item ASC") or die(mysqli_error());
- while($row = mysqli_fetch_array($result)){
- echo "<img src='img/".$row['type']."/".$row['item'].".png' width='200' height='70'/>";
- echo "<br />";
- echo "<input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/>";
- echo "<br /><br /><br />";
- }
- ?>
- </center>
- </div>
- <div style="clear: both;">
- </div>
- </div>
- <div id="rightcontentbot"></div>
- </div>
- <div style="clear: both;"></div>
- <br />
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement