From 62eaad823a6e50cf0d4f3d1d6222fac65abc932b Mon Sep 17 00:00:00 2001 From: aschwarz <a.schwarz@polizei.bwl.de> Date: Fri, 14 Apr 2023 11:57:16 +0200 Subject: [PATCH] Kleine Fehlerkorrekturen --- index_db.php | 18 +- ...1a0c3a419a6f76819_0.file.index_db.html.php | 177 ++++++++++++++++++ 2 files changed, 186 insertions(+), 9 deletions(-) create mode 100644 templates_c/1a99d7f21bce3d3e677be661a0c3a419a6f76819_0.file.index_db.html.php diff --git a/index_db.php b/index_db.php index b741a24..2124de4 100755 --- a/index_db.php +++ b/index_db.php @@ -13,9 +13,9 @@ require_once "language/german.inc.php"; $action = $_GET['action']; if($action == ''){ - if(isset($_GET[error])){ + if(isset($_GET['error'])){ - $errorno = $_GET[error]; + $errorno = $_GET['error']; $smarty->assign('index_error', 1); @@ -69,23 +69,23 @@ if($action == 'anmeld'){ - if ($username != strtoupper($row[uid])) { + if ($username != strtoupper($row['uid'])) { echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF']."?error=2\">"; } // Passwort falsch - elseif (md5($password) != $row[passwort]){ //verschlüsseltes Passwort überprüfen + elseif (md5($password) != $row['passwort']){ //verschlüsseltes Passwort überprüfen # Cookies werden bereits gesetzt, falls sich jemand ein passwort zusenden lässt. - $_SESSION["global_uid"] = $row[imtuid]; - $_SESSION["global_username"] = $row[uid]; + $_SESSION["global_uid"] = $row['imtuid']; + $_SESSION["global_username"] = $row['uid']; echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF']."?error=3\">"; }else{ $db = dbconnect(); $datum=date("Y-m-d H:i:s"); $ip=getenv("REMOTE_ADDR"); $agent=getenv("HTTP_USER_AGENT"); - $user_admin = $row[imtuid]; + $user_admin = $row['imtuid']; $_SESSION["global_uid"] = $user_admin; - $_SESSION["global_username"] = $row[uid]; + $_SESSION["global_username"] = $row['uid']; $result_1 = $db->query("INSERT INTO imt_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); $sql = $db->query ("UPDATE imt_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE imtuid='$user_admin'"); $smarty->assign('index_login', "1"); @@ -98,4 +98,4 @@ if($action == 'anmeld'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/templates_c/1a99d7f21bce3d3e677be661a0c3a419a6f76819_0.file.index_db.html.php b/templates_c/1a99d7f21bce3d3e677be661a0c3a419a6f76819_0.file.index_db.html.php new file mode 100644 index 0000000..70109e3 --- /dev/null +++ b/templates_c/1a99d7f21bce3d3e677be661a0c3a419a6f76819_0.file.index_db.html.php @@ -0,0 +1,177 @@ +<?php +/* Smarty version 3.1.29, created on 2023-03-21 10:04:27 + from "/srv/www/htdocs-hvf/kurs/ideenmanagement/templates/login/index_db.html" */ + +if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_6419731bdf0bc2_54272167', + 'file_dependency' => + array ( + '1a99d7f21bce3d3e677be661a0c3a419a6f76819' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/ideenmanagement/templates/login/index_db.html', + 1 => 1558945367, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6419731bdf0bc2_54272167 ($_smarty_tpl) { +?> +<!-- index gegen DB --> +<?php if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + <html> + <head> + <title><?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> +</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <link rel="stylesheet" href="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?> +/css/styles_login.css" type="text/css"> + <style> + .squarebutton_blue{ + width:100px; + } + </style> + + <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" /> + <?php echo '<script'; ?> + type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"><?php echo '</script'; ?> +> + <!-- DATEI GIBTS NICHT <?php echo '<script'; ?> +>!window.jQuery && document.write('<?php echo '<script'; ?> + src="jquery-1.4.3.min.js"><\/script>');<?php echo '</script'; ?> +>--> + <?php echo '<script'; ?> + type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"><?php echo '</script'; ?> +> + <?php echo '<script'; ?> + type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"><?php echo '</script'; ?> +> + + <?php echo '<script'; ?> + type="text/javascript"> + $(document).ready(function() { + $(".box").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'type' : 'iframe' + }); + }); + <?php echo '</script'; ?> +> + + </head> + <body onload="if(document.login)document.login.user.focus();return false;"> + + <table height="100%" width="100%"> + <tr> + <td width="20%"> + + </td> + <td width="60%"> + <div class="Header"> + <div> + <div align="center"><?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> +</div> + </div> + </div> + <div class="pat_list_box"> + <p> + <?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?> + <table width="70%" class="errorTable" align="center"> + <tr> + <td> + <img src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?> +/images/pflichtfelder/achtung_gross.gif"> + </td> + <td><b>Achtung!</b><br> + <?php echo $_smarty_tpl->tpl_vars['index_error_text']->value;?> + + </td> + </tr> + </table> + <br /> + <?php }?> + <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0" width="96%" > + <tr> + <td width="200px" align="center" valign="middle"> + <img style="margin:10px;padding:10px;"src="templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?> +/images/message_login.gif"> + </td> + <td align="left"> + <table width="100%"> + <form action=?action=anmeld method="POST" name="login"> + <tr> + <td width="40%"> + <strong><?php echo $_smarty_tpl->tpl_vars['index_field_user']->value;?> +</strong> + </td> + <td> + <input class="eingabe" type="text" name="user" value="<?php echo $_smarty_tpl->tpl_vars['index_user']->value;?> +" tabindex="1"></td> + </td> + </tr> + <tr> + <td width="40%"> + <strong><?php echo $_smarty_tpl->tpl_vars['index_field_pass']->value;?> +</strong> + </td> + <td> + <input class="eingabe" type="password" name="password" tabindex="2"></td> + </td> + </tr> + + <tr> + <td width="100%" colspan="2" align="center"> + + </td> + </tr> + + <tr> + <td width="40%"> + + </td> + <td> + <input type="submit" value="Login"> + </td> + </tr> + </table> + </td> + </tr> + </table> + <p align="center"> + <?php echo $_smarty_tpl->tpl_vars['index_register']->value;?> + + <br /> + <br /> + <a class="squarebutton_blue box" href="register.php"><span>Registrierung</span></a> + </p> + <br /> + <br /> + + + </div> + </td> + <td width="20%"> + + </td> + </tr> + </table> + </form> + </body> + </html> +<?php }?> + +<?php if ($_smarty_tpl->tpl_vars['action']->value == 'anmeld') {?> + <?php if ($_smarty_tpl->tpl_vars['index_login']->value == '1') {?> + <meta http-equiv="refresh" content="0; URL=indexframe.php"> + <?php } +} +} +}