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 ""; } // 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 ""; }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 @@ +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) { +?> + +tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> + + + + + + + + type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"> +> + + + type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"> +> + + type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"> +> + + + type="text/javascript"> + $(document).ready(function() { + $(".box").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'type' : 'iframe' + }); + }); + +> + + + + + + + + + + +
+   + +
+
+
tpl_vars['index_titel']->value;?> +
+
+
+
+

+ tpl_vars['index_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['index_error_text']->value;?> + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['index_field_user']->value;?> + + +
+ tpl_vars['index_field_pass']->value;?> + + +
+   +
+   + + +
+
+

+ tpl_vars['index_register']->value;?> + +
+
+ Registrierung +

+
+
+ + +
+
+   +
+ + + + + +tpl_vars['action']->value == 'anmeld') {?> + tpl_vars['index_login']->value == '1') {?> + +