summaryrefslogtreecommitdiffstats
path: root/stats.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
commita31560aec4f004e58930277758f5412d86c62adc (patch)
tree845ff6947d26b22a0f4527901dbefc97bca89d78 /stats.php
parent8b27d66add7ca9ba57d7e9488612cb54be4b11c1 (diff)
downloadampache-a31560aec4f004e58930277758f5412d86c62adc.tar.gz
ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.bz2
ampache-a31560aec4f004e58930277758f5412d86c62adc.zip
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
Diffstat (limited to 'stats.php')
-rw-r--r--stats.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/stats.php b/stats.php
index f77a8c2d..e4013c8d 100644
--- a/stats.php
+++ b/stats.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2006 Ampache.org
+ Copyright (c) 2001 - 2007 Ampache.org
All Rights Reserved.
This program is free software; you can redistribute it and/or
@@ -20,13 +20,11 @@
*/
/*
-
Show us the stats for the server and this user
-
*/
-require_once('lib/init.php');
+require_once 'lib/init.php';
-show_template('header');
+require_once Config::get('prefix') . '/templates/header.inc.php';
$action = scrub_in($_REQUEST['action']);
@@ -41,7 +39,7 @@ switch ($action) {
$favorite_albums = $working_user->get_favorites('album');
$favorite_songs = $working_user->get_favorites('song');
- require_once(conf('prefix') . '/templates/show_user_stats.inc.php');
+ require_once Config::get('prefix') . '/templates/show_user_stats.inc.php';
break;
/* Show their stats */
@@ -54,16 +52,16 @@ switch ($action) {
$favorite_albums = $working_user->get_favorites('album');
$favorite_songs = $working_user->get_favorites('song');
- require_once(conf('prefix') . '/templates/show_user_stats.inc.php');
+ require_once Config::get('prefix') . '/templates/show_user_stats.inc.php';
// Onlu do this is ratings are on
- if (conf('ratings')) {
+ if (Config::get('ratings')) {
/* Build Recommendations from Ratings */
$recommended_artists = $working_user->get_recommendations('artist');
$recommended_albums = $working_user->get_recommendations('albums');
$recommended_songs = $working_user->get_recommendations('song');
- require_once(conf('prefix') . '/templates/show_user_recommendations.inc.php');
+ require_once Config::get('prefix') . '/templates/show_user_recommendations.inc.php';
} // if ratings on
show_box_top();