From c1e37d9ea500eaff62449a943828200a57bf6fe2 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 29 Apr 2013 09:24:49 +0000 Subject: [PATCH] 2013-04-29 Sergio Martin * include/php_to_js_values.php: Added a separated file to store from php interesting values to ve retrieved from javascript git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8079 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++ pandora_console/include/php_to_js_values.php | 29 ++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 pandora_console/include/php_to_js_values.php diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fc8a973063..1294f5abf3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-04-29 Sergio Martin + + * include/php_to_js_values.php: Added a separated file + to store from php interesting values to ve retrieved + from javascript + 2013-04-29 Sergio Martin * include/functions.php diff --git a/pandora_console/include/php_to_js_values.php b/pandora_console/include/php_to_js_values.php new file mode 100644 index 0000000000..a088189d44 --- /dev/null +++ b/pandora_console/include/php_to_js_values.php @@ -0,0 +1,29 @@ + 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true)); + +//======= Store values to be retrieved from javascript code ============ +set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); +set_js_value('homeurl', $config["homeurl"]); +set_js_value('homedir', $config["homedir"] . '/'); +//====================================================================== +?>