summaryrefslogtreecommitdiffstats
path: root/pages/admin.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-03-19 19:25:11 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-03-19 19:25:11 -0700
commit323ffff2203f8b77262e235b2d566d8781f7ef72 (patch)
tree1ea81d51de692c9f0f78ed999a531d9e7eb29b74 /pages/admin.php
parent638ff8a06aae2b1bc9fcbb9406a7a1a30b741ef3 (diff)
downloadpathery-323ffff2203f8b77262e235b2d566d8781f7ef72.tar.xz
Made an easy way to apply achievements
Diffstat (limited to 'pages/admin.php')
-rw-r--r--pages/admin.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/pages/admin.php b/pages/admin.php
index 90060c2..3685eec 100644
--- a/pages/admin.php
+++ b/pages/admin.php
@@ -6,10 +6,27 @@ htmlHeader();
<?php
topbar($Links);
+include('./includes/datas.php');
include('./includes/maps.php');
include('./includes/mapoftheday.php');
include('./includes/db.inc.php');
+if ($_GET['applyall'] == 'true') {
+ echo "Apply-All command heard. Executing...";
+
+ $x = 0;
+ while ($x <= 200) {
+ $x++;
+ $i = 0;
+ while ($i <= 4) {
+ $i++;
+ applyAchievements($x, $i);
+ }
+ }
+
+ echo "Execution complete!";
+}
+
$sql = "SELECT `ID`, `displayName`, `dateJoined`, `dateLogin`, `email`, `isAdmin` FROM `users`";
$result = mysql_query($sql);