diff --git a/php/about.php b/php/about.php index 5447f58..21d192c 100644 --- a/php/about.php +++ b/php/about.php @@ -81,14 +81,12 @@ - -
-
-

TriviaTime

-

- We are #trivialand on Freenode. Come join us! -

-
+
+

About Us

+

TriviaTime is a trivia word game meant for irc. The source code is on github, be sure to check it out.

+

We are #trivialand on Freenode. Come join us!

+

+

- -
-
-

Contact Us

-

- We are #trivialand on Freenode. Come join us! -

-
+
+

Contact Us

+

We are #trivialand on Freenode. Come join us!

+

+

- -
-
-

TriviaTime

-

- Get the latest stats for players and updates. -

-
+
+

TriviaTime

+

Get the latest stats for players and updates.

+

+

diff --git a/php/reports.php b/php/reports.php index 4b742da..30866e8 100644 --- a/php/reports.php +++ b/php/reports.php @@ -81,11 +81,25 @@
+
+

Reports

+

The reports and edits that are currently pending.

+

+

+

Reports

-

+ + + + + + + + + query('SELECT * FROM triviareport LIMIT 10'); @@ -94,19 +108,33 @@ } else { $result = $q->fetchAll(); foreach($result as $res) { - echo $res['reported_at'] . ' ' . $res['channel'] . ' ' . $res['username'] . ' ' . $res['report_text'] . "
\n"; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; } } } else { die('Couldnt connect to db'); } ?> -

+ +
#UsernameReport Text
' . $res['id'] . '' . $res['username'] . '' . $res['report_text'] . '

Edits

-

+ + + + + + + + + + query('SELECT * FROM triviaedit ORDER BY id DESC LIMIT 10'); @@ -115,14 +143,20 @@ } else { $result = $q->fetchAll(); foreach($result as $res) { - echo 'Edit#' . $res['id'] . ' new:`' . $res['question'] . '` by:' . $res['username'] . ' Question#' . $res['question_id'] . "
\n"; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; } } } else { die($err); } ?> -

+ +
Edit #UsernameNew QuestionQuestion #
' . $res['id'] . '' . $res['username'] . '' . $res['question'] . '' . $res['question_id'] . '

diff --git a/php/stats.php b/php/stats.php index c561ec4..6dec59b 100644 --- a/php/stats.php +++ b/php/stats.php @@ -81,11 +81,26 @@
+
+

Stats

+

Stats are updated continuously and instantly.

+

+

+
+

Top10 of ALL TIME

-

+ + + + + + + + + query('SELECT username, sum(points_made) as points FROM triviauserlog GROUP BY username ORDER BY points DESC LIMIT 10'); @@ -93,19 +108,34 @@ die("Error: database error: table does not exist\n"); } else { $result = $q->fetchAll(); - foreach($result as $res) { - echo $res['username'] . ' ' . $res['points'] . "
\n"; + + foreach($result as $key=>$res) { + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; } } } else { die($err); } ?> -

+ +
#UsernamePoints
' . ($key+1) . '' . $res['username'] . '' . $res['points'] . '

Todays TOP10

-

+ + + + + + + + + fetchAll(); - foreach($result as $res) { - echo $res['username'] . ' ' . $res['points'] . "
\n"; + foreach($result as $key=>$res) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; } } } else { die($err); } ?> -

+ +
#UsernamePoints
' . ($key+1) . '' . $res['username'] . '' . $res['points'] . '