2007-02-20 02:38:59 +01:00
< ? php
2009-01-24 21:11:07 +01:00
2009-06-08 20:26:14 +02:00
// Pandora FMS - http://pandorafms.com
// ==================================================
2012-10-25 16:39:04 +02:00
// Copyright (c) 2005-2012 Artica Soluciones Tecnologicas
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
// Please see http://pandorafms.org for full contribution list
2007-02-20 02:38:59 +01:00
// This program is free software; you can redistribute it and/or
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; version 2
2007-02-20 02:38:59 +01:00
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2007-02-20 02:38:59 +01:00
// GNU General Public License for more details.
2009-06-08 20:26:14 +02:00
2007-02-20 02:38:59 +01:00
?>
<! DOCTYPE html PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN " >
< html >
2012-09-28 16:06:20 +02:00
< head >
< title > Pandora FMS - Installation Wizard </ title >
< meta http - equiv = " expires " content = " 0 " >
< meta http - equiv = " content-type " content = " text/html; charset=utf-8 " >
< meta name = " resource-type " content = " document " >
< meta name = " distribution " content = " global " >
< meta name = " author " content = " Pandora FMS Development Team " >
< meta name = " copyright " content = " This is GPL software. Created by Sancho Lerena and many others " >
< meta name = " keywords " content = " pandora, fms, monitoring, network, system, GPL, software " >
< meta name = " robots " content = " index, follow " >
< link rel = " icon " href = " images/pandora.ico " type = " image/ico " >
< link rel = " stylesheet " href = " include/styles/install.css " type = " text/css " >
</ head >
< script type = " text/javascript " >
2012-10-25 16:39:04 +02:00
options_text = new Array ( 'An existing Database' , 'A new Database' );
options_values = new Array ( 'db_exist' , 'db_new' );
function ChangeDBDrop ( causer ) {
if ( causer . value != 'db_exist' ) {
window . document . step2_form . drop . checked = 0 ;
window . document . step2_form . drop . disabled = 1 ;
}
else {
window . document . step2_form . drop . disabled = 0 ;
}
2012-09-28 16:06:20 +02:00
}
2012-10-25 16:39:04 +02:00
function ChangeDBAction ( causer ) {
var i = 0 ;
if ( causer . value == 'oracle' ) {
window . document . step2_form . db_action . length = 1 ;
}
else {
window . document . step2_form . db_action . length = 2 ;
}
while ( i < window . document . step2_form . db_action . length ) {
window . document . step2_form . db_action . options [ i ] . value = options_values [ i ];
window . document . step2_form . db_action . options [ i ] . text = options_text [ i ];
i ++ ;
}
window . document . step2_form . db_action . options [ window . document . step2_form . db_action . length - 1 ] . selected = 1 ;
ChangeDBDrop ( window . document . step2_form . db_action );
2012-09-28 16:06:20 +02:00
}
</ script >
< body >
2012-10-25 16:39:04 +02:00
< div style = 'height: 10px' >
< ? php
2014-02-24 16:25:36 +01:00
$version = '5.1dev' ;
2014-05-11 01:38:05 +02:00
$build = '140511' ;
2012-10-25 16:39:04 +02:00
$banner = " v $version Build $build " ;
error_reporting ( 0 );
// ---------------
// Main page code
// ---------------
if ( ! isset ( $_GET [ " step " ])) {
install_step1 ();
}
else {
$step = $_GET [ " step " ];
switch ( $step ) {
case 11 : install_step1_licence ();
break ;
case 2 : install_step2 ();
break ;
case 3 : install_step3 ();
break ;
case 4 : install_step4 ();
break ;
case 5 : install_step5 ();
break ;
}
}
?>
</ div >
</ body >
</ html >
2007-05-27 14:11:15 +02:00
< ? php
2012-02-22 12:23:27 +01:00
function check_extension ( $ext , $label ) {
2007-02-20 02:38:59 +01:00
echo " <tr><td> " ;
2007-06-27 19:45:42 +02:00
echo " <span class='arr'> $label </span> " ;
2007-02-20 02:38:59 +01:00
echo " </td><td> " ;
2012-02-22 12:23:27 +01:00
if ( ! extension_loaded ( $ext )) {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_red.png'> " ;
2007-02-20 02:38:59 +01:00
return 1 ;
2009-12-21 16:23:32 +01:00
}
else {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_green.png'> " ;
2007-02-20 02:38:59 +01:00
return 0 ;
}
echo " </td></tr> " ;
}
2012-02-22 12:23:27 +01:00
function check_include ( $ext , $label ) {
2007-02-20 02:38:59 +01:00
echo " <tr><td> " ;
2007-06-27 19:45:42 +02:00
echo " <span class='arr'> $label </span> " ;
2007-02-20 02:38:59 +01:00
echo " </td><td> " ;
2012-02-22 12:23:27 +01:00
if ( ! include ( $ext )) {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_red.png'> " ;
2007-02-20 02:38:59 +01:00
return 1 ;
2009-12-21 16:23:32 +01:00
}
else {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_green.png'> " ;
2007-02-20 02:38:59 +01:00
return 0 ;
}
echo " </td></tr> " ;
}
2012-02-22 12:23:27 +01:00
function check_exists ( $file , $label ) {
2007-02-20 02:38:59 +01:00
echo " <tr><td> " ;
2007-06-27 19:45:42 +02:00
echo " <span class='arr'> $label </span> " ;
2007-02-20 02:38:59 +01:00
echo " </td><td> " ;
2012-02-22 12:23:27 +01:00
if ( ! file_exists ( $file )) {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_red.png'> " ;
2007-02-20 02:38:59 +01:00
return 1 ;
2009-12-21 16:23:32 +01:00
}
else {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_green.png'> " ;
2007-02-20 02:38:59 +01:00
return 0 ;
}
echo " </td></tr> " ;
}
2012-02-22 12:23:27 +01:00
function check_generic ( $ok , $label ) {
2007-02-20 02:38:59 +01:00
echo " <tr><td> " ;
2007-06-27 19:45:42 +02:00
echo " <span class='arr'> $label </span> " ;
2007-02-20 02:38:59 +01:00
echo " </td><td> " ;
2012-02-22 12:23:27 +01:00
if ( $ok == 0 ) {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_red.png'> " ;
2007-02-20 02:38:59 +01:00
return 1 ;
2009-12-21 16:23:32 +01:00
}
else {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_green.png'> " ;
2007-02-20 02:38:59 +01:00
return 0 ;
}
echo " </td></tr> " ;
}
2012-02-22 12:23:27 +01:00
function check_writable ( $fullpath , $label ) {
2008-09-01 06:22:26 +02:00
echo " <tr><td> " ;
echo " <span class='arr'> $label </span> " ;
echo " </td><td> " ;
if ( file_exists ( $fullpath ))
2012-02-22 12:23:27 +01:00
if ( is_writable ( $fullpath )) {
2008-09-01 06:22:26 +02:00
echo " <img src='images/dot_green.png'> " ;
echo " </td></tr> " ;
return 0 ;
2009-12-21 16:23:32 +01:00
}
else {
2008-09-01 06:22:26 +02:00
echo " <img src='images/dot_red.png'> " ;
echo " </td></tr> " ;
return 1 ;
}
else {
echo " <img src='images/dot_red.png'> " ;
echo " </td></tr> " ;
return 1 ;
}
}
2012-02-22 12:23:27 +01:00
function check_variable ( $var , $value , $label , $mode ) {
2007-02-20 02:38:59 +01:00
echo " <tr><td> " ;
2007-06-27 19:45:42 +02:00
echo " <span class='arr'> $label </span> " ;
2007-02-20 02:38:59 +01:00
echo " </td><td> " ;
2012-02-22 12:23:27 +01:00
if ( $mode == 1 ) {
if ( $var >= $value ) {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_green.png'> " ;
2007-02-20 02:38:59 +01:00
return 0 ;
2009-12-21 16:23:32 +01:00
}
else {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_red.png'> " ;
2007-02-20 02:38:59 +01:00
return 1 ;
}
2009-12-21 16:23:32 +01:00
}
2012-02-22 12:23:27 +01:00
elseif ( $var == $value ) {
2009-12-21 16:23:32 +01:00
echo " <img src='images/dot_green.png'> " ;
return 0 ;
}
else {
2007-06-27 19:45:42 +02:00
echo " <img src='images/dot_red.png'> " ;
2007-02-20 02:38:59 +01:00
return 1 ;
}
echo " </td></tr> " ;
}
2012-02-22 12:23:27 +01:00
function parse_mysql_dump ( $url ) {
if ( file_exists ( $url )) {
2009-01-24 21:11:07 +01:00
$file_content = file ( $url );
$query = " " ;
2012-02-22 12:23:27 +01:00
foreach ( $file_content as $sql_line ) {
2012-10-25 16:39:04 +02:00
if ( trim ( $sql_line ) != " " && strpos ( $sql_line , " -- " ) === false ) {
2007-04-11 05:12:48 +02:00
$query .= $sql_line ;
2012-02-22 12:23:27 +01:00
if ( preg_match ( " /;[ \040 ]* \$ / " , $sql_line )) {
2008-07-07 19:33:31 +02:00
if ( ! $result = mysql_query ( $query )) {
2012-10-25 16:39:04 +02:00
echo mysql_error (); //Uncomment for debug
2010-02-10 18:10:10 +01:00
echo " <i><br> $query <br></i> " ;
2007-04-11 05:12:48 +02:00
return 0 ;
2008-07-07 19:33:31 +02:00
}
2007-04-11 05:12:48 +02:00
$query = " " ;
}
}
}
return 1 ;
}
2009-12-21 16:23:32 +01:00
else
return 0 ;
2007-04-11 05:12:48 +02:00
}
2011-02-27 06:25:53 +01:00
function parse_postgresql_dump ( $connection , $url , $debug = false ) {
2011-02-24 18:54:07 +01:00
if ( file_exists ( $url )) {
$file_content = file ( $url );
$query = " " ;
2012-10-25 16:39:04 +02:00
foreach ( $file_content as $sql_line ) {
2011-02-27 06:25:53 +01:00
$clean_line = trim ( $sql_line );
$comment = preg_match ( " /^( \ s| \t )*--.* $ / " , $clean_line );
2011-02-24 18:54:07 +01:00
if ( $comment ) {
continue ;
}
2011-02-27 06:25:53 +01:00
if ( empty ( $clean_line )) {
continue ;
}
$query .= $clean_line ;
//Check if the end of query with the the semicolon and any returns in the end of line
if ( preg_match ( " /;[ \040 ]* \$ / " , $clean_line )) {
//And execute and clean buffer
pg_send_query ( $connection , $query );
$result = pg_get_result ( $connection );
if ( $debug ) {
var_dump ( $query );
var_dump ( pg_result_error ( $result ));
}
if ( pg_result_status ( $result ) == PGSQL_FATAL_ERROR ) {
echo pg_result_error ( $result );
echo " <i><br> $query <br></i> " ;
return 0 ;
}
$query = " " ;
}
2011-02-24 18:54:07 +01:00
}
return 1 ;
}
else {
return 0 ;
}
}
2011-04-11 19:05:20 +02:00
function parse_oracle_dump ( $connection , $url , $debug = false ) {
if ( file_exists ( $url )) {
$file_content = file ( $url );
$query = " " ;
$plsql_block = false ;
2012-10-25 16:39:04 +02:00
foreach ( $file_content as $sql_line ) {
2011-04-11 19:05:20 +02:00
$clean_line = trim ( $sql_line );
$comment = preg_match ( " /^( \ s| \t )*--.* $ / " , $clean_line );
if ( $comment ) {
continue ;
}
if ( empty ( $clean_line )) {
continue ;
}
//Support for PL/SQL blocks
2012-02-22 12:23:27 +01:00
if ( preg_match ( " /^BEGIN $ / " , $clean_line )) {
2011-04-11 19:05:20 +02:00
$query .= $clean_line . ' ' ;
$plsql_block = true ;
2012-10-25 16:39:04 +02:00
}
2011-04-11 19:05:20 +02:00
else {
$query .= $clean_line ;
2012-10-25 16:39:04 +02:00
}
2011-04-11 19:05:20 +02:00
//Check query's end with a back slash and any returns in the end of line or if it's a PL/SQL block 'END;;' string
if (( preg_match ( " /;[ \040 ]* \$ / " , $clean_line ) && ! $plsql_block ) ||
2012-02-22 12:23:27 +01:00
( preg_match ( " /^END;;[ \040 ]* \$ / " , $clean_line ) && $plsql_block )) {
2011-04-11 19:05:20 +02:00
$plsql_block = false ;
//Execute and clean buffer
//Delete the last semicolon from current query
$query = substr ( $query , 0 , strlen ( $query ) - 1 );
$sql = oci_parse ( $connection , $query );
2012-10-25 16:39:04 +02:00
$result = oci_execute ( $sql );
2011-04-11 19:05:20 +02:00
if ( $debug ) {
var_dump ( $query );
}
if ( ! $result ) {
$e = oci_error ( $sql );
echo " <tr><td><div class='warn'>Errors creating schema:</div><div style= \" overflow:auto; height:50px; \" > " ;
echo htmlentities ( $e [ 'message' ], ENT_QUOTES );
echo " <i><br> $query <br></i> " ;
echo " </div></td></tr> " ;
return 0 ;
}
$query = " " ;
oci_free_statement ( $sql );
}
}
return 1 ;
}
else {
return 0 ;
}
}
2011-04-19 10:09:54 +02:00
function oracle_drop_all_objects ( $connection ) {
2011-05-30 16:40:17 +02:00
//Drop all objects of the current installation
2011-04-19 10:09:54 +02:00
$stmt = oci_parse ( $connection ,
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
" BEGIN " .
" FOR cur_rec IN (SELECT object_name, object_type " .
2013-02-04 13:19:17 +01:00
" FROM user_objects " .
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
" WHERE object_type IN ('TABLE', 'VIEW', 'PACKAGE', 'PROCEDURE', 'FUNCTION', 'SEQUENCE', 'SNAPSHOT', 'MATERIALIZED VIEW')) LOOP " .
" BEGIN " .
" IF cur_rec.object_type = 'TABLE' THEN " .
" EXECUTE IMMEDIATE 'DROP ' || cur_rec.object_type || ' \" ' || cur_rec.object_name || ' \" CASCADE CONSTRAINTS'; " .
" ELSE " .
" EXECUTE IMMEDIATE 'DROP ' || cur_rec.object_type || ' \" ' || cur_rec.object_name || ' \" '; " .
" END IF; " .
" EXCEPTION " .
" WHEN OTHERS THEN " .
" DBMS_OUTPUT.put_line('FAILED: DROP ' || cur_rec.object_type || ' \" ' || cur_rec.object_name || ' \" '); " .
" END; " .
" END LOOP; " .
" END; " );
2011-04-19 10:09:54 +02:00
$result = oci_execute ( $stmt );
oci_free_statement ( $stmt );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-19 10:09:54 +02:00
return 0 ;
}
2012-02-22 12:23:27 +01:00
function random_name ( $size ) {
2007-04-11 05:12:48 +02:00
$temp = " " ;
for ( $a = 0 ; $a < $size ; $a ++ )
$temp = $temp . chr ( rand ( 122 , 97 ));
2009-12-21 16:23:32 +01:00
2007-04-11 05:12:48 +02:00
return $temp ;
}
2012-02-22 12:23:27 +01:00
function print_logo_status ( $step , $step_total ) {
2010-02-10 18:10:10 +01:00
global $banner ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-10-02 16:51:02 +02:00
return "
2010-02-10 18:10:10 +01:00
< div id = 'logo_img' >
2013-10-02 16:51:02 +02:00
< div >
< img src = 'images/pandora_tinylogo_open.png' border = '0' >< br >
2011-06-16 21:26:45 +02:00
< span style = 'font-size: 9px;' > $banner </ span >
2013-10-02 16:51:02 +02:00
</ div >
< div class = 'installation_step' >
2010-02-10 18:10:10 +01:00
< b > Install step $step of $step_total </ b >
2013-10-02 16:51:02 +02:00
</ div >
2010-02-10 18:10:10 +01:00
</ div > " ;
}
2007-04-11 05:12:48 +02:00
function install_step1 () {
2010-02-10 18:10:10 +01:00
global $banner ;
2012-02-22 12:23:27 +01:00
2007-04-11 05:12:48 +02:00
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2013-10-02 16:51:02 +02:00
< div id = 'wizard' >
" . print_logo_status (1,6) . "
2007-04-11 05:12:48 +02:00
< div id = 'install_box' >
2010-02-10 18:10:10 +01:00
< h2 > Welcome to Pandora FMS installation Wizard </ h2 >
2011-06-16 21:26:45 +02:00
< p > This wizard helps you to quick install Pandora FMS console and main database in your system .</ p >
< p > In four steps , this installer will check all dependencies and will create your configuration , ready to use .</ p >
< p > For more information , please refer to documentation .< br >
< i > Pandora FMS Development Team </ i ></ p >
2007-04-11 05:12:48 +02:00
" ;
2012-02-22 12:23:27 +01:00
if ( file_exists ( " include/config.php " )) {
2008-08-27 12:13:25 +02:00
echo " <div class='warn'><b>Warning:</b> You already have a config.php file.
Configuration and database would be overwritten if you continued .</ div > " ;
2007-04-11 05:12:48 +02:00
}
2012-02-22 12:23:27 +01:00
echo " <br> " ;
2013-10-02 16:51:02 +02:00
echo " <table width=100%> " ;
2008-09-18 14:01:32 +02:00
$writable = check_writable ( " include " , " Checking if ./include is writable " );
2008-09-01 06:22:26 +02:00
if ( file_exists ( " include/config.php " ))
$writable += check_writable ( " include/config.php " , " Checking if include/config.php is writable " );
echo " </table> " ;
2012-10-25 16:39:04 +02:00
2008-08-27 12:13:25 +02:00
echo " <div class='warn'><b>Warning:</b> This installer will <b>overwrite and destroy</b>
your existing Pandora FMS configuration and < b > Database </ b >. Before continue ,
please < b > be sure that you have no valuable Pandora FMS data in your Database </ b >.< br >
</ div > " ;
2012-10-25 16:39:04 +02:00
2008-08-27 12:13:25 +02:00
echo " <div class='info'><b>Upgrade</b>:
2013-10-02 16:51:02 +02:00
If you want to upgrade from Pandora FMS 4. x to 5.0 version , please use the migration tool inside / extras directory in this setup .
</ div > " ;
2009-12-21 16:23:32 +01:00
if ( $writable == 0 ) {
2013-10-02 16:51:02 +02:00
echo " </div> " ;
2013-10-28 16:45:33 +01:00
echo " <a id='step11' href='install.php?step=11'><img align='right' style='margin-top: 20px;' src='images/arrow_next.png' border='0'></a> " ;
2009-12-21 16:23:32 +01:00
}
2013-10-02 16:51:02 +02:00
else {
echo " <div class='err'><b>ERROR:</b>You need to setup permissions to be able to write in ./include directory</div> " ;
echo " </div> " ;
}
echo " <div style='clear:both;'></div> " ;
2008-09-01 06:22:26 +02:00
echo "
2007-05-27 14:11:15 +02:00
</ div >
< div id = 'foot_install' >
2011-01-11 21:42:08 +01:00
< i > Pandora FMS is an OpenSource Software project registered at
2008-08-27 12:13:25 +02:00
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
2007-05-27 14:11:15 +02:00
</ div >
2007-04-11 05:12:48 +02:00
</ div > " ;
}
2010-02-10 18:10:10 +01:00
function install_step1_licence () {
echo "
< div id = 'install_container' >
2013-10-02 16:51:02 +02:00
< div id = 'wizard' >
" . print_logo_status (2,6) . "
2010-02-10 18:10:10 +01:00
< div id = 'install_box' >
< h2 > GPL2 Licence terms agreement </ h2 >
< p > Pandora FMS is an OpenSource software project licensed under the GPL2 licence . Pandora FMS includes , as well , another software also licensed under LGPL and BSD licenses . Before continue , < i > you must accept the licence terms .</ i >.
< p > For more information , please refer to our website at http :// pandorafms . org and contact us if you have any kind of question about the usage of Pandora FMS </ p >
< p > If you dont accept the licence terms , please , close your browser and delete Pandora FMS files .</ p >
" ;
2012-10-25 16:39:04 +02:00
2012-02-22 12:23:27 +01:00
if ( ! file_exists ( " COPYING " )) {
2010-07-28 14:16:13 +02:00
echo " <div class='warn'><b>Licence file 'COPYING' is not present in your distribution. This means you have some 'partial' Pandora FMS distribution. We cannot continue without accepting the licence file.</b> " ;
2010-02-10 18:10:10 +01:00
echo " </div> " ;
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
}
else {
2010-02-10 18:10:10 +01:00
echo " <form method=post action='install.php?step=2'> " ;
2013-10-02 16:51:02 +02:00
echo " <textarea name='gpl2' cols=52 rows=15 style='width: 100%;'> " ;
2010-02-10 18:10:10 +01:00
echo file_get_contents ( " COPYING " );
echo " </textarea> " ;
echo " <p> " ;
2013-10-02 16:51:02 +02:00
echo " <div style='text-align: right;'><input type=submit value='Yes, I accept licence terms'></div> " ;
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
}
2010-02-10 18:10:10 +01:00
echo " </div> " ;
2013-10-02 16:51:02 +02:00
2010-02-10 18:10:10 +01:00
echo " </div>
< div style = 'clear: both;height: 1px;' ><!-- --></ div >
< div id = 'foot_install' >
2011-01-11 21:42:08 +01:00
< i > Pandora FMS is an OpenSource Software project registered at
2010-02-10 18:10:10 +01:00
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
</ div >
</ div > " ;
}
2007-04-11 05:12:48 +02:00
2007-02-20 02:38:59 +01:00
function install_step2 () {
2012-10-25 16:39:04 +02:00
2007-02-20 02:38:59 +01:00
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2013-10-02 16:51:02 +02:00
< div id = 'wizard' >
" . print_logo_status (3,6) . "
2007-02-20 02:38:59 +01:00
< div id = 'install_box' > " ;
2008-08-22 20:07:32 +02:00
echo " <h2>Checking software dependencies</h2> " ;
2007-02-20 02:38:59 +01:00
echo " <table border=0 width=230> " ;
$res = 0 ;
2008-10-05 17:00:20 +02:00
$res += check_variable ( phpversion (), " 5.2 " , " PHP version >= 5.2 " , 1 );
$res += check_extension ( " gd " , " PHP GD extension " );
2009-01-20 21:01:25 +01:00
$res += check_extension ( " ldap " , " PHP LDAP extension " );
2007-04-24 15:38:44 +02:00
$res += check_extension ( " snmp " , " PHP SNMP extension " );
2007-02-20 02:38:59 +01:00
$res += check_extension ( " session " , " PHP session extension " );
2008-08-22 20:07:32 +02:00
$res += check_extension ( " gettext " , " PHP gettext extension " );
2010-05-13 11:32:37 +02:00
$res += check_extension ( " mbstring " , " PHP Multibyte String " );
2010-07-08 12:43:43 +02:00
$res += check_extension ( " zip " , " PHP Zip " );
2011-07-20 15:37:07 +02:00
$res += check_extension ( " zlib " , " PHP Zlib extension " );
2010-12-17 14:24:15 +01:00
$res += check_extension ( " curl " , " CURL (Client URL Library) " );
2010-06-29 03:19:44 +02:00
if ( PHP_OS == " FreeBSD " ) {
$res += check_exists ( " /usr/local/bin/twopi " , " Graphviz Binary " );
2010-12-17 14:24:15 +01:00
}
2013-04-07 08:53:53 +02:00
else if ( PHP_OS == " NetBSD " ) {
$res += check_exists ( " /usr/pkg/bin/twopi " , " Graphviz Binary " );
}
2010-12-17 14:24:15 +01:00
else {
2010-06-29 03:19:44 +02:00
$res += check_exists ( " /usr/bin/twopi " , " Graphviz Binary " );
}
2011-02-24 18:54:07 +01:00
echo " <tr><td> " ;
echo " <span style='display: block; font-family: verdana,arial,sans;
font - size : 8.5 pt ; margin - top : 2 px ; font - weight : bolder ; ' > DB Engines </ span > " ;
echo " </td><td> " ;
echo " </td></tr> " ;
check_extension ( " mysql " , " PHP MySQL extension " );
check_extension ( " pgsql " , " PHP PostgreSQL extension " );
2011-04-11 19:05:20 +02:00
check_extension ( " oci8 " , " PHP Oracle extension " );
2013-10-02 16:51:02 +02:00
echo " </table> " ;
2007-02-20 02:38:59 +01:00
if ( $res > 0 ) {
2008-08-27 12:13:25 +02:00
echo "
2013-10-02 16:51:02 +02:00
< div class = 'err' > You have some incomplete
2007-04-11 12:09:09 +02:00
dependencies . Please correct them or this installer
will not be able to finish your installation .
2007-05-27 14:11:15 +02:00
</ div >
2013-10-02 16:51:02 +02:00
< div style = 'text-align: right;' >
Ignore it . < a href = 'install.php?step=3' style = 'font-weight: bolder;' > Force install Step #3</a>
</ div > " ;
echo " </div> " ;
2009-12-21 16:23:32 +01:00
}
else {
2013-10-02 16:51:02 +02:00
echo " </div> " ;
2013-10-28 16:45:33 +01:00
echo " <a id='step3' href='install.php?step=3'><br>
2013-10-02 16:51:02 +02:00
< img align = 'right' src = 'images/arrow_next.png' border = '0' alt = '' ></ a > < div style = 'clear: both;' ><!-- --></ div >
" ;
2007-02-20 02:38:59 +01:00
}
echo "
</ div >
2009-08-19 14:03:45 +02:00
< div style = 'clear: both;' ><!-- --></ div >
2007-05-27 14:11:15 +02:00
</ div >
< div id = 'foot_install' >
2011-01-11 21:42:08 +01:00
< i > Pandora FMS is an OpenSource Software project registered at
2007-05-27 14:11:15 +02:00
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
</ div >
</ div > " ;
2007-02-20 02:38:59 +01:00
}
2007-05-27 14:11:15 +02:00
2007-02-20 02:38:59 +01:00
function install_step3 () {
2011-02-24 18:54:07 +01:00
$options = '' ;
if ( extension_loaded ( " mysql " )) {
$options .= " <option value='mysql'>MySQL</option> " ;
}
if ( extension_loaded ( " pgsql " )) {
$options .= " <option value='pgsql'>PostgreSQL</option> " ;
}
2011-04-11 19:05:20 +02:00
if ( extension_loaded ( " oci8 " )) {
$options .= " <option value='oracle'>Oracle</option> " ;
}
2011-02-24 18:54:07 +01:00
$error = false ;
if ( empty ( $options )) {
$error = true ;
}
2012-10-25 16:39:04 +02:00
2007-02-20 02:38:59 +01:00
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2013-10-02 16:51:02 +02:00
< div id = 'wizard' >
" . print_logo_status (4,6) . "
2007-02-20 02:38:59 +01:00
< div id = 'install_box' >
2008-08-22 20:07:32 +02:00
< h2 > Environment and database setup </ h2 >
2007-02-20 02:38:59 +01:00
< p >
2008-08-27 12:13:25 +02:00
This wizard will create your Pandora FMS database ,
and populate it with all the data needed to run for the first time .
2007-02-20 02:38:59 +01:00
</ p >
< p >
2007-06-02 15:52:45 +02:00
You need a privileged user to create database schema , this is usually < b > root </ b > user .
2011-04-11 19:05:20 +02:00
Information about < b > root </ b > user will not be used or stored anymore .
</ p >
2012-10-25 16:39:04 +02:00
< p >
2011-04-11 19:05:20 +02:00
You can also deploy the scheme into an existing Database .
In this case you need a privileged Database user and password of that instance .
2007-06-02 15:52:45 +02:00
</ p >
< p >
2008-08-27 12:13:25 +02:00
Now , please , complete all details to configure your database and environment setup .
2007-05-27 14:11:15 +02:00
</ p >
2008-08-27 12:13:25 +02:00
< div class = 'warn' >
< b > Warning :</ b > This installer will < b > overwrite and destroy </ b > your existing
Pandora FMS configuration and < b > Database </ b >. Before continue ,
please < b > be sure that you have no valuable Pandora FMS data in your Database .</ b >
< br >< br >
2011-02-24 18:54:07 +01:00
</ div > " ;
2012-10-25 16:39:04 +02:00
2011-04-11 19:05:20 +02:00
if ( extension_loaded ( " oci8 " )) {
echo " <div class='warn'>For Oracle installation an existing Database with a privileged user is needed.</div> " ;
}
2011-02-24 18:54:07 +01:00
if ( ! $error ) {
2011-04-11 19:05:20 +02:00
echo " <form method='post' name='step2_form' action='install.php?step=4'> " ;
2011-02-24 18:54:07 +01:00
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-10-02 16:51:02 +02:00
echo " <table cellpadding=6 width=100% border=0 style='text-align: left;'> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
echo " <tr><td> " ;
2011-06-16 21:26:45 +02:00
echo " DB Engine<br> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-02-24 18:54:07 +01:00
if ( $error ) {
echo "
< div class = 'warn' >
< b > Warning :</ b > You haven ' t a any DB engine with PHP . Please check the previous step to DB engine dependencies .
</ div > " ;
}
else {
2011-04-11 19:05:20 +02:00
echo " <select name='engine' onChange= \" ChangeDBAction(this) \" > " ;
2011-02-24 18:54:07 +01:00
echo $options ;
echo " </select> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
echo " <td> " ;
2011-06-16 21:26:45 +02:00
echo " Installation in <br> " ;
2011-04-11 19:05:20 +02:00
echo " <select name='db_action' onChange= \" ChangeDBDrop(this) \" > " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
echo " <option value='db_new'>A new Database</option> " ;
echo " <option value='db_exist'>An existing Database</option> " ;
2011-04-11 19:05:20 +02:00
echo " </select> " ;
2011-02-24 18:54:07 +01:00
}
2011-06-16 21:26:45 +02:00
echo " <tr><td>DB User with privileges<br>
2013-10-02 16:51:02 +02:00
< input class = 'login' type = 'text' name = 'user' value = 'root' size = 20 >
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-06-16 21:26:45 +02:00
< td > DB Password for this user < br >
2013-10-02 16:51:02 +02:00
< input class = 'login' type = 'password' name = 'pass' value = '' size = 20 >
2007-04-11 05:12:48 +02:00
2011-06-16 21:26:45 +02:00
< tr >< td > DB Hostname < br >
2013-10-02 16:51:02 +02:00
< input class = 'login' type = 'text' name = 'host' value = 'localhost' size = 20 >
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-06-16 21:26:45 +02:00
< td > DB Name ( pandora by default ) < br >
2013-10-02 16:51:02 +02:00
< input class = 'login' type = 'text' name = 'dbname' value = 'pandora' size = 20 >
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
< tr >< td valign = top >
2011-06-16 21:26:45 +02:00
Drop Database if exists < br >
2011-05-11 14:15:14 +02:00
< input class = 'login' type = 'checkbox' name = 'drop' value = 1 disabled >
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-06-16 21:26:45 +02:00
< td > Full path to HTTP publication directory < br >
< span style = 'font-size: 9px' > For example / var / www / pandora_console /</ span >
< br >
< input class = 'login' type = 'text' name = 'path' style = 'width: 240px;'
2008-09-03 17:47:09 +02:00
value = '".dirname (__FILE__)."' >
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-10-02 16:51:02 +02:00
< tr >< td ></ td >< td > URL path to Pandora FMS Console < br >
2011-06-16 21:26:45 +02:00
< span style = 'font-size: 9px' > For example '/pandora_console' </ span >
</ br >
2008-08-27 12:13:25 +02:00
< input class = 'login' type = 'text' name = 'url' style = 'width: 250px;'
2009-01-24 21:11:07 +01:00
value = '".dirname ($_SERVER["SCRIPT_NAME"])."' >
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
</ table >
" ;
2011-02-24 18:54:07 +01:00
2013-10-02 16:51:02 +02:00
echo " </div> " ;
2011-02-24 18:54:07 +01:00
if ( ! $error ) {
2013-10-02 16:51:02 +02:00
echo " <input type='image' src='images/arrow_next.png' value='Step #4' id='step4'> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
}
2013-10-02 16:51:02 +02:00
echo " </form> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-10-02 16:51:02 +02:00
echo " <div style='clear:both;'></div> " ;
2011-02-24 18:54:07 +01:00
echo " </div>
2007-05-27 14:11:15 +02:00
< div id = 'foot_install' >
2008-09-01 06:22:26 +02:00
< i > Pandora FMS is an OpenSource Software project registered at
2007-05-27 14:11:15 +02:00
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
2007-02-20 02:38:59 +01:00
</ div >
</ div > " ;
}
function install_step4 () {
$pandora_config = " include/config.php " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2008-08-27 12:13:25 +02:00
if ( ( ! isset ( $_POST [ " user " ])) || ( ! isset ( $_POST [ " dbname " ])) || ( ! isset ( $_POST [ " host " ])) ||
2011-04-11 19:05:20 +02:00
( ! isset ( $_POST [ " pass " ])) || ( ! isset ( $_POST [ 'engine' ])) || ( ! isset ( $_POST [ " db_action " ])) ) {
2007-02-20 02:38:59 +01:00
$dbpassword = " " ;
$dbuser = " " ;
$dbhost = " " ;
2007-04-11 05:12:48 +02:00
$dbname = " " ;
2011-02-24 18:54:07 +01:00
$engine = " " ;
2011-04-11 19:05:20 +02:00
$dbaction = " " ;
2009-12-21 16:23:32 +01:00
}
else {
2011-02-24 18:54:07 +01:00
$engine = $_POST [ 'engine' ];
2007-02-20 02:38:59 +01:00
$dbpassword = $_POST [ " pass " ];
$dbuser = $_POST [ " user " ];
$dbhost = $_POST [ " host " ];
2011-04-11 19:05:20 +02:00
$dbaction = $_POST [ " db_action " ];
2009-05-13 19:00:58 +02:00
if ( isset ( $_POST [ " drop " ]))
$dbdrop = $_POST [ " drop " ];
else
$dbdrop = 0 ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2007-04-11 05:12:48 +02:00
$dbname = $_POST [ " dbname " ];
2007-02-20 02:38:59 +01:00
if ( isset ( $_POST [ " url " ]))
$url = $_POST [ " url " ];
else
$url = " http://localhost " ;
2014-04-24 12:45:33 +02:00
if ( isset ( $_POST [ " path " ])) {
2007-02-20 02:38:59 +01:00
$path = $_POST [ " path " ];
2014-04-24 12:45:33 +02:00
$path = str_replace ( " \\ " , " / " , $path ); // Windows compatibility
}
2007-02-20 02:38:59 +01:00
else
$path = " /var/www " ;
}
$everything_ok = 0 ;
$step1 = 0 ;
$step2 = 0 ;
$step3 = 0 ;
$step4 = 0 ; $step5 = 0 ; $step6 = 0 ; $step7 = 0 ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2007-02-20 02:38:59 +01:00
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2013-10-02 16:51:02 +02:00
< div id = 'wizard' >
" . print_logo_status(5,6) . "
2007-02-20 02:38:59 +01:00
< div id = 'install_box' >
2008-08-22 20:07:32 +02:00
< h2 > Creating database and default configuration file </ h2 >
2013-10-02 16:51:02 +02:00
< table width = '100%' > " ;
2011-02-24 18:54:07 +01:00
switch ( $engine ) {
case 'mysql' :
if ( ! mysql_connect ( $dbhost , $dbuser , $dbpassword )) {
check_generic ( 0 , " Connection with Database " );
}
else {
check_generic ( 1 , " Connection with Database " );
2011-04-11 19:05:20 +02:00
// Drop database if needed and don't want to install over an existing DB
2011-04-19 10:09:54 +02:00
if ( $dbdrop == 1 ) {
2012-10-25 16:39:04 +02:00
mysql_query ( " DROP DATABASE IF EXISTS ` $dbname ` " );
2011-02-27 06:25:53 +01:00
}
2011-02-24 18:54:07 +01:00
// Create schema
2012-02-22 12:23:27 +01:00
if ( $dbaction == 'db_new' || $dbdrop == 1 ) {
2012-10-25 16:39:04 +02:00
$step1 = mysql_query ( " CREATE DATABASE ` $dbname ` " );
2011-04-11 19:05:20 +02:00
check_generic ( $step1 , " Creating database ' $dbname ' " );
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
else {
2011-04-11 19:05:20 +02:00
$step = 1 ;
}
2011-02-24 18:54:07 +01:00
if ( $step1 == 1 ) {
$step2 = mysql_select_db ( $dbname );
check_generic ( $step2 , " Opening database ' $dbname ' " );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-02-24 18:54:07 +01:00
$step3 = parse_mysql_dump ( " pandoradb.sql " );
check_generic ( $step3 , " Creating schema " );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-02-24 18:54:07 +01:00
$step4 = parse_mysql_dump ( " pandoradb_data.sql " );
check_generic ( $step4 , " Populating database " );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-02-24 18:54:07 +01:00
$random_password = random_name ( 8 );
$host = 'localhost' ;
if ( $dbhost != 'localhost' )
$host = $_SERVER [ 'SERVER_ADDR' ];
2012-10-25 16:39:04 +02:00
$step5 = mysql_query ( " GRANT ALL PRIVILEGES ON ` $dbname `.* to pandora@ $host
IDENTIFIED BY '".$random_password."' " );
2011-02-24 18:54:07 +01:00
mysql_query ( " FLUSH PRIVILEGES " );
check_generic ( $step5 , " Established privileges for user pandora. A new random password has been generated: <b> $random_password </b><div class='warn'>Please write it down, you will need to setup your Pandora FMS server, editing the </i>/etc/pandora/pandora_server.conf</i> file</div> " );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-02-24 18:54:07 +01:00
$step6 = is_writable ( " include " );
check_generic ( $step6 , " Write permissions to save config file in './include' " );
2012-10-25 16:39:04 +02:00
2011-02-24 18:54:07 +01:00
$cfgin = fopen ( " include/config.inc.php " , " r " );
$cfgout = fopen ( $pandora_config , " w " );
$config_contents = fread ( $cfgin , filesize ( " include/config.inc.php " ));
2011-02-27 06:25:53 +01:00
$dbtype = 'mysql' ;
2011-02-24 18:54:07 +01:00
$config_new = ' < ? php
// Begin of automatic config file
2011-02-27 06:25:53 +01:00
$config [ " dbtype " ] = " ' . $dbtype . ' " ; //DB type (mysql, postgresql...in future others)
2011-02-24 18:54:07 +01:00
$config [ " dbname " ] = " '. $dbname .' " ; // MySQL DataBase name
$config [ " dbuser " ] = " pandora " ; // DB User
$config [ " dbpass " ] = " '. $random_password .' " ; // DB Password
$config [ " dbhost " ] = " '. $dbhost .' " ; // DB Host
$config [ " homedir " ] = " '. $path .' " ; // Config homedir
2012-09-28 16:06:20 +02:00
/*
---------- Attention --------------------
Please note that in certain installations :
- reverse proxy .
- web server in other ports .
- https
This variable might be dynamically altered .
But it is save as backup in the
$config [ " homeurl_static " ]
for expecial needs .
---------- Attention --------------------
*/
2011-02-24 18:54:07 +01:00
$config [ " homeurl " ] = " '. $url .' " ; // Base URL
2012-09-28 16:06:20 +02:00
$config [ " homeurl_static " ] = " '. $url .' " ; // Don\'t delete
2011-02-24 18:54:07 +01:00
// End of automatic config file
?> ';
$step7 = fputs ( $cfgout , $config_new );
$step7 = $step7 + fputs ( $cfgout , $config_contents );
if ( $step7 > 0 )
$step7 = 1 ;
fclose ( $cfgin );
fclose ( $cfgout );
chmod ( $pandora_config , 0600 );
check_generic ( $step7 , " Created new config file at ' " . $pandora_config . " ' " );
}
}
if (( $step7 + $step6 + $step5 + $step4 + $step3 + $step2 + $step1 ) == 7 ) {
$everything_ok = 1 ;
}
break ;
2011-04-11 19:05:20 +02:00
case 'oracle' :
$connection = oci_connect ( $dbuser , $dbpassword , '//' . $dbhost . '/' . $dbname );
2012-02-22 12:23:27 +01:00
if ( ! $connection ) {
2011-04-11 19:05:20 +02:00
check_generic ( 0 , " Connection with Database " );
}
else {
2012-10-25 16:39:04 +02:00
check_generic ( 1 , " Connection with Database " );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-19 10:09:54 +02:00
// Drop all objects if needed
if ( $dbdrop == 1 ) {
oracle_drop_all_objects ( $connection );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
}
2012-10-25 16:39:04 +02:00
$step1 = parse_oracle_dump ( $connection , " pandoradb.oracle.sql " );
2011-04-11 19:05:20 +02:00
check_generic ( $step1 , " Creating schema " );
if ( $step1 ) {
$step2 = parse_oracle_dump ( $connection , " pandoradb.data.oracle.sql " );
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-11 19:05:20 +02:00
check_generic ( $step2 , " Populating database " );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-11 19:05:20 +02:00
echo " <tr><td><div class='warn'>Please, you will need to setup your Pandora FMS server, editing the </i>/etc/pandora/pandora_server.conf</i> file and set database password.</div></tr></td> " ;
if ( $step2 ) {
$step3 = is_writable ( " include " );
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-11 19:05:20 +02:00
check_generic ( $step3 , " Write permissions to save config file in './include' " );
if ( $step3 ) {
$cfgin = fopen ( " include/config.inc.php " , " r " );
$cfgout = fopen ( $pandora_config , " w " );
$config_contents = fread ( $cfgin , filesize ( " include/config.inc.php " ));
$dbtype = 'oracle' ;
$config_new = ' < ? php
// Begin of automatic config file
$config [ " dbtype " ] = " ' . $dbtype . ' " ; //DB type (mysql, postgresql, oracle)
$config [ " dbname " ] = " ' . $dbname . ' " ; // Oracle DataBase name
$config [ " dbuser " ] = " ' . $dbuser . ' " ; // DB User
$config [ " dbpass " ] = " ' . $dbpassword . ' " ; // DB Password
$config [ " dbhost " ] = " ' . $dbhost . ' " ; // DB Host
$config [ " homedir " ] = " ' . $path . ' " ; // Config homedir
2012-09-28 16:06:20 +02:00
/*
---------- Attention --------------------
Please note that in certain installations :
- reverse proxy .
- web server in other ports .
- https
This variable might be dynamically altered .
But it is save as backup in the
$config [ " homeurl_static " ]
for expecial cases .
---------- Attention --------------------
*/
2011-04-11 19:05:20 +02:00
$config [ " homeurl " ] = " ' . $url . ' " ; // Base URL
2012-09-28 16:06:20 +02:00
$config [ " homeurl_static " ] = " '. $url .' " ; // Don\'t delete
2011-04-11 19:05:20 +02:00
// End of automatic config file
?> ';
$step4 = fputs ( $cfgout , $config_new );
$step4 = $step4 + fputs ( $cfgout , $config_contents );
if ( $step4 > 0 )
$step4 = 1 ;
fclose ( $cfgin );
fclose ( $cfgout );
chmod ( $pandora_config , 0600 );
}
check_generic ( $step4 , " Created new config file at ' " . $pandora_config . " ' " );
if (( $step4 + $step3 + $step2 + $step1 ) == 4 ) {
$everything_ok = 1 ;
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-11 19:05:20 +02:00
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
break ;
2011-02-24 18:54:07 +01:00
case 'pgsql' :
$step1 = $step2 = $step3 = $step4 = $step5 = $step6 = $step7 = 0 ;
$connection = pg_connect ( " host=' " . $dbhost . " ' user=' " . $dbuser . " ' password=' " . $dbpassword . " ' " );
if ( $connection === false ) {
check_generic ( 0 , " Connection with Database " );
}
else {
check_generic ( 1 , " Connection with Database " );
2007-02-20 02:38:59 +01:00
2011-04-19 10:09:54 +02:00
// Drop database if needed
if ( $dbdrop == 1 && $dbaction == 'db_exist' ) {
2011-02-27 06:25:53 +01:00
$result = pg_query ( $connection , " DROP DATABASE \" " . $dbname . " \" ; " );
2011-02-24 18:54:07 +01:00
}
2012-02-22 12:23:27 +01:00
if ( $dbaction != 'db_exist' || $dbdrop == 1 ) {
2011-04-11 19:05:20 +02:00
pg_send_query ( $connection , " CREATE DATABASE \" " . $dbname . " \" WITH ENCODING 'utf8'; " );
$result = pg_get_result ( $connection );
if ( pg_result_status ( $result ) != PGSQL_FATAL_ERROR ) {
$step1 = 1 ;
}
check_generic ( $step1 , " Creating database ' $dbname ' " );
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
else {
2011-02-24 18:54:07 +01:00
$step1 = 1 ;
}
check_generic ( $step1 , " Creating database ' $dbname ' " );
if ( $step1 == 1 ) {
//Reopen DB because I don't know how to use DB in PostgreSQL
pg_close ( $connection );
$connection = pg_connect ( " host=' " . $dbhost . " ' dbname=' " . $dbname .
" ' user=' " . $dbuser . " ' password=' " . $dbpassword . " ' " );
if ( $connection !== false ) {
$step2 = 1 ;
}
}
check_generic ( $step2 , " Opening database ' $dbname ' " );
if ( $step2 ) {
2011-02-27 06:25:53 +01:00
$step3 = parse_postgresql_dump ( $connection , " pandoradb.postgreSQL.sql " );
}
check_generic ( $step3 , " Creating schema " );
if ( $step3 ) {
$step4 = parse_postgresql_dump ( $connection , " pandoradb.data.postgreSQL.sql " );
}
check_generic ( $step4 , " Populating database " );
if ( $step4 ) {
$random_password = random_name ( 8 );
pg_query ( $connection , " DROP USER pandora " );
pg_send_query ( $connection , " CREATE USER pandora WITH PASSWORD ' " . $random_password . " ' " );
$result = pg_get_result ( $connection );
if ( pg_result_status ( $result ) != PGSQL_FATAL_ERROR ) {
//Set the privileges for DB
2011-03-01 19:53:24 +01:00
pg_send_query ( $connection , " GRANT ALL PRIVILEGES ON DATABASE pandora TO pandora; " );
2011-02-27 06:25:53 +01:00
$result = pg_get_result ( $connection );
$setDBPrivileges = 0 ;
if ( pg_result_status ( $result ) != PGSQL_FATAL_ERROR ) {
$setDBPrivileges = 1 ;
}
if ( $setDBPrivileges ) {
//Set the privileges for each tables.
pg_send_query ( $connection , " SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'; " );
$result = pg_get_result ( $connection );
$tables = array ();
while ( $row = pg_fetch_assoc ( $result )) {
$tables [] = $row [ 'table_name' ];
}
$correct = 1 ;
foreach ( $tables as $table ) {
2011-03-01 19:53:24 +01:00
pg_send_query ( $connection , " GRANT ALL PRIVILEGES ON TABLE " . $table . " TO pandora; " );
$result = pg_get_result ( $connection );
if ( pg_result_status ( $result ) == PGSQL_FATAL_ERROR ) {
$correct = 0 ;
break ;
}
//For each table make owner pandora
pg_send_query ( $connection , " ALTER TABLE " . $table . " OWNER TO pandora; " );
2011-02-27 06:25:53 +01:00
$result = pg_get_result ( $connection );
if ( pg_result_status ( $result ) == PGSQL_FATAL_ERROR ) {
$correct = 0 ;
break ;
}
//INI ----- Grant for secuences
pg_send_query ( $connection , " SELECT column_name FROM information_schema.columns WHERE table_name = ' " . $table . " '; " );
$result2 = pg_get_result ( $connection );
$columns = array ();
while ( $row = pg_fetch_assoc ( $result2 )) {
$columns [] = $row [ 'column_name' ];
}
//Check for each column if it have a sequence to grant
foreach ( $columns as $column ) {
pg_send_query ( $connection , " SELECT pg_get_serial_sequence(' " . $table . " ', ' " . $column . " '); " );
$result3 = pg_get_result ( $connection );
$sequence = pg_fetch_assoc ( $result3 );
if ( ! empty ( $sequence [ 'pg_get_serial_sequence' ])) {
pg_send_query ( $connection , " GRANT ALL PRIVILEGES ON SEQUENCE " . $sequence [ 'pg_get_serial_sequence' ] . " to pandora; " );
$result4 = pg_get_result ( $connection );
if ( pg_result_status ( $result4 ) == PGSQL_FATAL_ERROR ) {
$correct = 0 ;
break ;
}
}
}
//END ----- Grant for secuences
}
if ( $correct ) {
$step5 = 1 ;
}
}
}
}
check_generic ( $step5 , " Established privileges for user pandora. A new random password has been generated: <b> $random_password </b><div class='warn'>Please write it down, you will need to setup your Pandora FMS server, editing the </i>/etc/pandora/pandora_server.conf</i> file</div> " );
if ( $step5 ) {
$step6 = is_writable ( " include " );
}
check_generic ( $step6 , " Write permissions to save config file in './include' " );
if ( $step6 ) {
$cfgin = fopen ( " include/config.inc.php " , " r " );
$cfgout = fopen ( $pandora_config , " w " );
$config_contents = fread ( $cfgin , filesize ( " include/config.inc.php " ));
$dbtype = 'postgresql' ;
$config_new = ' < ? php
// Begin of automatic config file
$config [ " dbtype " ] = " ' . $dbtype . ' " ; //DB type (mysql, postgresql...in future others)
$config [ " dbname " ] = " '. $dbname .' " ; // MySQL DataBase name
$config [ " dbuser " ] = " pandora " ; // DB User
$config [ " dbpass " ] = " '. $random_password .' " ; // DB Password
$config [ " dbhost " ] = " '. $dbhost .' " ; // DB Host
$config [ " homedir " ] = " '. $path .' " ; // Config homedir
2012-09-28 16:06:20 +02:00
/*
---------- Attention --------------------
Please note that in certain installations :
- reverse proxy .
- web server in other ports .
- https
This variable might be dynamically altered .
But it is save as backup in the
$config [ " homeurl_static " ]
for expecial cases .
---------- Attention --------------------
*/
2011-02-27 06:25:53 +01:00
$config [ " homeurl " ] = " '. $url .' " ; // Base URL
2012-09-28 16:06:20 +02:00
$config [ " homeurl_static " ] = " '. $url .' " ; // Don\'t delete
2011-02-27 06:25:53 +01:00
// End of automatic config file
?> ';
$step7 = fputs ( $cfgout , $config_new );
$step7 = $step7 + fputs ( $cfgout , $config_contents );
if ( $step7 > 0 )
$step7 = 1 ;
fclose ( $cfgin );
fclose ( $cfgout );
chmod ( $pandora_config , 0600 );
}
check_generic ( $step7 , " Created new config file at ' " . $pandora_config . " ' " );
if (( $step7 + $step6 + $step5 + $step4 + $step3 + $step2 + $step1 ) == 7 ) {
$everything_ok = 1 ;
2011-02-24 18:54:07 +01:00
}
}
break ;
2007-02-20 02:38:59 +01:00
}
2013-10-02 16:51:02 +02:00
echo " </table> " ;
2007-02-20 02:38:59 +01:00
if ( $everything_ok == 1 ) {
2013-10-02 16:51:02 +02:00
echo " </div> " ;
2013-10-28 16:45:33 +01:00
echo " <div style='margin-top: 20px;'><a id='step5' href='install.php?step=5'>
2013-10-02 16:51:02 +02:00
< img align = 'right' src = 'images/arrow_next.png' border = '0' alt = '' ></ a ></ div > " ;
2009-12-21 16:23:32 +01:00
}
else {
2013-10-02 16:51:02 +02:00
$info = " <div class='err'><b>There were some problems.
2009-04-29 12:01:25 +02:00
Installation was not completed .</ b >
2007-05-27 14:11:15 +02:00
< p > Please correct failures before trying again .
2011-04-11 19:05:20 +02:00
All database " ;
if ( $engine == 'oracle' )
$info .= " objects " ;
else
$info .= " schemes " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-04-11 19:05:20 +02:00
$info .= " created in this step have been dropped. </p>
2008-08-27 12:13:25 +02:00
</ div > " ;
2011-04-11 19:05:20 +02:00
echo $info ;
2011-02-24 18:54:07 +01:00
switch ( $engine ) {
case 'mysql' :
if ( mysql_error () != " " ) {
2013-10-02 16:51:02 +02:00
echo " <div class='err'> <b>ERROR:</b> " . mysql_error () . " .</div> " ;
2011-02-24 18:54:07 +01:00
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2011-02-24 18:54:07 +01:00
if ( $step1 == 1 ) {
mysql_query ( " DROP DATABASE $dbname " );
}
break ;
case 'pgsql' :
break ;
2011-04-11 19:05:20 +02:00
case 'oracle' :
2011-04-19 10:09:54 +02:00
oracle_drop_all_objects ( $connection );
2011-04-11 19:05:20 +02:00
break ;
2011-02-24 18:54:07 +01:00
}
2013-10-02 16:51:02 +02:00
echo " </div> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
}
2013-10-02 16:51:02 +02:00
echo " <div style='clear: both;'></div> " ;
2007-02-20 02:38:59 +01:00
echo "
</ div >
2013-10-02 16:51:02 +02:00
< div id = 'foot_install' >
< i > Pandora FMS is an Open Source Software project registered at
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
</ div >
</ div > " ;
2007-02-20 02:38:59 +01:00
}
2007-05-27 14:11:15 +02:00
2007-02-20 02:38:59 +01:00
function install_step5 () {
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2013-10-02 16:51:02 +02:00
< div id = 'wizard' >
" . print_logo_status (6,6) . "
2007-02-20 02:38:59 +01:00
< div id = 'install_box' >
2008-08-22 20:07:32 +02:00
< h2 > Installation complete </ h2 >
2009-04-29 12:01:25 +02:00
< p > For security , you now must manually delete this installer
( '<i>install.php</i>' ) file before trying to access to your Pandora FMS console .
< p > You should also install Pandora FMS Servers before trying to monitor anything ;
2008-08-27 12:13:25 +02:00
please read documentation on how to install it .</ p >
2010-05-13 18:44:27 +02:00
< p > Default user is < b > 'admin' </ b > with password < b > 'pandora' </ b > ,
please change it both as soon as possible .</ p >
2008-08-27 12:13:25 +02:00
< p > Don 't forget to check <a href=' http :// pandorafms . com ' > http :// pandorafms . com </ a >
for updates .
2013-10-28 16:45:33 +01:00
< p >< br >< b >< a id = 'access_pandora' href = 'index.php' > Click here to access to your Pandora FMS console </ a >.</ b >
2008-08-27 12:13:25 +02:00
</ p >
2010-02-10 18:10:10 +01:00
</ div > " ;
echo " </div>
2007-05-27 14:11:15 +02:00
< div id = 'foot_install' >
2010-05-13 18:44:27 +02:00
< i > Pandora FMS is an OpenSource Software project registered at
2007-02-20 02:38:59 +01:00
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
</ div >
</ div > " ;
}
2012-12-10 20:14:42 +01:00
?>