Advertisement
daixso

gmconsole.php

Nov 19th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  1. <?php
  2.  if(!isset($_SESSION["gmlogin"]) || !isset($_SESSION["gmloginp"])){
  3.     header("Location:login.php");
  4.     }else{
  5.     if(!isset($_GET["page"])){
  6.         header("Location:index.php?page=main");
  7.         }
  8. ?>
  9. <div class="box">
  10.     <!-- Box Head -->
  11.     <div class="box-head">
  12.         <h2 class="left">Game Master Controls</h2>
  13.     </div>
  14.     <!-- End Box Head -->
  15.     <form action="checkcon.php" method="POST">
  16.         <!-- Form -->
  17.         <div class="form">
  18. <?php
  19. //get commands available to the GM based on security
  20. $gamemaster = $user[3];
  21. mysql_select_db("mz_world");
  22. $query="SELECT name FROM `command` WHERE security <= 3 ORDER BY security ASC";
  23. $result=mysql_query($query)or die("MySQL: " . mysql_error());
  24. $commands=mysql_fetch_array($result);
  25. $count = mysql_num_rows($result);
  26. print_r($commands);
  27. foreach($commands as $key => $value){
  28.     echo $value . " " . $key . "<br />";
  29.     }
  30. ?>
  31.         </div>
  32.     </form>
  33. </div>
  34.        
  35.        
  36.        
  37. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement