[Help] Code

Dante

New Member
Joined
Feb 3, 2009
Messages
1,261
Reaction score
178
Значи тука имам 1 грешка която я дава една системка за цс:
PHP:
execute("UPDATE espcms_zugriff_user SET lang = '".$lang."' WHERE userID = '".$_SESSION['id']."'"); } } else { if(login($_POST['username'],$_POST['password'],2,1) == false) { // Wenn $_COOKIE['login_cookie'] gesetzt ist dann loesche Cookie if(isset($_COOKIE['login_cookie'])) setcookie("login_cookie",0,time()-3600); // Loesche SESSION['success'] unset($_SESSION['success']); unset($_SESSION['login']); unset($_SESSION['id']); } else { switch($_POST['language']) { case "de": $lang = "de"; break; case "en": $lang = "en"; break; default: $lang = "de"; } $db->execute("UPDATE espcms_zugriff_user SET lang = '".$lang."' WHERE userID = '".$_SESSION['id']."'"); } } last_login(); header("Location: index.php"); die(); } ?>
Deutsche Language Wählen Englische Language Wählen
select">Office
select">Userverwaltung
select">Redaktion
select">Community
select">Forum
select">Clan & Content
select">Sonstige

Как да го оправя тоя проблем? Айде кодерите помагайте. :D
 
И къф е проблема тя 2/3 от тва е денайнато като гледам ( с // )
 
Значи тука имам 1 грешка която я дава една системка за цс:
PHP:
execute("UPDATE espcms_zugriff_user SET lang = '".$lang."' WHERE userID = '".$_SESSION['id']."'"); } } else { if(login($_POST['username'],$_POST['password'],2,1) == false) { // Wenn $_COOKIE['login_cookie'] gesetzt ist dann loesche Cookie if(isset($_COOKIE['login_cookie'])) setcookie("login_cookie",0,time()-3600); // Loesche SESSION['success'] unset($_SESSION['success']); unset($_SESSION['login']); unset($_SESSION['id']); } else { switch($_POST['language']) { case "de": $lang = "de"; break; case "en": $lang = "en"; break; default: $lang = "de"; } $db->execute("UPDATE espcms_zugriff_user SET lang = '".$lang."' WHERE userID = '".$_SESSION['id']."'"); } } last_login(); header("Location: index.php"); die(); } ?>
Deutsche Language Wählen Englische Language Wählen
select">Office
select">Userverwaltung
select">Redaktion
select">Community
select">Forum
select">Clan & Content
select">Sonstige

Как да го оправя тоя проблем? Айде кодерите помагайте. :D

Копни грешката!!
 

Similar threads