Code:function saveleague($suser, $cup, $cts, $bush, $user_id) {
global $user, $cookie, $userinfo, $EditedMessage, $user_prefix, $db, $module_name, $minpass;
cookiedecode($user);
$check = $cookie[1];
$check2 = $cookie[2];
$sql = "SELECT user_id, user_password FROM ".$user_prefix."_users WHERE username='$check'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$vuid = intval($row[user_id]);
$ccpass = $row[user_password];
//$user_sig = htmlspecialchars($user_sig);
//$user_email = check_html($user_email, nohtml);
//$femail = check_html($femail, nohtml);
//$user_website = check_html($user_website, nohtml);
//$bio = check_html($bio, nohtml);
//$user_icq = check_html($user_icq, nohtml);
//$user_aim = check_html($user_aim, nohtml);
//$user_yim = check_html($user_yim, nohtml);
//$user_msnm = check_html($user_msnm, nohtml);
//$user_occ = check_html($user_occ, nohtml);
//$user_from = check_html($user_from, nohtml);
//$user_interests = check_html($user_interests, nohtml);
$suer = check_html($suser);
//$user_avatar = "$user_avatar";
//if (($user_id == $vuid) AND ($check2 == $ccpass)) {
//if (!eregi("http://", $user_website)) {
// $user_website = "http://$user_website";
//}
//if ((isset($user_password)) && ("$user_password" != "$vpass")) {
// echo "<center>"._PASSDIFFERENT."</center>";
//} elseif (($user_password != "") && (strlen($user_password) < $minpass)) {
// echo "<center>"._YOUPASSMUSTBE." <b>$minpass</b> "._CHARLONG."</center>";
//} else {
// if ($bio) { filter_text($bio); $bio = $EditedMessage; $bio = FixQuotes($bio); }
// if ($user_password != "") {
// cookiedecode($user);
// $db->sql_query("LOCK TABLES ".$user_prefix."_users WRITE");
// $user_password = md5($user_password);
$cup = intval($cup);
$bush = intval($bush);
$cts = intval($cts);
// $user_notify_pm = intval($user_notify_pm);
// $user_popup_pm = intval($user_popup_pm);
// $user_allowbbcode = intval($user_allowbbcode);
// $user_allowhtml = intval($user_allowhtml);
// $user_allowsmile = intval($user_allowsmile);
// $user_id = intval($user_id);
$db->sql_query("UPDATE ".$user_prefix."_users SET suser='$suser', cup='$cup', bush='$bush', cts='$cts' WHERE user_id='$user_id'");
$sql = "SELECT user_id, suser, cup, bush, cts FROM ".$user_prefix."_users WHERE username='$username' AND user_password='$user_password'";
$result = $db->sql_query($sql);
// if ($db->sql_numrows($result) == 1) {
// $userinfo = $db->sql_fetchrow($result);
// docookie($userinfo[suser],$userinfo[cup],$userinfo[bush],$userinfo[cts]);
// } else {
// echo "<center>"._SOMETHINGWRONG."</center><br>";
// }
// $db->sql_query("UNLOCK TABLES");
// } else {
// $db->sql_query("UPDATE ".$user_prefix."_users SET suser='$suser', cup='$cup', bush='$bush', cts='$cts' WHERE user_id='$user_id'");
// }
// Header("Location: modules.php?name=$module_name");
//}
//}
}
|