Er staat in mijn pagina gewoon een losse tekst met echo " ";
De rest is wel normaal en je ziet gewoon een tekst met echo " "; erdoorheen
wie kan het zien waar dat staat?
PHP
<?php
$microtime = microtime();
$delen = explode(" ", $microtime);
$precies = $delen[0];
$seconden = date("U");
$bgtm = $precies + $seconden;
?>
<?
ob_start();
include "config.php";
include "functies.php";
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml">';
echo "<head>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />";
echo "<title>".$website['naam']."</title>";
echo "<link href=\"opmaak.css\" rel=\"stylesheet\" type=\"text/css\" />";
echo "<script type=\"text/javascript\" src=\"javascript.js\"></script>";
?>
<!--[if lt IE 7]>
<style type="text/css"> body { height: 100%; } </style>
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22536305-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?
echo "</head>";
//echo "<body topmargin=\"0\">";
echo "<body>";
echo "<div class='header'>";
echo "<img src='/afbeeldingen/header.png' class='headerimg' alt='YouHorse.nl • Header' />";
echo "</div>";
//echo "<div class='belowheader'>.</div>";
echo "<div class='vul'></div>";
echo "<div class=\"container\">";
include("paginas/leden/tutorial.php");
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"150\" valign=\"top\">";
if(empty($_COOKIE['gebruikersnaam']))
{
echo "<div class=\"titel\">Menu</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=home\">Startpagina</a><br />";
echo "<a href=\"index.php?pagina=leden/inloggen\">Log In</a><br />";
echo "<a href=\"index.php?pagina=leden/aanmelden\">Meld je aan!</a><br />";
echo "<a href=\"index.php?pagina=leden/info\">Algemene Voorwaarden</a>";
echo "</div>";
}
else
{
echo "<div class=\"titel\">Menu</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/profiel&id=".$_COOKIE['id']."\"><strong>Welkom ".$_COOKIE['gebruikersnaam']."</strong></a><br />";
echo "<a href=\"index.php?pagina=home\">Startpagina</a><br />";
echo "<a href=\"index.php?pagina=leden/profielwijzigen\">Profiel wijzigen</a><br />";
echo "<a href=\"index.php?pagina=leden/wachtwoord\">Wachtwoord wijzigen</a><br />";
echo "<a href=\"index.php?pagina=leden/avatar\">Avatar wijzigen</a><br />";
echo "<a href=\"index.php?pagina=leden/ledenlijst\">Ledenlijst</a><br />";
echo "<a href=\"index.php?pagina=leden/zoeken\">Zoeken</a><br />";
echo "</div>";
echo "<div class=\"titel\">Acties</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/paardenmarkt\">Paardenmarkt</a><br />";
echo "<a href=\"index.php?pagina=leden/maneges\">Maneges</a><br />";
echo "<a href=\"index.php?pagina=leden/winkel\">Winkel</a><br />";
echo "<a href=\"index.php?pagina=leden/school\">School</a><br />";
echo "<a href=\"index.php?pagina=leden/klusjes\">Klusjes</a><br />";
echo "<a href=\"index.php?pagina=leden/verzorgen\">Verzorgen</a><br />";
echo "</div>";
echo "<div class=\"titel\">Trainen</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/dressuurtrainen\">Dressuur Training</a><br />";
echo "<a href=\"index.php?pagina=leden/springentrainen\">Springen Training</a><br />";
echo "<a href=\"index.php?pagina=leden/snelheidtrainen\">Snelheid Training</a><br />";
echo "<a href=\"index.php?pagina=leden/westerntrainen\">Western Training</a><br />";
echo "</div>";
echo "<div class=\"titel\">Wedstrijden</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/wedstrijden\">Wedstrijden</a><br />";
echo "</div>";
echo "<div class=\"titel\">Info</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/crew\">Crew leden</a><br />";
echo "<a href=\"index.php?pagina=leden/rassen\">Rassen</a><br />";
echo "<a href=\"index.php?pagina=leden/tweets\">Laatste Tweets</a><br />";
echo "</div>";
echo "<div class=\"titel\">Spelletjes</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/raadhetgetal\">Raad het getal</a><br />";
echo "<a href=\"index.php?pagina=leden/allesofniets\">Alles of niets</a><br />";
echo "</div>";
}
echo "</td>";
echo "<td width=\"10\"></td>";
echo "<td valign=\"top\">";
if($_GET['pagina'] == leden){
echo "<div class='titel'>Fout</div><div class='bericht'>Je kunt deze pagina niet bezoeken!</div>";
}
else
{
if(empty($_GET['pagina']))
include("paginas/home.php");
elseif(strstr($_GET['pagina'], "index") || strstr($_GET['pagina'], ".."))
include("paginas/fout.php");
elseif(file_exists("paginas/".$_GET['pagina'].".php"))
include("paginas/".$_GET['pagina'].".php");
elseif(file_exists("paginas/".$_GET['pagina'].""))
include("paginas/".$_GET['pagina']."");
else
include("paginas/fout.php");
}
echo "</td>";
echo "<td width=\"10\"></td>";
echo "<td width=\"200\" valign=\"top\">";
if(!empty($_COOKIE['gebruikersnaam']))
{
$select = "SELECT * FROM leden_gegevens WHERE id = '".$_COOKIE['id']."'";
$query = mysql_query($select)or die(mysql_error());
$account = mysql_fetch_object($query);
echo "<div class=\"titel\"><strong>".$_COOKIE['gebruikersnaam']."</strong></div>";
echo "<div class=\"bericht\">";
$contant = number_format($account->contant);
$bank = number_format($account->bank);
echo "<table bgcolor=\"#FFFFFF\">";
echo "<tr>";
echo "<td width=\"60\"><strong>Contant:</strong></td><td><em>€ ".$contant."</em></td></tr><tr>";
echo "<td width=\"60\"><strong>Bank</strong></td><td><em>€ ".$bank."</em></td></tr><tr>";
echo "<td width=\"60\"><strong>Winstpunten:</strong></td><td><em> ".$account->winstpunten."</em></td></tr><tr>";
$paard1 = mysql_query("SELECT COUNT(*) FROM paarden WHERE uid = '".$_COOKIE['id']."'");
$paard2 = mysql_fetch_row($paard1);
echo "<td width=\"60\"><strong>Paarden</strong></td><td><em>$paard2[0]</em></td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<div class=\"titel\">Eigendommen</div>";
echo "<div class=\"bericht\">";
$select = "SELECT * FROM leden_priveberichten WHERE ontvanger = '".$_COOKIE['id']."' AND gelezen = '0'";
$query = mysql_query($select)or die(mysql_error());
echo "<a href=\"index.php?pagina=leden/priveberichten\">Brievenbus</a> (".mysql_num_rows($query).")<br />";
echo "<a href=\"index.php?pagina=leden/banen\">Jouw baan</a><br />";
echo "<a href=\"index.php?pagina=leden/stal&id=".$_COOKIE['id']."\">Stal</a><br />";
echo "<a href=\"index.php?pagina=leden/bank\">Bank</a><br />";
echo "</div>";
echo "<div class=\"titel\">Banen</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/banen_hoefsmid\">Hoefsmid</a>";
echo "</div>";
echo "<div class=\"titel\">YouHorseFM!</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"http://youhorse.listen2myradio.com\" target=\"_BLANK\">YouHorse Radio</a><br />";
echo "<a href=\"radio/request.php\" target=\"_BLANK\">Request</a><br />";
echo "<a href=\"radio/timetable_public.php\" target=\"_BLANK\">Draairooster</a><br />";
echo "</div>";
echo "<div class=\"titel\">Communicatie</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=forum/forum\">Forum</a><br />";
echo "<a href=\"index.php?pagina=forum/actief\">Actieve topics</a><br />";
echo "<a href=\"index.php?pagina=forum/nieuw\">Nieuwe topics</a><br />";
echo "<a href=\"index.php?pagina=leden/shoutbox\">Shoutbox</a><br />";
echo "</div>";
}
echo "<div class=\"titel\">Online</div>";
echo "<div class=\"bericht\">";
$online1 = mysql_query("SELECT COUNT(*) FROM leden_online");
$online2 = mysql_fetch_row($online1);
echo "<a href=\"index.php?pagina=leden/online\">$online2[0]";
echo " leden online.</a><br />";
echo "</div>";
if(!empty($_COOKIE['gebruikersnaam']))
{
echo "<div class=\"titel\">Uitloggen</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"javascript:beheer('Bent u zeker dat u wilt uitloggen?','index.php?pagina=leden/uitloggen')\">Uitloggen</a><br />";
echo "</div>";
}
$select = "SELECT * FROM leden_gegevens WHERE gebruikersnaam = '".$_COOKIE['gebruikersnaam']."'";
$query = mysql_query($select)or die(mysql_error());
$list = mysql_fetch_object($query);
if($list->status == "SuperModerator")
{
echo "<div class=\"titel\">Hoofd-Moderator</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/nieuwsbrief\">Nieuwsbrief sturen</a><br />";
echo "<a href=\"index.php?pagina=leden/nieuwspost\">Nieuws posten</a><br /><br />";
echo "<a href=\"index.php?pagina=forum/installeren\">Categorieën aanmaken</a><br />";
echo "<a href=\"index.php?pagina=forum/categorieen\">Categorieën beheren</a><br /><br />";
echo "<a href=\"roundcube\" target=\"_blank\">E-mail bekijken</a>";
echo "</div>";
}
if($list->status == "Beheerder")
{
echo "<div class=\"titel\">Admin</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"index.php?pagina=leden/nieuwsbrief\">Nieuwsbrief sturen</a><br />";
echo "<a href=\"index.php?pagina=leden/nieuwspost\">Nieuws posten</a><br /><br />";
echo "<a href=\"index.php?pagina=forum/installeren\">Categorieën aanmaken</a><br />";
echo "<a href=\"index.php?pagina=forum/categorieen\">Categorieën beheren</a><br /><br />";
echo "<a href=\"roundcube\" target=\"_blank\">E-mail bekijken</a>";
echo "</div>";
}
if($list->status == "Moderator")
{
echo "<div class=\"titel\">Admin</div>";
echo "<div class=\"bericht\">";
echo "<a href=\"roundcube\" target=\"_blank\">E-mail bekijken</a>";
echo "</div>";
}
/*
if($list->status == "Lid")
{
echo "<META http-equiv='refresh' content='0; URL=onderhoud.php'>";
}
*/
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<p align=\"center\"><font color=\"#FFFFFF\">YouHorse © Alle rechten voorbehouden - <br />";
/* Zet dit stukje onderaan je pagina
Als je dit niet doet rekent de code de laadtijd
van de pagina verkeerd!
*/
$micro_end = microtime();
$delen = explode(" ", $micro_end);
$precies_end = $delen[0];
$seconden_end = date("U");
$edtm = $precies_end + $seconden_end;
$difference = $edtm - $bgtm;
$difference = round($difference,5); // afronden op 5 getallen achter de komma
echo "<i>Geladen in: <b>".$difference."</b> sec.</i>"; /*verander hier de zin waar in staat wat de laadtijd van de pagina is. Met $difference roep je de laadtijd op.
*/
echo "</font></p></div>";
echo "</body>";
echo "</html>";
ob_end_flush();
?>
Toon Meer