diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-10 21:17:25 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-06-10 21:17:25 +0000 |
commit | b0fdd250fc4f06dba29629fed73f7185afd997b6 (patch) | |
tree | 84ac4b32f56cd03cf231dd05fb8e3d6a754bd519 /lib/ui.lib.php | |
parent | 11f28a1d4a752fc9aa29699c1c129e0c723fb8b7 (diff) | |
download | ampache-b0fdd250fc4f06dba29629fed73f7185afd997b6.tar.gz ampache-b0fdd250fc4f06dba29629fed73f7185afd997b6.tar.bz2 ampache-b0fdd250fc4f06dba29629fed73f7185afd997b6.zip |
added rightbar and fixed genre playback
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index be447091..1476307a 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -1411,4 +1411,21 @@ function get_users($sql) { } // get_users +/** + * ajax_include + * This does an ob_start, getcontents, clean + * on the specified require, only works if you + * don't need to pass data in + */ +function ajax_include($include) { + + ob_start(); + require_once Config::get('prefix') . '/templates/' . $include; + $results = ob_get_contents(); + ob_end_clean(); + + return $results; + +} // ajax_include + ?> |