From 1c9f62a731637f1d373485473f064626d311d705 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 12 Mar 2013 23:15:31 -0700 Subject: I'm lazy, and I'm not sure there's a point to this command! --- pages/admin.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/admin.php b/pages/admin.php index c0a142f..86317a3 100644 --- a/pages/admin.php +++ b/pages/admin.php @@ -16,8 +16,14 @@ include_once('./includes/chats.php'); if ($_GET['applyall'] == 'true') { echo "Apply-All command heard. Executing..."; + //TODO: Horrible hackery shall follow... + $res = mysqli_query($mysqli, "SELECT count(*) as count FROM `users`"); + $row = mysqli_fetch_assoc($res); + $memberCount = $row['count']; + $x = 0; - while ($x <= 200) { + // +40 because there's missing userID's... Don't judge me...- I'm going to fix it. + while ($x <= $memberCount + 40) { $x++; $i = 0; while ($i <= 4) { -- cgit v1.2.3