From f283e4040e0dea301c94278470515ca6472af8c2 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 23 Oct 2006 08:00:34 +0000 Subject: few more tweaks and some work on the tv pages --- lib/ui.lib.php | 48 ++---------------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) (limited to 'lib/ui.lib.php') 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,38 +76,13 @@ 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; } // 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 @@ -1355,30 +1330,11 @@ function xml_from_array($array,$callback=0) { } // end foreach elements if (!$callback) { - $string = "\n" . $string . "\n"; + $string = "\n\n" . $string . "\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 "\n"; - -} // show_ajax_js - ?> -- cgit