daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include("scripts/login.php");
  3. include("includes/header1.inc");
  4. ?>
  5. <title>Syndicate Jailers - Edit</title>
  6. <?php include("includes/header2.inc"); ?>
  7.  
  8. <body>
  9. <?php
  10. $tag=$_GET['tag'];
  11. $loc="localhost";
  12. $username="sj";
  13. $password="a'l;kjasdf";
  14. $database="sj_xbl";
  15. $link = mysql_connect($loc,$username,$password);
  16. mysql_connect($loc,$username,$password);
  17.  
  18. @mysql_select_db($database) or die( "Unable to select database");
  19. $query="SELECT * FROM members WHERE tag='$tag'";
  20. $result=mysql_query($query);
  21. $num=mysql_numrows($result);
  22. mysql_close();
  23.  
  24.  
  25.  
  26.  
  27. $i=0;
  28. while ($user = mysql_fetch_assoc($result));
  29. $tag = $user['tag'];
  30. $email = $user['email'];
  31. $points = $user['points'];
  32. $referral = $user['referral'];
  33. $age = $user['age'];
  34. $rank = $user['rank'];
  35. $active = $user['active'];
  36. $avatar = $user['avatar'];
  37.  
  38.  
  39.  
  40. if ($active == 0) {
  41. $status = '<font color="yellow">Pending</font>';
  42. }
  43. elseif ($active == 1) {
  44. $status = '<font color="green">Active</font>';
  45. }
  46. elseif ($active == 2) {
  47. $status = '<font color="red">Suspended</font>';
  48. }
  49. ?>
  50. <?php include("includes/header3.inc"); ?>
  51.                     <div class="main_news_con">
  52.                             <div class="main_news_post">
  53.                             <div class="main_news_post_img">
  54.                                 <img src="images/news_post_img.jpg" alt="" />
  55.                             </div>
  56.                             <div class="main_news_post_text_con">
  57.                                 <div class="main_news_post_text_details">
  58.                                     <div class="main_news_post_text_title">
  59.                                         <a href="#">Edit Profile</a></div>
  60.                                     <div class="main_news_post_text_date">
  61.                                         2/7/2011</div>
  62.                                     <div class="main_news_post_text_comments">
  63.                                         Posted by Alex</div>
  64.                                     <div class="clr"></div>
  65.                                 </div>
  66.                                 <div class="main_news_post_text">
  67.                                     <p>
  68.  
  69.           <form action="scripts/edit.php" method="post">
  70.                                 <table width="" align="" style="border-collapse: collapse;">
  71. <?php echo "    
  72.                                 <tbody>
  73.     <tr>
  74.       <td>GamerTag<br />
  75.         </td>
  76.       <td> $tag
  77.       <input type='hidden' value='{$tag}' name='ud_tag' /> <br />
  78.         </td>
  79.     </tr>
  80.     <tr>
  81.       <td>Email Address<br />
  82.         </td>
  83.       <td><input type='text' name='ud_email' value='{$email}'><br />
  84.         </td>
  85.     </tr>
  86.     <tr>
  87.       <td>Gamer Points<br />
  88.         </td>
  89.       <td><input type='text' name='ud_points' value='{$points}'><br />
  90.         </td>
  91.     </tr>
  92.     <tr>
  93.       <td>Referral<br />
  94.         </td>
  95.       <td> $referral <input type='hidden' value='{$referral}' name='ud_referral'><br />
  96.         </td>
  97.     </tr>
  98.     <tr>
  99.       <td>Age<br />
  100.         </td>
  101.       <td><input type='text' name='ud_age' value='{$age}'><br />
  102.         </td>
  103.     </tr>
  104.     <tr>
  105.       <td>Rank<br />
  106.         </td>
  107.       <td>$rank <input type='hidden' value='{$rank}' name='ud_rank'><br />
  108.         </td>
  109.     </tr>
  110.     <tr>
  111.       <td>Status<br />
  112.         </td>
  113.       <td> $status <input type='hidden' value='{$status}' name='ud_status'><br />
  114.         </td>
  115.     </tr>
  116.     <tr>
  117.       <td>Avatar<br />
  118.         </td>
  119.       <td><input type='text' name='ud_email' value='{$avatar}'> <br />
  120.         </td>
  121.     </tr>
  122.     <tr>
  123.       <td style=\"\" colspan=\"1\">Password (Must enter)<br />
  124.         </td>
  125.       <td style=\"\" colspan=\"1\"><input type='text' name='ud_password' ></td>
  126.     </tr>
  127.   </tbody>
  128. </table> </form> "; ?>
  129.        <br />
  130.                                         </p>
  131.                                 </div>
  132.                             </div>
  133.                             <div class="clr"></div>
  134.                         </div>
  135.                     </div>
  136.                 </div>
  137.                <?php include("includes/sidebar.inc"); ?>
  138.                 </div>
  139.                 <div class="clr"></div>
  140.             </div>
  141.            
  142.                 <?php include("includes/footer.inc"); ?>
  143.                 <div class="clr"></div>
  144.             </div>
  145.         </div>
  146.     </div>
  147. </div>
  148. </body>
  149. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top