2013-04-29 11:24:49 +02:00
|
|
|
<?php
|
2023-06-08 13:19:01 +02:00
|
|
|
// Pandora FMS - https://pandorafms.com
|
2013-04-29 11:24:49 +02:00
|
|
|
// ==================================================
|
2023-06-08 11:53:13 +02:00
|
|
|
// Copyright (c) 2005-2023 Pandora FMS
|
2023-06-08 13:19:01 +02:00
|
|
|
// Please see https://pandorafms.com/community/ for full contribution list
|
2013-04-29 11:24:49 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
/**
|
2019-01-30 16:18:44 +01:00
|
|
|
* @package Include
|
2013-04-29 11:24:49 +02:00
|
|
|
* @subpackage php_to_js_values
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Hidden div to forced title
|
2019-01-30 16:18:44 +01:00
|
|
|
html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true]);
|
2013-04-29 11:24:49 +02:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
// ======= Store values to be retrieved from javascript code ============
|
2013-04-29 11:24:49 +02:00
|
|
|
set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false));
|
2019-01-30 16:18:44 +01:00
|
|
|
set_js_value('homeurl', $config['homeurl']);
|
|
|
|
set_js_value('homedir', $config['homedir'].'/');
|
2022-11-21 09:23:31 +01:00
|
|
|
// Prevent double request message.
|
|
|
|
set_js_value('prepareDownloadTitle', __('Generating content'));
|
|
|
|
set_js_value('prepareDownloadMsg', __('Generating content, please wait'));
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
// ======================================================================
|