mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 14:54:52 +02:00
2012-04-23 Miguel de Dios <miguel.dedios@artica.es>
* index.php: fixed notice message php. * extensions/update_manager/lib/libupdate_manager.php: fixed into the function "um_db_load_settings" the cache of DB, and set to translate some untranslate text. * include/config_process.php: added for a long time the setting the $develop_bypass as global. * extensions/update_manager/settings.php, operation/menu.php, operation/search_agents.php: cleaned source code style. * include/functions_config.php: fixed php noticie message of the var "$config['update_manager_installed']" in the first execution after intallation. MERGED FROM 4.0.2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6106 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e1cab9b8b4
commit
64eaaf4927
@ -1,3 +1,23 @@
|
|||||||
|
2012-04-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* index.php: fixed notice message php.
|
||||||
|
|
||||||
|
* extensions/update_manager/lib/libupdate_manager.php: fixed into
|
||||||
|
the function "um_db_load_settings" the cache of DB, and set to
|
||||||
|
translate some untranslate text.
|
||||||
|
|
||||||
|
* include/config_process.php: added for a long time the setting the
|
||||||
|
$develop_bypass as global.
|
||||||
|
|
||||||
|
* extensions/update_manager/settings.php, operation/menu.php,
|
||||||
|
operation/search_agents.php: cleaned source code style.
|
||||||
|
|
||||||
|
* include/functions_config.php: fixed php noticie message of the
|
||||||
|
var "$config['update_manager_installed']" in the first execution
|
||||||
|
after intallation.
|
||||||
|
|
||||||
|
MERGED FROM 4.0.2
|
||||||
|
|
||||||
2012-04-23 Sergio Martin <sergio.martin@artica.es>
|
2012-04-23 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_networkmap.php
|
* include/functions_networkmap.php
|
||||||
|
@ -20,8 +20,10 @@ require_once ('libupdate_manager_components.php');
|
|||||||
require_once ('libupdate_manager_client.php');
|
require_once ('libupdate_manager_client.php');
|
||||||
|
|
||||||
function um_db_load_settings () {
|
function um_db_load_settings () {
|
||||||
$result = db_process_sql('SELECT * FROM '.DB_PREFIX.'tupdate_settings');
|
db_clean_cache();
|
||||||
if($result === false) {
|
$result = db_get_all_rows_in_table(DB_PREFIX . 'tupdate_settings');
|
||||||
|
|
||||||
|
if ($result === false) {
|
||||||
echo '<strong>Error reading settings</strong><br />';
|
echo '<strong>Error reading settings</strong><br />';
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -54,7 +56,7 @@ function um_db_update_setting ($key, $value = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
echo '<strong>Error reading settings</strong> <br />';
|
echo '<strong>' . __('Error reading settings') . '</strong> <br />';
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +74,7 @@ function um_db_update_setting ($key, $value = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
echo '<strong>Error updating settings</strong> <br />';
|
echo '<strong>' . __('Error updating settings') . '</strong> <br />';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -90,7 +92,7 @@ function um_db_update_setting ($key, $value = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
echo '<strong>Error creating settings</strong> <br />';
|
echo '<strong>' . __('Error creating settings') . '</strong> <br />';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ if (! check_acl ($config['id_user'], 0, 'PM')) {
|
|||||||
include_once ("extensions/update_manager/lib/functions.php");
|
include_once ("extensions/update_manager/lib/functions.php");
|
||||||
|
|
||||||
um_db_connect ('mysql', $config['dbhost'], $config['dbuser'],
|
um_db_connect ('mysql', $config['dbhost'], $config['dbuser'],
|
||||||
$config['dbpass'], $config['dbname']);
|
$config['dbpass'], $config['dbname']);
|
||||||
|
|
||||||
$update_settings = (bool) get_parameter_post ('update_settings');
|
$update_settings = (bool) get_parameter_post ('update_settings');
|
||||||
|
|
||||||
@ -55,9 +55,10 @@ if ($update_settings) {
|
|||||||
update_pandora_update_conf();
|
update_pandora_update_conf();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<h3 class=suc>".__('Update manager settings updated')."</h3>";
|
echo "<h3 class=suc>" . __('Update manager settings updated') . "</h3>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$settings = null;
|
||||||
$settings = um_db_load_settings ();
|
$settings = um_db_load_settings ();
|
||||||
|
|
||||||
echo '<form method="post">';
|
echo '<form method="post">';
|
||||||
|
@ -27,6 +27,7 @@ $pandora_version = 'v5.0-dev';
|
|||||||
|
|
||||||
date_default_timezone_set("Europe/Berlin");
|
date_default_timezone_set("Europe/Berlin");
|
||||||
|
|
||||||
|
global $develop_bypass;
|
||||||
/* Help to debug problems. Override global PHP configuration */
|
/* Help to debug problems. Override global PHP configuration */
|
||||||
if (!isset($develop_bypass)) $develop_bypass = 0;
|
if (!isset($develop_bypass)) $develop_bypass = 0;
|
||||||
|
|
||||||
|
@ -770,14 +770,16 @@ function config_check (){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($config['update_manager_installed'] == 1) {
|
if (isset($config['update_manager_installed'])) {
|
||||||
require_once("extensions/update_manager/lib/functions.ajax.php");
|
if ($config['update_manager_installed'] == 1) {
|
||||||
|
require_once("extensions/update_manager/lib/functions.ajax.php");
|
||||||
|
|
||||||
$result_check_keygen = check_keygen_online();
|
$result_check_keygen = check_keygen_online();
|
||||||
|
|
||||||
if (!empty($result_check_keygen)) {
|
if (!empty($result_check_keygen)) {
|
||||||
$config["alert_cnt"]++;
|
$config["alert_cnt"]++;
|
||||||
$_SESSION["alert_msg"] .= $result_check_keygen;
|
$_SESSION["alert_msg"] .= $result_check_keygen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -281,7 +281,9 @@ if ($process_login) {
|
|||||||
//Get old parameters before navigation.
|
//Get old parameters before navigation.
|
||||||
$old_sec = '';
|
$old_sec = '';
|
||||||
$old_sec2 = '';
|
$old_sec2 = '';
|
||||||
$old_page = $_SERVER['HTTP_REFERER'];
|
$old_page = '';
|
||||||
|
if (isset($_SERVER['HTTP_REFERER']))
|
||||||
|
$old_page = $_SERVER['HTTP_REFERER'];
|
||||||
$chunks = explode('?', $old_page);
|
$chunks = explode('?', $old_page);
|
||||||
if (count($chunks) == 2) {
|
if (count($chunks) == 2) {
|
||||||
$chunks = explode('&', $chunks[1]);
|
$chunks = explode('&', $chunks[1]);
|
||||||
|
@ -191,8 +191,9 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||||||
|
|
||||||
$sub["godmode/reporting/graphs"]["text"] = __('Custom graphs');
|
$sub["godmode/reporting/graphs"]["text"] = __('Custom graphs');
|
||||||
//Set godomode path
|
//Set godomode path
|
||||||
$sub["godmode/reporting/graphs"]["subsecs"] = array("operation/reporting/graph_viewer",
|
$sub["godmode/reporting/graphs"]["subsecs"] = array(
|
||||||
"godmode/reporting/graph_builder");
|
"operation/reporting/graph_viewer",
|
||||||
|
"godmode/reporting/graph_builder");
|
||||||
|
|
||||||
$sub["operation/agentes/exportdata"]["text"] = __('Export data');
|
$sub["operation/agentes/exportdata"]["text"] = __('Export data');
|
||||||
$sub["operation/agentes/exportdata"]["subsecs"] = array("operation/agentes/exportdata");
|
$sub["operation/agentes/exportdata"]["subsecs"] = array("operation/agentes/exportdata");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user