diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-23 08:00:34 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-23 08:00:34 +0000 |
commit | f283e4040e0dea301c94278470515ca6472af8c2 (patch) | |
tree | 72ddc03245026420fe128c5cd149fa9fa8103d80 /lib/ui.lib.php | |
parent | 2faea5f7b345ba0d9319d4466261b52c7bff0325 (diff) | |
download | ampache-f283e4040e0dea301c94278470515ca6472af8c2.tar.gz ampache-f283e4040e0dea301c94278470515ca6472af8c2.tar.bz2 ampache-f283e4040e0dea301c94278470515ca6472af8c2.zip |
few more tweaks and some work on the tv pages
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 48 |
1 files changed, 2 insertions, 46 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index f4f5e3bd..9fdd2cdb 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -76,7 +76,7 @@ function flip_class($array=0) { */ function clear_now_playing() { - $sql = "DELETE FROM now_playing"; + $sql = "TRUNCATE TABLE now_playing"; $db_results = mysql_query($sql, dbh()); return true; @@ -84,31 +84,6 @@ function clear_now_playing() { } // clear_now_playing /** - * show_menu_items - * shows menu items - */ -function show_menu_items ($high) { - - include(conf('prefix') . "/templates/menu.inc"); - -} // show_menu_items - -/** - * Show Browse Menu - * Shows the menu used by the browse page - * @package Web Interface - * @cataogry Menu - * @author Karl Vollmer - */ -function show_browse_menu($highlight) { - - $highlight = ucfirst($highlight); - - include(conf('prefix'). "/templates/show_browse_menu.inc"); - -} // show_browse_menu - -/** * _ * checks to see if the alias _ is defined * if it isn't it defines it as a simple return @@ -1355,30 +1330,11 @@ function xml_from_array($array,$callback=0) { } // end foreach elements if (!$callback) { - $string = "<root>\n" . $string . "</root>\n"; + $string = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<root>\n" . $string . "</root>\n"; } return $string; } // xml_from_array -/** - * show_ajax_js - * This displays the javascript array definition needed - * For ajax to know what it should be replacing - */ -function show_ajax_js($name,$array) { - - $elements = count($array); - - echo "<script type=\"text/javascript\" language=\"javascript\">\n"; - echo "<!--\n"; - echo "var $name = new Array($elements);\n"; - foreach ($array as $key=>$value) { - echo $name . "[$key] = \"$value\";\n"; - } - echo "-->\n</script>\n"; - -} // show_ajax_js - ?> |