summaryrefslogtreecommitdiffstats
path: root/stats.php
diff options
context:
space:
mode:
Diffstat (limited to 'stats.php')
-rw-r--r--stats.php58
1 files changed, 29 insertions, 29 deletions
diff --git a/stats.php b/stats.php
index fd2569ec..ba96ed4f 100644
--- a/stats.php
+++ b/stats.php
@@ -1,5 +1,5 @@
<?php
-/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
+/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
@@ -26,34 +26,34 @@ UI::show_header();
/* Switch on the action to be performed */
switch ($_REQUEST['action']) {
- // Show a Users "Profile" page
- case 'show_user':
- $client = new User($_REQUEST['user_id']);
- require_once Config::get('prefix') . '/templates/show_user.inc.php';
- break;
- case 'user_stats':
- /* Get em! */
- $working_user = new User($_REQUEST['user_id']);
-
- /* Pull favs */
- $favorite_artists = $working_user->get_favorites('artist');
- $favorite_albums = $working_user->get_favorites('album');
- $favorite_songs = $working_user->get_favorites('song');
-
- require_once Config::get('prefix') . '/templates/show_user_stats.inc.php';
-
- break;
- // Show stats
- case 'newest':
- require_once Config::get('prefix') . '/templates/show_newest.inc.php';
- break;
- case 'popular':
- require_once Config::get('prefix') . '/templates/show_popular.inc.php';
- break;
- case 'show':
- default:
- require_once Config::get('prefix') . '/templates/show_stats.inc.php';
- break;
+ // Show a Users "Profile" page
+ case 'show_user':
+ $client = new User($_REQUEST['user_id']);
+ require_once Config::get('prefix') . '/templates/show_user.inc.php';
+ break;
+ case 'user_stats':
+ /* Get em! */
+ $working_user = new User($_REQUEST['user_id']);
+
+ /* Pull favs */
+ $favorite_artists = $working_user->get_favorites('artist');
+ $favorite_albums = $working_user->get_favorites('album');
+ $favorite_songs = $working_user->get_favorites('song');
+
+ require_once Config::get('prefix') . '/templates/show_user_stats.inc.php';
+
+ break;
+ // Show stats
+ case 'newest':
+ require_once Config::get('prefix') . '/templates/show_newest.inc.php';
+ break;
+ case 'popular':
+ require_once Config::get('prefix') . '/templates/show_popular.inc.php';
+ break;
+ case 'show':
+ default:
+ require_once Config::get('prefix') . '/templates/show_stats.inc.php';
+ break;
} // end switch on action
UI::show_footer();