2010-03-06 SAncho Lerena <slerena@artica.es>

* install.php: Fixed width of textarea, too small.

        * extensions/dbmanager.php,
        extensions/plugin_registration.php
        extensions/pandora_logs.php: Added missing ACL checks.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2010-03-06 13:45:48 +00:00
parent 6112bdcd1a
commit 5c7fa42816
5 changed files with 31 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2010-03-06 SAncho Lerena <slerena@artica.es>
* install.php: Fixed width of textarea, too small.
* extensions/dbmanager.php,
extensions/plugin_registration.php
extensions/pandora_logs.php: Added missing ACL checks.
2010-03-05 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql: changed some the descriptions text of table

View File

@ -49,6 +49,14 @@ function dbmanager_query ($sql, &$error) {
function dbmgr_extension_main () {
require_css_file ('dbmanager', 'extensions/dbmanager/');
global $config;
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation", "Trying to access Setup Management");
require ("general/noaccess.php");
return;
}
$sql = (string) get_parameter ('sql');
print_page_header (__('Database interface'), "", false, false, true);

View File

@ -36,6 +36,14 @@ function view_logfile ($file_name) {
function pandoralogs_extension_main () {
global $config;
global $config;
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation", "Trying to access Setup Management");
require ("general/noaccess.php");
return;
}
print_page_header (__("System logfile viewer"), "images/extensions.png", false, "", true, "" );
echo "<p>This tool is used just to view your Pandora FMS system logfiles directly from console</p>";

View File

@ -14,7 +14,12 @@
function pluginreg_extension_main () {
global $config;
global $config;
if (! give_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation", "Trying to access Setup Management");
require ("general/noaccess.php");
return;
}
print_page_header (__('Plugin registration'), "images/extensions.png", false, "", true, "" );

View File

@ -267,7 +267,7 @@ function install_step1_licence() {
} else {
echo "<form method=post action='install.php?step=2'>";
echo "<textarea name='gpl2' cols=45 rows=15>";
echo "<textarea name='gpl2' cols=50 rows=17>";
echo file_get_contents ("COPYING");
echo "</textarea>";
echo "<p>";