diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-03-12 23:15:31 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-03-12 23:15:31 -0700 |
commit | 1c9f62a731637f1d373485473f064626d311d705 (patch) | |
tree | 4369045fc70ed7b4c9d3c934a892d94c8afeded9 /pages/admin.php | |
parent | a444a1d8117c17f221899524a0d14df6dd65aaec (diff) | |
download | pathery-1c9f62a731637f1d373485473f064626d311d705.tar.xz |
I'm lazy, and I'm not sure there's a point to this command!
Diffstat (limited to 'pages/admin.php')
-rw-r--r-- | pages/admin.php | 8 |
1 files changed, 7 insertions, 1 deletions
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) {
|