Hallo Leute,
hab irgendwas im PHP Script zerstört könnt ihr mir bei folgendem Fehler helfen ???
Parse error: syntax error, unexpected '<' in /mnt/web1/31/13/5969713/htdocs/index.php on line 67
hab irgendwas im PHP Script zerstört könnt ihr mir bei folgendem Fehler helfen ???
Parse error: syntax error, unexpected '<' in /mnt/web1/31/13/5969713/htdocs/index.php on line 67
Code:
<?php error_reporting(0); include "passwort.php"; session_name("elektrofuechse"); session_start(); if($_GET['do'] == "login" && $_POST['username'] == $username && $_POST['passwort'] == $passwort) { $_SESSION['loged'] = true; // session wirklich schreiben session_commit(); // 1sec warten, damit session auch wirklich geschrieben ist sleep(1); } if($_GET['do'] == "login" && $_POST['passwort'] == $passwortwebcam) { $_SESSION['webcam'] = true; // session wirklich schreiben session_commit(); // 1sec warten, damit session auch wirklich geschrieben ist sleep(1); } if($_GET['do'] == "logout" && $_SESSION['loged'] == true) { // nur fuer den fall... $_SESSION['loged'] = false; session_destroy(); } echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"; echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; echo ' <html> <head> <title>elektrofuechse.de</title> <link rel="stylesheet" href="css_lightbox/lightbox.css" type="text/css" media="screen" /> <link rel="stylesheet" type="text/css" href="style.css" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script>'; ?> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20288258-1']); _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> <?php <div style="width:893px;margin:0px auto;text-align:left;background-color:#FFF;border-left:1px solid #8E8B6E;border-right:1px solid #A5A393;">'; echo ' <div id="header" style="'; if($_GET['action'] == "Antennen") {echo 'background-image: url(gfx/elektrofuechse-header-antennen.jpg);';} if($_GET['action'] == "Blitzschutz") {echo 'background-image: url(gfx/elektrofuechse-header-blitzschutz.jpg);';} if($_GET['action'] == "Beleuchtung") {echo 'background-image: url(gfx/elektrofuechse-header-beleuchtung.jpg);';} if($_GET['action'] == "Solar") {echo 'background-image: url(gfx/elektrofuechse-header-solar.jpg);';} if($_GET['action'] == "Heizung") {echo 'background-image: url(gfx/elektrofuechse-header-heizung.jpg);';} if($_GET['action'] == "Schranken") {echo 'background-image: url(gfx/elektrofuechse-header-schranken.jpg);';} if($_GET['action'] == "Zutrittskontrolle") {echo 'background-image: url(gfx/elektrofuechse-header-zutritt.jpg);';} if($_GET['action'] == "Biologisches_Bauen") {echo 'background-image: url(gfx/elektrofuechse-header-bio.jpg);';} echo '"> </div>'; echo ' <div id="mainbody" style="'; if($_GET['action'] == "Solar") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-solar.jpg);';} if($_GET['action'] == "Biologisches_Bauen") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-biologisch.jpg);';} if($_GET['action'] == "Heizung") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-heizung.jpg);';} if($_GET['action'] == "Zutrittskontrolle") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-zutritt.jpg);';} if($_GET['action'] == "Schranken") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-schranken.jpg);';} if($_GET['action'] == "Beleuchtung") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-beleuchtung.jpg);';} if($_GET['action'] == "Blitzschutz") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-blitzschutz.jpg);';} if($_GET['action'] == "Antennen") {echo 'background-image: url(gfx/elektrofuechse-navigation-background-antennen.jpg);';} echo '"> <div id="navigation">'; include "navigation.php"; echo ' </div> <div id="content">'; include('content.php'); echo' </div> </div> </div> '; echo '</div> <br style="clear:left;"> '; echo '</body>'; echo '</html>'; ?>
Kommentar