summaryrefslogtreecommitdiffstats
path: root/index.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 /index.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 'index.php')
-rw-r--r--index.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.php b/index.php
index f6eef67b..1b9d6f3a 100644
--- a/index.php
+++ b/index.php
@@ -24,8 +24,8 @@
@discussion Do most of the dirty work of displaying the mp3 catalog
*/
-require_once('lib/init.php');
-show_template('header');
+require_once 'lib/init.php';
+require_once Config::get('prefix') . '/templates/header.inc.php';
$action = scrub_in($_REQUEST['action']);
@@ -34,14 +34,14 @@ $action = scrub_in($_REQUEST['action']);
* refresh_javascript include. Must be greater then 5, I'm not
* going to let them break their servers
*/
-if (conf('refresh_limit') > 5) {
- $ajax_url = conf('ajax_url') . '?action=reloadnp' . conf('ajax_info');
+if (Config::get('refresh_limit') > 5) {
+ $ajax_url = Config::get('ajax_url') . '?action=reloadnp' . Config::get('ajax_info');
/* Can't have the &amp; stuff in the Javascript */
$ajax_url = str_replace("&amp;","&",$ajax_url);
- require_once(conf('prefix') . '/templates/javascript_refresh.inc.php');
+ require_once Config::get('prefix') . '/templates/javascript_refresh.inc.php';
}
-require_once(conf('prefix') . '/templates/show_index.inc.php');
+require_once Config::get('prefix') . '/templates/show_index.inc.php';
show_footer();