"; */ include_once 'classes/lg-on_Smarty.class.php'; $smarty = new lgon_Smarty(); require_once("config.inc.php"); $templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html"; require_once "language/german.inc.php"; if(isset($_GET['action'])){ $action = $_GET['action']; }else{ $action = ''; } if($action == ''){ $db = dbconnect(); $result = $db->query("SELECT nachname, vorname FROM admin where user=\"$user_admin\""); $row = $result->fetch_array(); $name = "$row[vorname] $row[nachname]"; $smarty->assign('pass_switch_name', "$name"); } if($action == 'wechsel'){ $db = dbconnect(); $result = $db->query("SELECT passwort FROM admin where user=\"$user_admin\""); $row = $result->fetch_array(); if (empty($_POST['pw_alt']) or empty($_POST['pw_neu']) or empty($_POST['pw_wied'])) { $smarty->assign('pass_switch_noinput', "1"); }else{ // Eingaben überpfüfen