summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-13 04:43:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-13 04:43:46 +0000
commit5bc35124a7077fc318ecfe0771b3cb591bdf6ef1 (patch)
tree2f040154ec747927581086bcac352dd7d395d81f /lib/general.lib.php
parentc837dd5752ec436333fe246ce88a90ccfe6eae93 (diff)
downloadampache-5bc35124a7077fc318ecfe0771b3cb591bdf6ef1.tar.gz
ampache-5bc35124a7077fc318ecfe0771b3cb591bdf6ef1.tar.bz2
ampache-5bc35124a7077fc318ecfe0771b3cb591bdf6ef1.zip
fixed now playing, and added mpd file method to now playing
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php29
1 files changed, 1 insertions, 28 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 73467efc..d5a0c330 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -740,33 +740,6 @@ function tbl_name($table) {
/* For now we just return the table name */
return $table;
-} // table
-
-/**
- * Init MPD - This is originally from /amp-mpd.php
- * This initializes MPD if it is the playback method.
- * Returns 1 if error, 0 if all good
- * @package
- * @catagory
- */
-
-function init_mpd () {
-
-global $myMpd;
-
-if (!class_exists('mpd')) { require_once(conf('prefix')."/modules/mpd/mpd.class.php"); }
-if (!is_object($myMpd)) { $myMpd = new mpd(conf('mpd_host'),conf('mpd_port')); }
-if (!$myMpd->connected)
- {
- echo "<font class=\"error\">" . _("Error Connecting") . ": " . $myMpd->errStr . "</font><br />\n";
- log_event ($_SESSION['userdata']['username'],' connection_failed ',"Error: unable to connect to MPD, ".$myMpd->errStr);
- return 1;
- }
-
-return 0;
-
-} // function init_mpd ()
-
-
+} // tbl_name
?>