Update function.php

This commit is contained in:
Shadow
2014-03-18 11:56:40 +02:00
parent 7cfa82a18d
commit d626660ae6
+4 -2
View File
@@ -106,9 +106,11 @@ class funct {
`experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`,
`intraining`) VALUES ('".$get['uid']."', '" . $vilarray['wref'] . "', '0', '".$get['u']."', '".addslashes($user['username'])."',
'0', '5', '0', '0', '100', '0', '0', '0', '0', '".time()."', '50', '0')");
$database->query("UPDATE ".TB_PREFIX."units SET hero = 1 WHERE vref = ".$vilarray['wref']);
header("Location: admin.php?p=player&uid=".$get['uid']."&ac=1");
exit;
}
exit;
if($get['action'] == 'logout'){
header("Location: admin.php");
}else{