Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $forumc = (isset($_POST["forums_count"]) ? 0 + $_POST["forums_count"] : 0);
- if ($forumc > 0 && $forum_special != "no") {
- for ($i = 1; $i < $forumc + 1; $i++) {
- if (substr($_POST["forums_$i"], 0, 3) == "yes")
- $foo[] = (int)substr($_POST["forums_$i"], 4);
- }
- foreach ($foo as $fo) {
- $boo[] = "(" . $fo . "," . $user["id"] . "," . sqlesc($user["username"]) . ")";
- $boo1[] = "[" . $fo . "]";
- }
- mysqli_query($GLOBALS["___mysqli_ston"], "DELETE FROM forum_acc WHERE uid=" . $user["id"]) or sqlerr(__file__, __line__);
- mysqli_query($GLOBALS["___mysqli_ston"], "INSERT INTO forum_acc(pid,uid,user) VALUES " . join(",", $boo)) or sqlerr(__file__, __line__);
- $updateset[] = "forums_special=" . sqlesc(join("", $boo1));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement