removed fullurl supervisor

Former-commit-id: 74cc731977477c444150d49aff9ab062ddac065a
This commit is contained in:
fbsanchez 2019-02-22 13:33:46 +01:00
parent 3d2bfa95b5
commit 1feebae564
1 changed files with 33 additions and 85 deletions

View File

@ -637,9 +637,7 @@ class ConsoleSupervisor
'Your license is going to expire in %d days. Please contact sales.', 'Your license is going to expire in %d days. Please contact sales.',
$days_to_expiry $days_to_expiry
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gsetup&sec2=godmode/setup/license',
'index.php?sec=gsetup&sec2=godmode/setup/license'
),
] ]
); );
} else if ($days_to_expiry < 0) { } else if ($days_to_expiry < 0) {
@ -649,9 +647,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.LICENSE.EXPIRATION', 'type' => 'NOTIF.LICENSE.EXPIRATION',
'title' => __('License is expired.'), 'title' => __('License is expired.'),
'message' => __('Your license has expired. Please contact sales.'), 'message' => __('Your license has expired. Please contact sales.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gsetup&sec2=godmode/setup/license',
'index.php?sec=gsetup&sec2=godmode/setup/license'
),
] ]
); );
return false; return false;
@ -728,9 +724,7 @@ class ConsoleSupervisor
'Directory %s is not writable. Please configure proper permissions.', 'Directory %s is not writable. Please configure proper permissions.',
$config['attachment_store'] $config['attachment_store']
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=general',
'index.php?sec=general&sec2=godmode/setup/setup&section=general'
),
] ]
); );
return; return;
@ -752,9 +746,7 @@ class ConsoleSupervisor
'There are more than %d files in attachment, you should consider cleaning up your attachment directory manually.', 'There are more than %d files in attachment, you should consider cleaning up your attachment directory manually.',
$config['num_files_attachment'] $config['num_files_attachment']
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=perf',
'index.php?sec=general&sec2=godmode/setup/setup&section=perf'
),
] ]
); );
} else { } else {
@ -786,9 +778,7 @@ class ConsoleSupervisor
'Remote configuration directory %s is not readable. Please configure it.', 'Remote configuration directory %s is not readable. Please configure it.',
$config['remote_config'] $config['remote_config']
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=general',
'index.php?sec=general&sec2=godmode/setup/setup&section=general'
),
] ]
); );
return; return;
@ -807,9 +797,7 @@ class ConsoleSupervisor
'Remote configuration directory %s is not writable. Please configure it.', 'Remote configuration directory %s is not writable. Please configure it.',
$config['remote_config'].'/conf' $config['remote_config'].'/conf'
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=general',
'index.php?sec=general&sec2=godmode/setup/setup&section=general'
),
] ]
); );
} else { } else {
@ -827,9 +815,7 @@ class ConsoleSupervisor
'Collections directory %s is not writable. Please configure it.', 'Collections directory %s is not writable. Please configure it.',
$config['remote_config'].'/collections' $config['remote_config'].'/collections'
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=general',
'index.php?sec=general&sec2=godmode/setup/setup&section=general'
),
] ]
); );
} else { } else {
@ -847,9 +833,7 @@ class ConsoleSupervisor
'MD5 directory %s is not writable. Please configure it.', 'MD5 directory %s is not writable. Please configure it.',
$config['remote_config'].'/md5' $config['remote_config'].'/md5'
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=general',
'index.php?sec=general&sec2=godmode/setup/setup&section=general'
),
] ]
); );
} else { } else {
@ -880,9 +864,7 @@ class ConsoleSupervisor
$MAX_FILES_DATA_IN, $MAX_FILES_DATA_IN,
$config['remote_config'] $config['remote_config']
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=perf',
'index.php?sec=general&sec2=godmode/setup/setup&section=perf'
),
] ]
); );
} else { } else {
@ -905,9 +887,7 @@ class ConsoleSupervisor
$MAX_BADXML_FILES_DATA_IN, $MAX_BADXML_FILES_DATA_IN,
$config['remote_config'] $config['remote_config']
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=perf',
'index.php?sec=general&sec2=godmode/setup/setup&section=perf'
),
] ]
); );
} else { } else {
@ -984,9 +964,7 @@ class ConsoleSupervisor
$modules_queued, $modules_queued,
$queue['queued_modules'] $queue['queued_modules']
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gservers&sec2=godmode/servers/modificar_server&refr=60',
'index.php?sec=gservers&sec2=godmode/servers/modificar_server&refr=60'
),
] ]
); );
} else { } else {
@ -1088,9 +1066,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.SERVER.STATUS.'.$server['id_server'], 'type' => 'NOTIF.SERVER.STATUS.'.$server['id_server'],
'title' => $msg, 'title' => $msg,
'message' => $description, 'message' => $description,
'url' => ui_get_full_url( 'url' => 'index.php?sec=gservers&sec2=godmode/servers/modificar_server&refr=60',
'index.php?sec=gservers&sec2=godmode/servers/modificar_server&refr=60'
),
] ]
); );
} }
@ -1176,7 +1152,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.PHP.SAFE_MODE', 'type' => 'NOTIF.PHP.SAFE_MODE',
'title' => __('PHP safe mode is enabled. Some features may not properly work.'), 'title' => __('PHP safe mode is enabled. Some features may not properly work.'),
'message' => __('To disable, change it on your PHP configuration file (php.ini) and put safe_mode = Off (Dont forget restart apache process after changes)'), 'message' => __('To disable, change it on your PHP configuration file (php.ini) and put safe_mode = Off (Dont forget restart apache process after changes)'),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1195,7 +1171,7 @@ class ConsoleSupervisor
__('Recommended value is %s'), __('Recommended value is %s'),
'-1 ('.__('Unlimited').')' '-1 ('.__('Unlimited').')'
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'), ).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1214,7 +1190,7 @@ class ConsoleSupervisor
__('Recommended value is: %s'), __('Recommended value is: %s'),
'0 ('.__('Unlimited').')' '0 ('.__('Unlimited').')'
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'), ).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1233,7 +1209,7 @@ class ConsoleSupervisor
__('Recommended value is: %s'), __('Recommended value is: %s'),
sprintf(__('%s or greater'), '800M') sprintf(__('%s or greater'), '800M')
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'), ).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1252,7 +1228,7 @@ class ConsoleSupervisor
__('Recommended value is: %s'), __('Recommended value is: %s'),
sprintf(__('%s or greater'), '500M') sprintf(__('%s or greater'), '500M')
).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator'), ).'<br><br>'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator'),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1265,7 +1241,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.PHP.DISABLE_FUNCTIONS', 'type' => 'NOTIF.PHP.DISABLE_FUNCTIONS',
'title' => __('Problems with disable functions in PHP.INI'), 'title' => __('Problems with disable functions in PHP.INI'),
'message' => __('Variable disable_functions containts functions system() or exec(), in PHP configuration file (php.ini)').'<br /><br />'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'), 'message' => __('Variable disable_functions containts functions system() or exec(), in PHP configuration file (php.ini)').'<br /><br />'.__('Please, change it on your PHP configuration file (php.ini) or contact with administrator (Dont forget restart apache process after changes)'),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1343,9 +1319,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.HISTORYDB', 'type' => 'NOTIF.HISTORYDB',
'title' => __('Historical database not available'), 'title' => __('Historical database not available'),
'message' => __('Historical database is enabled. But not available using given configuration. Please check it.'), 'message' => __('Historical database is enabled. But not available using given configuration. Please check it.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=hist_db',
'index.php?sec=general&sec2=godmode/setup/setup&section=hist_db'
),
] ]
); );
} else { } else {
@ -1392,9 +1366,7 @@ class ConsoleSupervisor
'Your database is not maintained correctly. It seems that more than 48hrs have passed without proper maintenance. Please review documents of %s on how to perform this maintenance process (DB Tool) and enable it as soon as possible.', 'Your database is not maintained correctly. It seems that more than 48hrs have passed without proper maintenance. Please review documents of %s on how to perform this maintenance process (DB Tool) and enable it as soon as possible.',
io_safe_output(get_product_name()) io_safe_output(get_product_name())
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=perf',
'index.php?sec=general&sec2=godmode/setup/setup&section=perf'
),
] ]
); );
} else { } else {
@ -1454,9 +1426,7 @@ class ConsoleSupervisor
'Historical database maintance problem.' 'Historical database maintance problem.'
), ),
'message' => __('Your historical database is not being maintained correctly. It seems that more than 48hrs have passed without proper maintenance. Please review documents of %s on how to perform this maintenance process (DB Tool) and enable it as soon as possible.', get_product_name()), 'message' => __('Your historical database is not being maintained correctly. It seems that more than 48hrs have passed without proper maintenance. Please review documents of %s on how to perform this maintenance process (DB Tool) and enable it as soon as possible.', get_product_name()),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=perf',
'index.php?sec=general&sec2=godmode/setup/setup&section=perf'
),
] ]
); );
} else { } else {
@ -1495,9 +1465,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.HISTORYDB.MR', 'type' => 'NOTIF.HISTORYDB.MR',
'title' => __('Historical database MR missmatch'), 'title' => __('Historical database MR missmatch'),
'message' => __('Your historical database is not using the same schema of main DB. This could produce anomalyes while storing historical data.'), 'message' => __('Your historical database is not using the same schema of main DB. This could produce anomalyes while storing historical data.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=hist_db',
'index.php?sec=general&sec2=godmode/setup/setup&section=hist_db'
),
] ]
); );
} else { } else {
@ -1539,9 +1507,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.EXT.ELASTICSEARCH', 'type' => 'NOTIF.EXT.ELASTICSEARCH',
'title' => __('Log collector cannot connect to ElasticSearch'), 'title' => __('Log collector cannot connect to ElasticSearch'),
'message' => __('ElasticSearch is not available using current configuration. Please check it.'), 'message' => __('ElasticSearch is not available using current configuration. Please check it.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=log',
'index.php?sec=general&sec2=godmode/setup/setup&section=log'
),
] ]
); );
} else { } else {
@ -1611,9 +1577,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.METACONSOLE.DB_CONNECTION', 'type' => 'NOTIF.METACONSOLE.DB_CONNECTION',
'title' => __('Metaconsole DB is not available.'), 'title' => __('Metaconsole DB is not available.'),
'message' => __('Cannot connect with Metaconsole DB using stored configuration. Please check it.'), 'message' => __('Cannot connect with Metaconsole DB using stored configuration. Please check it.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=general&sec2=godmode/setup/setup&section=enterprise',
'index.php?sec=general&sec2=godmode/setup/setup&section=enterprise'
),
] ]
); );
} }
@ -1642,9 +1606,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.DOWNTIME', 'type' => 'NOTIF.DOWNTIME',
'title' => __('Scheduled downtime running.'), 'title' => __('Scheduled downtime running.'),
'message' => __('A scheduled downtime is running. Some monitorization data won\'t be available while downtime is taking place.'), 'message' => __('A scheduled downtime is running. Some monitorization data won\'t be available while downtime is taking place.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gagente&sec2=godmode/agentes/planned_downtime.list',
'index.php?sec=gagente&sec2=godmode/agentes/planned_downtime.list'
),
] ]
); );
return; return;
@ -1805,9 +1767,7 @@ class ConsoleSupervisor
date('M j, G:i:s ', $next_downtime_begin), date('M j, G:i:s ', $next_downtime_begin),
date('M j, G:i:s ', $next_downtime_end) date('M j, G:i:s ', $next_downtime_end)
), ),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gagente&sec2=godmode/agentes/planned_downtime.list',
'index.php?sec=gagente&sec2=godmode/agentes/planned_downtime.list'
),
] ]
); );
return; return;
@ -1912,9 +1872,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.SECURITY.DEFAULT_PASSWORD', 'type' => 'NOTIF.SECURITY.DEFAULT_PASSWORD',
'title' => __('Default password for "Admin" user has not been changed.'), 'title' => __('Default password for "Admin" user has not been changed.'),
'message' => __('Please change the default password because is a common vulnerability reported.'), 'message' => __('Please change the default password because is a common vulnerability reported.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gusuarios&sec2=godmode/users/user_list',
'index.php?sec=gusuarios&sec2=godmode/users/user_list'
),
] ]
); );
} else { } else {
@ -1940,9 +1898,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.MISC.FONTPATH', 'type' => 'NOTIF.MISC.FONTPATH',
'title' => __('Default font doesnt exist'), 'title' => __('Default font doesnt exist'),
'message' => __('Your defined font doesnt exist or is not defined. Please check font parameters in your config'), 'message' => __('Your defined font doesnt exist or is not defined. Please check font parameters in your config'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gsetup&sec2=godmode/setup/setup&section=vis',
'index.php?sec=gsetup&sec2=godmode/setup/setup&section=vis'
),
] ]
); );
} else { } else {
@ -1969,7 +1925,7 @@ class ConsoleSupervisor
'Your %s has the "develop_bypass" mode enabled. This is a developer mode and should be disabled in a production system. This value is written in the main index.php file', 'Your %s has the "develop_bypass" mode enabled. This is a developer mode and should be disabled in a production system. This value is written in the main index.php file',
get_product_name() get_product_name()
), ),
'url' => ui_get_full_url('index.php'), 'url' => 'index.php',
] ]
); );
} else { } else {
@ -1992,9 +1948,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.MISC.EVENTSTORMPROTECTION', 'type' => 'NOTIF.MISC.EVENTSTORMPROTECTION',
'title' => __('Event storm protection is activated.'), 'title' => __('Event storm protection is activated.'),
'message' => __('You need to restart server after altering this configuration setting. No events will be generated during this mode.'), 'message' => __('You need to restart server after altering this configuration setting. No events will be generated during this mode.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gsetup&sec2=godmode/setup/setup&section=general',
'index.php?sec=gsetup&sec2=godmode/setup/setup&section=general'
),
] ]
); );
} else { } else {
@ -2021,9 +1975,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.UPDATEMANAGER.OPENSETUP', 'type' => 'NOTIF.UPDATEMANAGER.OPENSETUP',
'title' => __('Error, first setup "Open update".'), 'title' => __('Error, first setup "Open update".'),
'message' => $message, 'message' => $message,
'url' => ui_get_full_url( 'url' => 'index.php?sec=gsetup&sec2=godmode/setup/setup&section=general',
'index.php?sec=gsetup&sec2=godmode/setup/setup&section=general'
),
] ]
); );
} }
@ -2043,9 +1995,7 @@ class ConsoleSupervisor
get_product_name() get_product_name()
), ),
'message' => __('There is a new update available. Please<a style="font-weight:bold;" href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=online"> go to Administration:Setup:Update Manager</a> for more details.'), 'message' => __('There is a new update available. Please<a style="font-weight:bold;" href="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=online"> go to Administration:Setup:Update Manager</a> for more details.'),
'url' => ui_get_full_url( 'url' => 'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=online',
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=online'
),
] ]
); );
} else { } else {
@ -2132,9 +2082,7 @@ class ConsoleSupervisor
'type' => 'NOTIF.CRON.CONFIGURED', 'type' => 'NOTIF.CRON.CONFIGURED',
'title' => __('DiscoveryConsoleTasks is not configured.'), 'title' => __('DiscoveryConsoleTasks is not configured.'),
'message' => __($message_conf_cron), 'message' => __($message_conf_cron),
'url' => ui_get_full_url( 'url' => 'index.php?extension_in_menu=gservers&sec=extensions&sec2=enterprise/extensions/cron',
'index.php?extension_in_menu=gservers&sec=extensions&sec2=enterprise/extensions/cron'
),
] ]
); );
} else { } else {