summaryrefslogtreecommitdiffstats
path: root/server.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-15 06:50:58 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-15 06:50:58 +0000
commit0a3df5cbcfc10a0f18e9da311d887eb00fd6fbf1 (patch)
tree9774ec6174a3bcdf16a7e800aed718c7d4aefdaa /server.php
parent51b625a4463ab90f14cc85e589867903026e78ec (diff)
downloadampache-0a3df5cbcfc10a0f18e9da311d887eb00fd6fbf1.tar.gz
ampache-0a3df5cbcfc10a0f18e9da311d887eb00fd6fbf1.tar.bz2
ampache-0a3df5cbcfc10a0f18e9da311d887eb00fd6fbf1.zip
added on the fly bandwidth management for downsampled users
Diffstat (limited to 'server.php')
-rw-r--r--server.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/server.php b/server.php
index 5f293206..3ef233bd 100644
--- a/server.php
+++ b/server.php
@@ -1,6 +1,9 @@
<?php
/*
+ Copyright 2001 - 2005 Ampache.org
+ All Rights Reserved
+
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
@@ -19,8 +22,13 @@
$no_session = true;
require_once('modules/init.php');
-require_once(conf('prefix') . "/modules/xmlrpc/xmlrpcs.inc");
-require_once(conf('prefix') . "/modules/xmlrpc/xmlrpc.inc");
+
+
+if (conf('xml_rpc')) {
+ require_once(conf('prefix') . "/modules/xmlrpc/xmlrpcs.inc");
+ require_once(conf('prefix') . "/modules/xmlrpc/xmlrpc.inc");
+}
+else { exit(); }
/* Setup the vars we are going to need */
$access = new Access();