login  Naam:   Wachtwoord: 
Registreer je!
 Forum

include

Offline ottorocket - 06/01/2006 18:08 (laatste wijziging 06/01/2006 18:13)
Avatar van ottorocketOnbekend het deel van de index waar je bent uigelogd, is een afbeelding met een form om in te loggen en als je ingelogd bent krijg je alle links die er staan+header+iframe

maar als je uitgelogd bent krijg je dus de afbeelding met form+header+iframe, eigenlijk mag er enkel de afbeelding met form komen

hier mijn index.php

  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. <html>
  12. <head>
  13. <title><--counter terrors--></title>
  14. <link rel="stylesheet" type="text/css" href="css-v1.css">
  15. <base target="home" />
  16.  
  17. </head>
  18.  
  19. <body style="margin: 5px;">
  20. <table align="center" width=800 height=100% cellpadding=0 cellspacing=0>
  21.  
  22. <tr><td width=800 height=100 style="background: url(images/criminals.jpg) no-repeat top center;"></td></tr>
  23.  
  24. <tr><td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
  25. <td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>
  26. <tr><td width=150 valign="top" align="center" style="position: relative; top: -40;">
  27. <?php /* ------------------------- */
  28. $dbres = mysql_query("SELECT `id` FROM `[users]`WHERE `activated`=1");
  29. $members = mysql_num_rows($dbres);
  30. $dbres25 = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
  31. $online = mysql_num_rows($dbres25);
  32.  
  33. $sentence2 = ($$adminsonline == 1) ? Array("","Admins") : Array("","Admins");
  34. $dbres3 = mysql_query("SELECT `id` FROM `[users]` WHERE `level`=255 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login`");
  35. $adminsonline = mysql_num_rows($dbres3);
  36.  
  37. $laatstelid = mysql_query("select `login` from `[users]`order by id desc limit 1");
  38. $lastmember = @mysql_result($laatstelid,0,0);
  39. print <<<ENDHTML
  40. ENDHTML;
  41. if($data) {
  42.   print <<<ENDHTML
  43. <td align="right" valign="top">
  44.   <table class="menu" width=150 cellpadding=0 cellspacing=0>
  45. <tr><td height="20" class="menuTitle"><div align="center">Algemeen</div></td></tr>
  46.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="home.php" class="menu">Home</a></td></tr>
  47.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="help.php" class="menu">Help/FAQ</a></td></tr>
  48.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="login.php?x=logout" class="menu">Logout</a></td></tr>
  49.   </table><br>
  50.  
  51. <table height="20" class="menu" width=150 cellpadding=0 cellspacing=0>
  52. <tr><td class="menuTitle"><div align="center">$data->login</div></td></tr>
  53.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="hq.php" class="menu">Hoofdkwartier</a></td></tr>
  54.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="bank.php" class="menu">Bank</a></td></tr>
  55.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="shop.php" class="menu">Winkel</a></td></tr>
  56. <tr><td class="menuLink">&nbsp;-&nbsp;<a href="city/city.php" class="menu">De stad</a></td></tr>
  57.   </table><br>
  58.  
  59. <table height="20" class="menu" width=150 cellpadding=0 cellspacing=0>
  60. <tr><td class="menuTitle"><div align="center">Statistieken</div></td></tr>
  61.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="stats.php" class="menu">Hall of Fame</a></td></tr>
  62.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="clanstats.php" class="menu">Clan statstieken</a></td></tr>
  63.   <tr><td class="menuLink">&nbsp;-&nbsp;<a href="cofeeshopstats.php" class="menu">Cofee shop statistieken</a></td></tr>
  64. <tr><td class="menuLink">&nbsp;-&nbsp;<a href="lottostats.php" class="menu">Lotto statistieken</a></td></tr>
  65. <tr><td class="menuLink">&nbsp;-&nbsp;<a href="dobellenstats.php" class="menu">Dobellen statistieken</a></td></tr>
  66.  
  67.   </table><br>
  68.  
  69.   <table width=100% cellpadding=0 cellspacing=0 class="menu">
  70. <tr><td height="20" class="menuTitle"><div align="center">Clan</div></td></tr>
  71.   <tr><td class="menuLink"> - <a href="clan.php?p=list" class="menu">Clan list</a></td></tr>
  72. ENDHTML;
  73. if($data->clanlevel == 0) {
  74. print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?p=join\">Aanmelden</a></td></tr>\n";
  75. if($data->level & 0x01)
  76. print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?p=new\">Nieuwe clan</a></td></tr>\n";
  77. }
  78. else {
  79. print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?x={$data->clan}\">Clan profiel</a></td></tr>\n";
  80. if($data->clanlevel >= 8 || $data->clanlevel == 6) {
  81. print "<tr><td class=\"menuLink\"> - <a href=\"clanbank.php\">Bank</a></td></tr>\n";
  82. print "<tr><td class=\"menuLink\"> - <a href=\"clandonate.php\">doneren aan clan</a></td></tr>\n";
  83. print "<tr><td class=\"menuLink\"> - <a href=\"clanshop.php\">Bouwterrein</a></td></tr>\n";
  84. print "<tr><td class=\"menuLink\"> - <a href=\"clansms.php\">clansms</a></td></tr>\n";
  85. print "<tr><td class=\"menuLink\"> - <a href=\"clanlog.php\">clanlogs</a></td></tr>\n";
  86. }
  87. if($data->clanlevel >= 8 || $data->clanlevel == 2)
  88. print "<tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=recruits\">Aanmeldingen</a></td></tr>\n";
  89. if($data->clanlevel >= 8) {
  90. print "<tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=members\">Members</a></td></tr>\n";
  91. print "<tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=info\">Clan info</a></td></tr>\n";
  92. }
  93. if($data->clanlevel > 0) {
  94. if($data->clanlevel < 9)
  95. print "<tr><td class=\"menuLink\"> - <a href=\"clanlog.php?p=quit\">Stap uit je clan</a></td></tr>\n";
  96. else
  97. print "<tr><td class=\"menuLink\"> - <a href=\"clan.php?p=delete\">Stop de clan</a></td></tr>\n";
  98. }
  99. }
  100. print <<<ENDHTML
  101.  
  102.  
  103.   </table><br>
  104.   }
  105. ENDHTML;
  106. }
  107. else {
  108. include("index2.html");
  109. }
  110. /* ------------------------- */ ?>
  111. <td align="right" valign="top">
  112. <iframe src="home.php" name="home" style="position: relative; top:"" ;" width=650 frameborder=0 height=100%></iframe>
  113. </td></tr>
  114. </td></tr>
  115. <tr><td></td>
  116. </table></td>
  117. </table></td></tr>
  118. </table>
  119. </head>
  120. </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.193s