@ 2014-09-24T10:49:13Z <?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.008 0.035 12.48 5.4.31 0.009 0.051 12.48 5.4.30 0.010 0.048 12.48 5.4.29 0.006 0.040 12.48 5.4.28 0.004 0.037 12.38 5.4.27 0.003 0.038 12.38 5.4.26 0.011 0.031 12.38 5.4.25 0.006 0.037 12.38 5.4.24 0.010 0.033 12.38 5.4.23 0.008 0.035 12.37 5.4.22 0.011 0.031 12.37 5.4.21 0.010 0.032 12.37 5.4.20 0.008 0.035 12.37 5.4.19 0.010 0.040 12.37 5.4.18 0.004 0.038 12.37 5.4.17 0.007 0.035 12.38 5.4.16 0.005 0.036 12.38 5.4.15 0.008 0.036 12.37 5.4.14 0.006 0.037 12.05 5.4.13 0.004 0.038 12.04 5.4.12 0.008 0.033 12.00 5.4.11 0.003 0.039 12.00 5.4.10 0.004 0.037 11.99 5.4.9 0.007 0.037 12.00 5.4.8 0.005 0.039 12.00 5.4.7 0.004 0.037 11.99 5.4.6 0.005 0.035 11.99 5.4.5 0.009 0.033 11.99 5.4.4 0.005 0.036 11.98 5.4.3 0.006 0.036 11.97 5.4.2 0.005 0.036 11.98 5.4.1 0.009 0.047 11.97 5.4.0 0.011 0.045 11.47 5.3.29 0.010 0.052 12.80 5.3.28 0.009 0.036 12.71 5.3.27 0.008 0.039 12.73 5.3.26 0.006 0.046 12.72 5.3.25 0.006 0.038 12.72 5.3.24 0.009 0.034 12.72 5.3.23 0.007 0.043 12.71 5.3.22 0.006 0.040 12.68 5.3.21 0.004 0.040 12.68 5.3.20 0.004 0.038 12.68 5.3.19 0.008 0.036 12.68 5.3.18 0.005 0.038 12.67 5.3.17 0.007 0.045 12.67 5.3.16 0.006 0.036 12.67 5.3.15 0.008 0.035 12.67 5.3.14 0.010 0.033 12.66 5.3.13 0.004 0.041 12.66 5.3.12 0.005 0.039 12.66 5.3.11 0.008 0.038 12.66 5.3.10 0.011 0.050 12.12 5.3.9 0.007 0.045 12.12 5.3.8 0.006 0.038 12.09 5.3.7 0.006 0.037 12.09 5.3.6 0.009 0.047 12.07 5.3.5 0.005 0.039 12.02 5.3.4 0.009 0.038 12.03 5.3.3 0.009 0.034 11.99 5.3.2 0.009 0.042 11.77 5.3.1 0.009 0.048 11.73 5.3.0 0.006 0.052 11.71 5.2.17 0.004 0.032 9.23 5.2.16 0.007 0.041 9.23 5.2.15 0.004 0.039 9.23 5.2.14 0.005 0.038 9.23 5.2.13 0.007 0.030 9.19 5.2.12 0.003 0.030 9.18 5.2.11 0.006 0.031 9.19 5.2.10 0.004 0.029 9.19 5.2.9 0.004 0.030 9.19 5.2.8 0.003 0.033 9.18 5.2.7 0.009 0.027 9.18 5.2.6 0.007 0.032 9.14 5.2.5 0.008 0.029 9.11 5.2.4 0.012 0.051 9.09 5.2.3 0.003 0.033 9.05 5.2.2 0.008 0.030 9.05 5.2.1 0.004 0.031 8.98 5.2.0 0.009 0.035 8.84 5.1.6 0.004 0.025 8.12 5.1.5 0.003 0.028 8.12 5.1.4 0.004 0.025 8.09 5.1.3 0.006 0.029 8.45 5.1.2 0.008 0.023 8.47 5.1.1 0.007 0.024 8.20 5.1.0 0.003 0.028 8.19 5.0.5 0.005 0.029 6.71 5.0.4 0.008 0.024 6.56 5.0.3 0.002 0.044 6.38 5.0.2 0.007 0.024 6.35 5.0.1 0.006 0.018 6.33 5.0.0 0.009 0.037 6.32 4.4.9 0.003 0.024 4.78 4.4.8 0.008 0.018 4.76 4.4.7 0.003 0.023 4.75 4.4.6 0.002 0.023 4.76 4.4.5 0.005 0.014 4.77 4.4.4 0.004 0.033 4.71 4.4.3 0.003 0.022 4.75 4.4.2 0.006 0.020 4.84 4.4.1 0.005 0.021 4.85 4.4.0 0.001 0.027 4.76 4.3.11 0.006 0.014 4.67 4.3.10 0.004 0.014 4.67 4.3.9 0.002 0.016 4.63 4.3.8 0.002 0.025 4.61 4.3.7 0.007 0.011 4.63 4.3.6 0.005 0.021 4.63 4.3.5 0.002 0.017 4.63 4.3.4 0.006 0.022 4.57 4.3.3 0.001 0.018 3.37 4.3.2 0.000 0.018 3.35 4.3.1 0.003 0.017 3.31 4.3.0 0.007 0.013 14.28
preferences:dark mode live preview
142.64 ms | 1394 KiB | 7 Q