login  Naam:   Wachtwoord: 
Registreer je!
 Forum

index

Offline ottorocket - 05/01/2006 13:48
Avatar van ottorocketOnbekend Hey, ik heb een index gemaakt voor mijn site, maar heb er een probleem mij
hier zie je een screenshot als je bent ingelogd

http://img202.i...ite9st.gif
onder - veiling zal je zien dat er een code staat, ik weet niet vanwaar hij komt

Dit is het script

  1. <?php /* ------------------------- */
  2.  
  3. if(isset($_COOKIE['login'],$_COOKIE['validate'])) {
  4. setcookie("login",$_COOKIE['login'],time()+24*60*60,"/","");
  5. setcookie("validate",$_COOKIE['validate'],time()+24*60*60,"/","");
  6. }
  7.  
  8. include("_include-config.php");
  9.  
  10. /* ------------------------- */ ?>
  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. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  15. <title>:: counter terrors ::</title>
  16. <link href="css-v1.css" rel="stylesheet" type="text/css" />
  17. <base target="home" />
  18. </head>
  19.  
  20. <body>
  21. <?php /* ------------------------- */
  22.  
  23. $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");
  24. $members = mysql_num_rows($dbres);
  25. $laatstelid = mysql_query("select `login` from `[users]` order by id desc limit 1");
  26. $lastmember = @mysql_result($laatstelid,0,0);
  27. $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=0");
  28. $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
  29. $online = mysql_num_rows($dbres);
  30. $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=0");
  31. $anonymous = mysql_num_rows($dbres);
  32. $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=-1");
  33. $geband = mysql_num_rows($dbres);
  34. $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=255");
  35. $admins = mysql_num_rows($dbres);
  36. $p = $_GET['p'];
  37. $c = $_GET['c'];
  38. $s = $_GET['s'];
  39. print <<<ENDHTML
  40.  
  41. ENDHTML;
  42.  
  43. if($data) {
  44. print <<<ENDHTML
  45. <div align="center">
  46.   <table width="800" border="0" cellpadding="0" cellspacing="0" class="menu">
  47.   <tr>
  48.   <td width="800" height="96" colspan="5"><img src="images/criminals.jpg" width="800" height="96" /></td>
  49.   </tr>
  50.   <tr>
  51.   <td height="20">Leden: $members</td>
  52.   <td>Leden online: $online</td>
  53.   <td>Admins online: $admins</td>
  54.   <td>Gebande leden: $geband</td>
  55.   <td class="menuLink">Nieuwste lid: <a href="profile.php?x=$lastmember">$lastmember</a></td>
  56.   </tr>
  57.   <tr>
  58.   <td height="392" colspan="5" class="menu"><table width="800" border="0" cellspacing="0" cellpadding="0">
  59.   <tr>
  60.   <td width="150" height="392"><table width="150" border="0" cellspacing="0" cellpadding="0">
  61.   <tr>
  62.   <td height="20" class="menuTitle"><div align="center">Home</div></td>
  63.   </tr>
  64.   <tr>
  65.   <td class="menuLink">- <a href="hq.php">Hoofdkwartier</a><br />
  66.   - <a href="bank.php">Bank</a><br />
  67.   - <a href="shop.php">Wapen/winkel</a><br />
  68.   - <a href="citychange.php">Reizen</a><br />
  69.   - <a href="hitlist.php">Hitlist</a><br />
  70.   - <a href="rechtbank.php">Rechtbank</a></td>
  71.   </tr>
  72.   </table>
  73.   <br />
  74.   <table width="150" border="0" cellspacing="0" cellpadding="0">
  75.   <tr>
  76.   <td height="20" class="menuTitle"><div align="center">Berichten</div></td>
  77.   </tr>
  78.   <tr>
  79.   <td class="menuLink">- <a href="message.php?p=new">Nieuw bericht</a><br />
  80.   - <a href="message.php?p=inbox">Inbox</a><br />
  81.   - <a href="message.php?p=outbox">Outbox</a><br />
  82.   - <a href="message.php?p=saved">Opgeslagen berichten</a><br />
  83.   - <a href="forum">Forum</a> </td>
  84.   </tr>
  85.   </table>
  86.   <br />
  87.   <table width="150" border="0" cellspacing="0" cellpadding="0">
  88.   <tr>
  89.   <td height="20" class="menuTitle"><div align="center">misdaden</div></td>
  90.   </tr>
  91.   <tr>
  92.   <td class="menuLink">- <a href="crimes.php">Misdaden</a><br />
  93.   - <a href="mensenschieten.php">Schiet op mensen</a><br />
  94.   - <a href="drugsstelen.php">Drugs stelen</a><br />
  95.   - <a href="auto_stelen.php">Autos stelen</a> </td>
  96.   </tr>
  97.   </table>
  98.   <br />
  99.   <table width="150" border="0" cellspacing="0" cellpadding="0">
  100.   <tr>
  101.   <td height="20" class="menuTitle"><div align="center">De stad </div></td>
  102.   </tr>
  103.   <tr>
  104.   <td class="menuLink">- <a href="opdrukken_boksen.php">Gym</a><br />
  105.   - <a href="handdruk.php">Handje drukken</a><br />
  106.   - <a href="cofee.php">Coffee shop </a><br />
  107.   - <a href="garage.php">Garge</a><br />
  108.   - <a href="showroom.php">Showroom</a> <br />
  109.   - <a href="kogelfabriek.php">Kogelfabriek</a><br />
  110.   - <a href="veiling.php">Veiling</a> </td>
  111.   </tr>
  112.   </table>
  113.   <br />
  114.   <table width="150" border="0" cellspacing="0" cellpadding="0">
  115.   <tr>
  116.   <td height="20" class="menuTitle"><div align="center">Clan</div></td>
  117.   </tr>
  118.   <tr>
  119.   <td class="menuLink">- Clan list<br />
  120.  
  121. ENDHTML;
  122.  
  123.   if($data->clanlevel == 0) {
  124.   print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?p=join\">Aanmelden</a></td></tr>\n";
  125.   if($data->level & 0x01)
  126.   print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?p=new\">Nieuwe clan</a></td></tr>\n";
  127.   }
  128.   else {
  129. print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?x={$data->clan}\">Clan profiel</a></td></tr>\n";
  130.   if($data->clanlevel >= 8 || $data->clanlevel == 6) {
  131.   print "<tr><td class=\"menuLink\"> - <a href=\"clanbank.php\">Bank</a></td></tr>\n";
  132.   print "<tr><td class=\"menuLink\"> - <a href=\"clandonate.php\">doneren aan clan</a></td></tr>\n";
  133.   print "<tr><td class=\"menuLink\"> - <a href=\"clanshop.php\">Bouwterrein</a></td></tr>\n";
  134.   print "<tr><td class=\"menuLink\"> - <a href=\"clansms.php\">clansms</a></td></tr>\n";
  135.   print "<tr><td class=\"menuLink\"> - <a href=\"clanlog.php\">clanlogs</a></td></tr>\n";
  136.   }
  137.   if($data->clanlevel >= 8 || $data->clanlevel == 2)
  138.   print "<tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=recruits\">Aanmeldingen</a></td></tr>\n";
  139.   if($data->clanlevel >= 8) {
  140.   print "<tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=members\">Members</a></td></tr>\n";
  141.   print "<tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=info\">Clan info</a></td></tr>\n";
  142.   }
  143.   if($data->clanlevel > 0) {
  144.   if($data->clanlevel < 9)
  145. print "<tr><td class=\"menuLink\"> - <a href=\"clanlog.php?p=quit\">Stap uit je clan</a></td></tr>\n";
  146.   else
  147.   print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?p=delete\">Stop de clan</a></td></tr>\n";
  148.   }
  149.   }
  150.   print <<<ENDHTML
  151.   </tr>
  152.   </table>
  153.   <br /></td>
  154.   <td><iframe name="home" src="home.php" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe></td>
  155.   </tr>
  156.   </table></td>
  157.   </tr>
  158. ENDHTML;
  159. }
  160. else {
  161. include("index.html");
  162. }
  163. /* ------------------------- */ ?>
  164. </table>
  165. </div>
  166. </body>
  167. </html>

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.185s