summaryrefslogtreecommitdiffstats
path: root/pages/admin.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-01-13 19:27:39 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-01-13 19:27:39 -0600
commit099e2d5ab8effe07b0e5d8c59e18c81f519fd833 (patch)
treeb23c9a4291b1391382bdf4424bb7a948a287e76d /pages/admin.php
parent35307251560e459615f2a3e5ab6572b3f80cfdd9 (diff)
downloadpathery-099e2d5ab8effe07b0e5d8c59e18c81f519fd833.tar.xz
Added totalWins and totalTies columns to the users table. Also, removed all references to the 'statistics' table - it's not needed anymore.
Diffstat (limited to 'pages/admin.php')
-rw-r--r--pages/admin.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/admin.php b/pages/admin.php
index afc6418..0f54285 100644
--- a/pages/admin.php
+++ b/pages/admin.php
@@ -10,7 +10,7 @@ include_once('./includes/datas.php');
include_once('./includes/maps.php');
include_once('./includes/mapoftheday.php');
include_once('./includes/sqlEmbedded.php');
-include_once('./includes/championPoints.php');
+include_once('./includes/playerStats.php');
if ($_GET['applyall'] == 'true') {
echo "Apply-All command heard. Executing...";
@@ -27,10 +27,10 @@ if ($_GET['applyall'] == 'true') {
echo "Execution complete!";
}
-else if ($_GET['recalcChamp'] == 'true') {
- echo "Recalculating champion points...";
+else if ($_GET['recalcStats'] == 'true') {
+ echo "Recalculating all player stats...";
- recalculateAllPlayersChampionPoints();
+ recalculateStatsForAllPlayers();
echo "Complete!";
}
@@ -45,7 +45,7 @@ echo '
<p>News:</p>
<p>Buttons:<br />
<input type="button" value="Apply all achievements" onClick="parent.location=\'admin?applyall=true\'">
- <input type="button" value="Recalculate all champion points" onClick="parent.location=\'admin?recalcChamp=true\'">
+ <input type="button" value="Recalculate all player stats" onClick="parent.location=\'admin?recalcStats=true\'">
</p>
<p>Hello admins, this is our current userlist.</p>
</center>