@ 2014-09-24T10:51:33Z <?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();
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.32 0.007 0.051 12.49 5.4.31 0.007 0.052 12.48 5.4.30 0.007 0.039 12.48 5.4.29 0.007 0.040 12.48 5.4.28 0.006 0.037 12.38 5.4.27 0.010 0.033 12.38 5.4.26 0.007 0.038 12.38 5.4.25 0.008 0.039 12.38 5.4.24 0.007 0.038 12.38 5.4.23 0.008 0.040 12.37 5.4.22 0.009 0.039 12.37 5.4.21 0.009 0.039 12.37 5.4.20 0.012 0.042 12.37 5.4.19 0.008 0.034 12.37 5.4.18 0.011 0.038 12.36 5.4.17 0.010 0.035 12.38 5.4.16 0.006 0.040 12.38 5.4.15 0.005 0.040 12.37 5.4.14 0.007 0.040 12.05 5.4.13 0.013 0.036 12.04 5.4.12 0.008 0.038 12.00 5.4.11 0.006 0.037 12.00 5.4.10 0.006 0.042 12.00 5.4.9 0.004 0.039 12.00 5.4.8 0.007 0.036 12.00 5.4.7 0.007 0.036 11.99 5.4.6 0.007 0.042 11.99 5.4.5 0.005 0.035 11.99 5.4.4 0.007 0.037 11.98 5.4.3 0.008 0.035 11.98 5.4.2 0.005 0.037 11.97 5.4.1 0.005 0.036 11.98 5.4.0 0.003 0.039 11.47 5.3.29 0.009 0.042 12.80 5.3.28 0.007 0.046 12.71 5.3.27 0.007 0.045 12.72 5.3.26 0.010 0.044 12.72 5.3.25 0.008 0.038 12.72 5.3.24 0.007 0.037 12.72 5.3.23 0.006 0.037 12.71 5.3.22 0.010 0.039 12.68 5.3.21 0.009 0.036 12.68 5.3.20 0.004 0.038 12.68 5.3.19 0.006 0.038 12.68 5.3.18 0.011 0.032 12.67 5.3.17 0.002 0.040 12.67 5.3.16 0.008 0.038 12.68 5.3.15 0.008 0.037 12.67 5.3.14 0.009 0.043 12.66 5.3.13 0.010 0.038 12.66 5.3.12 0.008 0.041 12.66 5.3.11 0.005 0.045 12.66 5.3.10 0.009 0.043 12.12 5.3.9 0.007 0.041 12.10 5.3.8 0.007 0.036 12.09 5.3.7 0.011 0.037 12.09 5.3.6 0.012 0.033 12.07 5.3.5 0.009 0.042 12.02 5.3.4 0.013 0.042 12.03 5.3.3 0.006 0.041 11.98 5.3.2 0.009 0.038 11.77 5.3.1 0.013 0.045 11.73 5.3.0 0.011 0.031 11.71 5.2.17 0.004 0.035 9.23 5.2.16 0.009 0.038 9.23 5.2.15 0.007 0.029 9.23 5.2.14 0.005 0.030 9.23 5.2.13 0.005 0.029 9.19 5.2.12 0.006 0.027 9.18 5.2.11 0.005 0.029 9.19 5.2.10 0.007 0.031 9.18 5.2.9 0.010 0.025 9.19 5.2.8 0.004 0.033 9.18 5.2.7 0.006 0.031 9.18 5.2.6 0.006 0.034 9.14 5.2.5 0.009 0.032 9.11 5.2.4 0.007 0.034 9.09 5.2.3 0.006 0.036 9.06 5.2.2 0.005 0.036 9.05 5.2.1 0.006 0.030 8.97 5.2.0 0.008 0.027 8.84 5.1.6 0.004 0.030 8.12 5.1.5 0.005 0.026 8.11 5.1.4 0.005 0.030 8.10 5.1.3 0.008 0.025 8.45 5.1.2 0.007 0.027 8.47 5.1.1 0.007 0.033 8.20 5.1.0 0.004 0.029 8.19 5.0.5 0.007 0.023 6.71 5.0.4 0.006 0.022 6.57 5.0.3 0.002 0.033 6.38 5.0.2 0.002 0.021 6.35 5.0.1 0.007 0.023 6.33 5.0.0 0.005 0.033 6.32 4.4.9 0.005 0.014 4.78 4.4.8 0.003 0.015 4.75 4.4.7 0.002 0.022 4.75 4.4.6 0.005 0.020 4.75 4.4.5 0.003 0.023 4.77 4.4.4 0.004 0.028 4.71 4.4.3 0.007 0.012 4.76 4.4.2 0.003 0.023 4.84 4.4.1 0.008 0.025 4.85 4.4.0 0.003 0.026 4.76 4.3.11 0.002 0.022 4.67 4.3.10 0.003 0.022 4.66 4.3.9 0.003 0.023 4.64 4.3.8 0.004 0.023 4.61 4.3.7 0.005 0.013 4.63 4.3.6 0.004 0.018 4.63 4.3.5 0.006 0.014 4.62 4.3.4 0.004 0.024 4.57 4.3.3 0.004 0.014 3.37 4.3.2 0.001 0.020 3.35 4.3.1 0.002 0.024 3.31 4.3.0 0.017 0.020 14.28
preferences:dark mode live preview
144.61 ms | 1386 KiB | 7 Q