From 2a8cbedade6d2d7e7e71e5dbb8c562a84cfe6c80 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 12 Oct 2006 01:34:18 +0000 Subject: new rating hotness, has some bugs will continue to hash them out --- lib/init.php | 7 +++++++ lib/ui.lib.php | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) (limited to 'lib') diff --git a/lib/init.php b/lib/init.php index f76f3eb6..e88da245 100644 --- a/lib/init.php +++ b/lib/init.php @@ -255,6 +255,13 @@ else { $user = new user(); } + +/* Add in some variables for ajax done here because we need the user */ +$ajax_info['ajax_url'] = $results['web_path'] . '/server/ajax.server.php'; +$ajax_info['ajax_info'] = '&user_id=' . $user->id . '&sessid=' . session_id(); +conf($ajax_info); +unset($ajax_info); + // Load gettext mojo load_gettext(); diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 47b6cff9..1834dc35 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -1353,6 +1353,23 @@ function xml_from_array($array) { } // 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