3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start("ob_gzhandler"); session_start(); $cache_on_off = 1; //Cachen an oder aus 1=on/ 0=off $out_time_files = 24; //Verfallsdatum der gecachten HTML-Dateien in Stunden $out_time_news = 12; //Zeit in Stunden bis ein News-cachefile erneuert wird $main_path = ($_SERVER['PHP_SELF']);//echo $main_path; //Pfad incl. Dateiname zBsp.(/helipeter/index.php) $cache_path = "de/cache/"; @include "includes/languages/de.php"; $text_language = "de"; if (is_array($_SESSION) && array_key_exists('time', $_SESSION)) { $g_zeit = 60*55; //55 Minuten, dann neu einloggen, nur für nicht bezahlte Tester //echo "Probezugang"; if (time() - $_SESSION['time'] > $g_zeit) { //echo "Probe/ Test\n"; header('Location: login.html'); $_SESSION = array(); // Falls die Session gelöscht werden soll, löschen Sie auch das // Session-Cookie. // Achtung: Damit wird die Session gelöscht, nicht nur die Session-Daten! if (ini_get("session.use_cookies")) { $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]); } // Zum Schluß, löschen der Session. session_destroy(); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <!--sphider_noindex--> <? /* Includes */ include('expand/config.inc.php'); // Included die Config für Loginsystem include('expand/functions.inc.php'); // Included die Funktionsdatei mit den ganzen Funktionen für Loginsystem include('expand/run.inc.php'); // Included die Run-Datei mit welcher die Funktionen ausgeführt werden nach bestimmten Bedingungen für Loginsystem include("funktionen/funktionen.php"); // Included die Config für den Rest der Seite $stoerung_text = (mainout('stoerung_text')); $begriffe = array(); if (isset ($_REQUEST['section'])){ $section = ($_REQUEST['section']); } if ($section == "welcome"){ header("Location: http://www.heli-planet.de"); } $o = ""; $s = ""; $s = array(); if (logon()) { $pl = userout('rank'); }else{ if(is_crawler()){ $pl = '3'; }else{ $pl = '0'; } } // NUR für nicht eingeloggte User aufrufbar ######## if(!logon()){ if(mainout('regist') == 1){ $s[] = 'regist'; } if(mainout('pwv') == 1){ $s[] = 'pwv'; } $s[] = 'login'; } // Für alle Nutzer die Dateien entsprechend dem Permission Level aufrufbar machen ############# $sql = ("SELECT dateien FROM 1_hp WHERE perm_level <= '$pl'"); $result = mysqli_query ($mysqli, $sql); while ($array_result = mysqli_fetch_array($result)) { $s[] = $array_result['dateien']; } // ############################################## // section ermitteln ########################### if(isset($_GET['section'])) { $section =($_GET['section']); }else{ $section = "welcome"; } $dateiname = "cache-".$section.".htm"; // Cache Name vergeben // ################################################## // Eingeloggt und MBZAHLUNG als seite gespeichert, dann if(logon()) { if (($sel=="mbzahlung")or($sel=="mbzahlung_vorab")){ $section = "profil"; $o = "profil"; } if ($sel == 'freetime'){ $section = 'schon_eingeloggt'; } if ($section == 'login'){ $section = 'schon_eingeloggt'; } } // ################################################## $sql = "SELECT * FROM 1_hp WHERE dateien = '$section'"; $result = mysqli_query($mysqli, $sql); $row = mysqli_fetch_assoc($result); $pdes = $row['description']; $pkey = $row['keywords']; $path = $row['path']; //Dateipfad $dateien = $row['dateien']; //Section $titel = $row['titel']; $description = $row['description']; $keywords = $row['keywords']; ?> <!--/sphider_noindex--> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="Author" content="Webdesign Peter Henning. Alle Rechte vorbehalten"/> <meta name="description" content="<? if ($pdes !="") {echo $pdes;} else {echo "Modellhelikopter, Hubschrauber, heli, Modellflugschule, Flugschule, RC Helikopter";} ?>"/> <meta name="keywords" content="<? if ($pkey !="") {echo $pkey;} else {echo "Heli, Helikopter, Copter, Hubschrauber, Flugschule, ferngesteuert, fliegen lernen, RC Heli kaufen,";}?>"/> <!--sphider_noindex--> <meta name="Publisher" content="Peter Henning"/> <meta name="Copyright" content="Peter Henning"/> <meta name="Page-topic" content="RC, Modellbau, Hubschrauber, Helikopter, Helikopter fliegen, Helicopter, Flugschule, Service"/> <meta name="Audience" content="Alle"/> <meta name="Content-language" content="DE"/> <meta name="robots" content="index,follow"/> <meta name="revisit-after" content="5 days"/> <meta name="expires" content="5 days"/> <link rel="icon" href="/favicon.ico"/> <!-- Desktop Icons für Apple definieren --> <link rel="apple-touch-icon" href="images/icons/touch-icon-iphone.png"> <link rel="apple-touch-icon" sizes="76x76" href="images/icons/touch-icon-ipad.png"> <link rel="apple-touch-icon" sizes="120x120" href="images/icons/touch-icon-iphone-retina.png"> <link rel="apple-touch-icon" sizes="152x152" href="images/icons/touch-icon-ipad-retina.png"> <!--/sphider_noindex--> <title><? echo $titel." ".userout('username');?></title> <!--sphider_noindex--> <!-- Bootstrap core CSS --> <link href="css/bootstrap.css" rel="stylesheet"/> <!-- Custom styles for this template --> <link href="css/offcanvas.css" rel="stylesheet"/> <!-- Bootstrap min CSS --> <!--<link href="http://www.heli-planet.de/css/bootstrap.min.css" rel="stylesheet">--> <!-- Back to top Stylesheet --> <!-- <link href="http://www.heli-planet.de/css/back_to_top_style.css" rel="stylesheet"/> //eingefügt in offcanvas.css ####--> <!-- Loginsystem CSS --> <!-- <link href="http://www.heli-planet.de/css/loginsystem.css" rel="stylesheet"/>--> <!-- Social CSS --> <!-- <link href="http://www.heli-planet.de/css/social.css" rel="stylesheet"/> --> <!--<link href="http://www.heli-planet.de/suchen/include/js_suggest/SuggestFramework.css" rel="stylesheet" type="text/css"/>--> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent --> <script type="text/javascript"> window.cookieconsent_options = {"message":"Diese Website verwendet Cookies, um die Dienste ständig zu verbessern und bestimmte Features zu ermöglichen. Indem Sie hier fortfahren, stimmen Sie dieser Verwendung zu. <br> This website uses cookies to ensure you get the best experience on our website","dismiss":"OK!","learnMore":"Info","link":"http://www.heli-planet.de/coockiconsent.html","theme":"dark-floating"}; </script> <!-- End Cookie Consent plugin --> </head> <? require "funktionen/funktionen.php"; require "funktionen/begriffe.php"; ?> <body> <!-- child of the body tag --> <p id="top-link-block" class="hidden"> <a href="#top" class="btn btn-primary" onclick="$('html,body').animate({scrollTop:0},'slow');return false;"> <i class="fa fa-chevron-up"></i><br/> Back to Top </a> </p> <? require "includes/navigation_top.php"; ?> <!--/sphider_noindex--> <div class="container"> <div class="row row-offcanvas row-offcanvas-right"> <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar"> <!--sphider_noindex--> <? require "includes/navigation_main.php"; ?> </div> <div class="container"> <div class="col-xs-12 col-sm-9"> <p class="pull-right visible-xs"> <button type="button" class="btn btn-primary btn-sm" data-toggle="offcanvas"><i class="fa fa-angle-left"></i> Menü <i class="fa fa-angle-right"></i></button> </p> <div class="row"> <div class="page-header" > <h1> <!--/sphider_noindex--> <? echo $titel;?> <!--sphider_noindex--> </h1> <? if (mainout('stoerung') == "1"){ if (mainout('stoerung_color') == "0"){ echo "<p class = \"alert alert-success\">"; }else{ if (mainout('stoerung_color') == "1"){ echo "<p class = \"alert alert-warning\">"; }else{ if (mainout('stoerung_color') == "2"){ echo "<p class = \"alert alert-danger\">"; } } } echo $stoerung_text."</p>"; } ?> </div> <? include "social/teilen.php"; ?> <div class="col-xs-12"> <? echo $last_next_mnl?> </div> <div class="col-xs-12"> <? echo $error; include "includes/google_add/google_2.php";?> <br /> </div> </div> <!--/sphider_noindex--> <!-- BOF Include der Dateien--> <? if (file_exists($path)) { if(in_array($section, $s)){ include $path; }else{ $forbidden = dbout('path','dateien','forbidden', 'hp'); include $forbidden; } } if (!file_exists($path)) { $incl = dbout('path','dateien','404', 'hp'); include $incl; } ?> <!--sphider_noindex--> <? // include "includes/google_add/google_2.php";?> </div> <!--/.sidebar-offcanvas--> </div> <!--/.row--> </div> <hr> <footer> <p> <i class="fa fa-copyright"></i> Peter Henning - Heli-Planet.de - Modellbau und Flugschule - 2011-2015</p> </footer> </div> <!--/.container--> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- <script type="text/javascript" src="http://www.heli-planet.de/js/jquery.min.js"></script>--> <!--<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>--> <!--<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>--> <!-- <script type="text/javascript" src="http://www.heli-planet.de/dist/js/bootstrap.min.js"></script>--> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <!-- <script type="text/javascript" src="http://www.heli-planet.de/docs/assets/js/ie10-viewport-bug-workaround.js"></script>--> <script type="text/javascript" src="http://www.heli-planet.de/js/custom.js"></script> <!-- <script type="text/javascript" src="http://www.heli-planet.de/suchen/include/js_suggest/SuggestFramework.js"></script>--> <script type="text/javascript">window.onload = initializeSuggestFramework; </script> </body> </html> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
Output for 7.0.0 - 7.2.0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <!--sphider_noindex--> Warning: include(expand/config.inc.php): failed to open stream: No such file or directory in /in/essYS on line 45 Warning: include(): Failed opening 'expand/config.inc.php' for inclusion (include_path='.:') in /in/essYS on line 45 Warning: include(expand/functions.inc.php): failed to open stream: No such file or directory in /in/essYS on line 46 Warning: include(): Failed opening 'expand/functions.inc.php' for inclusion (include_path='.:') in /in/essYS on line 46 Warning: include(expand/run.inc.php): failed to open stream: No such file or directory in /in/essYS on line 47 Warning: include(): Failed opening 'expand/run.inc.php' for inclusion (include_path='.:') in /in/essYS on line 47 Warning: include(funktionen/funktionen.php): failed to open stream: No such file or directory in /in/essYS on line 48 Warning: include(): Failed opening 'funktionen/funktionen.php' for inclusion (include_path='.:') in /in/essYS on line 48 Fatal error: Uncaught Error: Call to undefined function mainout() in /in/essYS:49 Stack trace: #0 {main} thrown in /in/essYS on line 49
Process exited with code 255.
Output for 5.5.0 - 5.6.28
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <!--sphider_noindex--> Warning: include(expand/config.inc.php): failed to open stream: No such file or directory in /in/essYS on line 45 Warning: include(): Failed opening 'expand/config.inc.php' for inclusion (include_path='.:') in /in/essYS on line 45 Warning: include(expand/functions.inc.php): failed to open stream: No such file or directory in /in/essYS on line 46 Warning: include(): Failed opening 'expand/functions.inc.php' for inclusion (include_path='.:') in /in/essYS on line 46 Warning: include(expand/run.inc.php): failed to open stream: No such file or directory in /in/essYS on line 47 Warning: include(): Failed opening 'expand/run.inc.php' for inclusion (include_path='.:') in /in/essYS on line 47 Warning: include(funktionen/funktionen.php): failed to open stream: No such file or directory in /in/essYS on line 48 Warning: include(): Failed opening 'funktionen/funktionen.php' for inclusion (include_path='.:') in /in/essYS on line 48 Fatal error: Call to undefined function mainout() in /in/essYS on line 49
Process exited with code 255.