3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* Datei: /login.php * ----------------- * * Anmeldeseite für das Vdb-System. * * Die Logindaten werden mit der BuisinessPoint-Tabelle 'customers' * abgeglichen. Anschließend wird der Tabelle 'customer_to_role' die * Rolle entnommen, die entweder ROLE_ZENTRALE oder * ROLE_IP (Installationspartner) sein muss. Im Falle eines * Installationspartners wird zusätzlich geprüft, ob dieser für das * Teleprofisystem freigeschaltet wurde (autorisiert='ja' in der * TP-Tabelle 'ip'). */ define('NO_LOGIN_NEEDED', 1); require_once(dirname(__FILE__) . '/sysconf.inc.php'); require(get_code_file(dirname(__FILE__) . '/pizza.inc.php')); global $controller, $db_global; // Status prüfen; wenn das System auf "Wartung" steht, dann ist keine Anmeldung möglich!! $wartung = $db_global->select_value('select system_in_wartung from ' . $db_global->table_name('global_system')); if($wartung == "ja") { $html->output_begin(PROJECT_NAME); ?> <div id="background"> </div> <div id="wartung"> <span id="wartungsmeldung"> <br /> <br /> Derzeit werden Wartungs- und Updatearbeiten durchgeführt.<br /> <br /> Der Wochenplan ist daher zur Zeit nicht erreichbar. </span> </div> <?php $html->output_end(); exit; } // -- Vorbereiten des Anmeldeformulars ---------------------------------------- $module_formular =& $controller->load_module('Formular'); $form =& $module_formular->new_form(); $form->set_target('_top'); $form->set_css_class('login'); $f_user =& $form->add_text('user', 'Benutzer'); $f_user->set_css_class('formBig'); $f_password =& $form->add_password('password', 'Passwort'); $f_password->set_css_class('formBig'); $f_submit =& $form->add_submit('submit', 'Anmelden'); //$f_submit->set_image(WS_ROOT . '/images/search_button_submit.gif'); // -- Überprüfen der eingegebenen Logindaten ---------------------------------- $login_failed = false; if ($f_submit->contains_data($_REQUEST)) { require_once(get_code_file(INCLUDES . '/password_funcs.php')); $controller->load_module('Authenticator'); $form->fill(&$_REQUEST); $login_info =& $module_authenticator->authenticate_user_password($f_user->get_value(), $f_password->get_value()); if ($login_info) { // Login erfolgreich, Rollen prüfen $user_row = $db->table_select_row('user', 'login="' . mysql_escape_string($f_user->get_value()) . '"', '*'); if ($user_row['startseite'] != "Nachrichten") { if ($user_row['startseite'] == "Kalender") { $_SESSION['s_login_redirect'] = array('self' => get_code_file('/kalender/kal-list.php'), 'get' => $_GET); } else if ($user_row['startseite'] == "Planung") { $_SESSION['s_login_redirect'] = array('self' => get_code_file('/kalender/planung-list.php'), 'get' => $_GET); } } } if (isset($login_info) and $login_info) { $controller->login(&$user_row); } if (!$login_failed) { $login_failed = 'Ungültiges Passwort'; } } // -- Ausgabe ----------------------------------------------------------------- $html->add_body_param('onload', 'javascript:document.forms[0].user.focus();'); $html->add_body_param('class', 'loginform'); $html->output_begin(PROJECT_NAME); ?> <!--<script type="text/javascript">--> <!-- $(function() {--> <!-- $.post('http://testneu.wochenplan.eu/page_defs.php', {width: screen.width, height: screen.height}, function(json) {--> <!-- if(json.outcome == 'success') {--> <!-- } else {--> <!-- alert('Bildschirmeinstellung kann nicht ermittelt werden!');--> <!-- }--> <!-- },'json');--> <!-- });--> <!--</script>--> <div class="container"> <div class="logoarea"> <img id="testlogo" src="<?php echo $controller->get_logo(); ?>" border="0"/> </div> <!-- <div id="welcome">Willkommen auf <b>wochenplan.eu</b></div>--> <!-- <div id="welcome">Willkommen auf <b>--><?php //echo $_SERVER["HTTP_HOST"]; ?><!--</b></div>--> <!-- _SERVER["HTTP_HOST"]--> <?php if ($login_failed) { ?> <?php } ?> <?php $form->output_begin(); ?> <fieldset> <legend>Anmelden</legend> <div class="item"><label for="user">Benutzer:</label><?php $f_user->output(); ?></div><div style="clear: both;"></div> <!-- <div class="item">--><?php //$f_user->output(); ?><!--</div><div style="clear: both;"></div>--> <div class="item"><label for="password">Kennwort:</label><?php $f_password->output(); ?></div> <!-- <div class="item"><?php $f_password->output(); ?></div>--> </fieldset> <fieldset class="tblFooters"> <?php $f_submit->output(); ?> </fieldset> <?php $form->output_end(); ?> <fieldset> <div class="passwort-vergessen"> Du hast Dein Kennwort vergessen?<br/> Kein Problem, <a href="<?php echo get_code_file('newpass.php'); ?>">klicke hier</a>, um ein neues anzufordern! </div> </fieldset> </div> <!-- zum Schalten der Logos --> <?php if ($_SERVER['HTTP_HOST'] == "testneu.wochenplan.eu") { ?> <br/> <select onchange="changeLogo(this.value);"> <option value="testneu.png" selected>Test</option> <option value="PFWallen.jpg">PF Wallenhorst</option> <option value="Alfsee Logo.png">Alfsee</option> <option value="logo_blue_bay.png">Blue Bay</option> </select> <script type="text/javascript"> <!-- function changeLogo(file) { testlogo.src = "http://testneu.wochenplan.eu/logos/" + file; } // --> </script> <?php } ?> <?php $html->output_end(); //echo phpinfo(); ?>
based on Tiu2S
Output for 5.4.0 - 5.4.32
Fatal error: Call-time pass-by-reference has been removed in /in/ilNij on line 68
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/ilNij on line 68 Deprecated: Call-time pass-by-reference has been deprecated in /in/ilNij on line 85 Warning: require_once(/in/sysconf.inc.php): failed to open stream: No such file or directory in /in/ilNij on line 18 Fatal error: require_once(): Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18
Process exited with code 255.
Output for 5.2.7 - 5.2.17
Warning: Call-time pass-by-reference has been deprecated in /in/ilNij on line 68 Warning: Call-time pass-by-reference has been deprecated in /in/ilNij on line 85 Warning: require_once(/in/sysconf.inc.php): failed to open stream: No such file or directory in /in/ilNij on line 18 Fatal error: require_once(): Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18
Process exited with code 255.
Output for 5.2.5 - 5.2.6
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /in/ilNij on line 68 Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /in/ilNij on line 85 Warning: require_once(/in/sysconf.inc.php): failed to open stream: No such file or directory in /in/ilNij on line 18 Fatal error: require_once(): Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18
Process exited with code 255.
Output for 5.2.1 - 5.2.4
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /in/ilNij on line 68 Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /in/ilNij on line 85 Warning: require_once(/in/sysconf.inc.php): failed to open stream: No such file or directory in /in/ilNij on line 18 Fatal error: require_once(): Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18
Process exited with code 255.
Output for 5.1.0 - 5.2.0
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /in/ilNij on line 68 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /in/ilNij on line 85 Warning: require_once(/in/sysconf.inc.php): failed to open stream: No such file or directory in /in/ilNij on line 18 Fatal error: require_once(): Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /in/ilNij on line 68 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /in/ilNij on line 85 Warning: main(/in/sysconf.inc.php): failed to open stream: No such file or directory in /in/ilNij on line 18 Fatal error: main(): Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /in/ilNij on line 68 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /in/ilNij on line 85 Warning: main(/in/sysconf.inc.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/ilNij on line 18 Fatal error: main() [http://www.php.net/function.main]: Failed opening required '/in/sysconf.inc.php' (include_path='.:') in /in/ilNij on line 18