summaryrefslogtreecommitdiffstats
path: root/stats.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 08:24:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 08:24:05 +0000
commit05c406e1f751ece06a7d54bc636275837f9f0169 (patch)
tree4bb73b8d560c1ad0d0ff6c14f2607251280ce79b /stats.php
parent689517e332c874ac09bb41398602622a1fc36af8 (diff)
downloadampache-05c406e1f751ece06a7d54bc636275837f9f0169.tar.gz
ampache-05c406e1f751ece06a7d54bc636275837f9f0169.tar.bz2
ampache-05c406e1f751ece06a7d54bc636275837f9f0169.zip
added in user profile, did a little work on the preferences and session, something is fishy with session and tmp_playlist stuff will look into it tomorrow
Diffstat (limited to 'stats.php')
-rw-r--r--stats.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/stats.php b/stats.php
index 49b486bf..63fa4f3a 100644
--- a/stats.php
+++ b/stats.php
@@ -24,10 +24,15 @@
*/
require_once 'lib/init.php';
-require_once Config::get('prefix') . '/templates/header.inc.php';
+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']);