2007-02-20 02:38:59 +01:00
< ? php
// Pandora FMS - the Free monitoring system
// ========================================
// Copyright (c) 2004-2007 Sancho Lerena, slerena@openideas.info
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas
// Copyright (c) 2004-2007 Raul Mateos Martin, raulofpandora@gmail.com
// Copyright (c) 2006-2007 Jose Navarro jose@jnavarro.net
// Copyright (c) 2006-2007 Jonathan Barajas, jonathan.barajas[AT]gmail[DOT]com
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
?>
<! DOCTYPE html PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN " >
< html >
< head >
< title > Pandora FMS - Installation Wizard </ title >
< meta http - equiv = " expires " content = " 0 " >
< meta http - equiv = " content-type " content = " text/html; charset=ISO-8859-15 " >
< meta name = " resource-type " content = " document " >
< meta name = " distribution " content = " global " >
< meta name = " author " content = " Sancho Lerena, Raul Mateos " >
< meta name = " copyright " content = " This is GPL software. Created by Sancho Lerena and 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 " >
2007-06-02 15:52:45 +02:00
< link rel = " stylesheet " href = " include/styles/pandora_minimal.css " type = " text/css " >
2007-05-27 14:11:15 +02:00
< link rel = " stylesheet " href = " include/styles/install.css " type = " text/css " >
</ head >
< body >
< ? php
2007-02-20 02:38:59 +01:00
error_reporting ( 0 );
function check_extension ( $ext , $label ){
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> " ;
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 ;
} 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> " ;
}
function check_include ( $ext , $label ){
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> " ;
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 ;
} 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> " ;
}
function check_exists ( $file , $label ){
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> " ;
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 ;
} 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> " ;
}
function check_generic ( $ok , $label ){
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> " ;
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 ;
} 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> " ;
}
function check_variable ( $var , $value , $label , $mode ){
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> " ;
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 ;
} 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 ;
}
} elseif ( $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 ;
} 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> " ;
}
2007-04-11 05:12:48 +02:00
function parse_mysql_dump ( $url ){
if ( file_exists ( $url )){
$file_content = file ( $url );
$query = " " ;
foreach ( $file_content as $sql_line ){
if ( trim ( $sql_line ) != " " && strpos ( $sql_line , " -- " ) === false ){
$query .= $sql_line ;
if ( preg_match ( " /;[ \040 ]* \$ / " , $sql_line )){
if ( ! $result = mysql_query ( $query ))
return 0 ;
$query = " " ;
}
}
}
return 1 ;
} else {
return 0 ;
}
}
function random_name ( $size ){
$temp = " " ;
for ( $a = 0 ; $a < $size ; $a ++ )
$temp = $temp . chr ( rand ( 122 , 97 ));
return $temp ;
}
function install_step1 () {
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2007-04-24 15:38:44 +02:00
< h1 > Pandora FMS installation wizard . Step #1 of 4</h1>
2007-08-17 18:10:55 +02:00
< div id = 'wizard' style = 'height: 360px;' >
2007-04-11 05:12:48 +02:00
< div id = 'install_box' >
2007-07-28 20:11:48 +02:00
< h1 > Welcome to Pandora FMS 1.3 installation Wizard </ h1 >
2007-04-11 05:12:48 +02:00
< p > This wizard helps you to quick install Pandora FMS console in your system .</ p >
2007-07-28 20:11:48 +02:00
< p > In four steps checks all dependencies and make your configuration for a quick installation .</ p >
2007-04-11 05:12:48 +02:00
< p > For more information , please refer to documentation .</ p >
2007-05-27 14:11:15 +02:00
< i > Pandora FMS Development Team </ i >
2007-04-11 05:12:48 +02:00
" ;
if ( file_exists ( " include/config.php " )){
2007-05-27 14:11:15 +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
}
2007-07-28 20:11:48 +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 contine, please <b>be sure that you have no valuable Pandora FMS data in your Database.</b><br></div> " ;
2007-08-17 18:10:55 +02:00
echo " <div class='info'>If you want to <b>upgrade</b> Pandora FMS 1.2 to 1.3 version, use the <a href='migrate.php'>automated migration wizard</a></div> " ;
2007-04-11 05:12:48 +02:00
echo "
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'logo_img' >
2007-06-02 15:52:45 +02:00
< img src = 'images/pandora_logo.png' border = '0' >< br >
2007-04-11 05:12:48 +02:00
< img src = 'images/step0.png' border = '0' >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'install_img' >
2007-04-11 05:12:48 +02:00
< a href = 'install.php?step=2' >< img align = 'right' src = 'images/arrow_next.png' border = 0 ></ a >
</ div >
2007-05-27 14:11:15 +02:00
</ div >
< div id = 'foot_install' >
2007-07-28 20:11:48 +02:00
< i > Pandora FMS is a Free Software project registered at < 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 > " ;
}
2007-02-20 02:38:59 +01:00
function install_step2 () {
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2007-04-24 15:38:44 +02:00
< h1 > Pandora FMS console installation wizard . Step #2 of 4</h1>
< div id = 'wizard' style = 'height: 300px;' >
2007-02-20 02:38:59 +01:00
< div id = 'install_box' > " ;
echo " <h1>Checking software dependencies</h1> " ;
echo " <table border=0 width=230> " ;
$res = 0 ;
$res += check_variable ( phpversion (), " 4.3 " , " PHP version >= 4.3.x " , 1 );
$res += check_extension ( " mysql " , " PHP MySQL extension " );
//$res += check_extension("curl","PHP Curl extension");
$res += check_extension ( " gd " , " PHP gd 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 " );
$res += check_include ( " PEAR.php " , " PEAR PHP Library " );
//$res += check_exists ("/usr/bin/pdflatex","PDF Latex in /usr/bin/pdflatex");
echo " </table>
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'logo_img' >
2007-06-02 15:52:45 +02:00
< img src = 'images/pandora_logo.png' border = '0' ' alt=' ' >< br >
2007-02-20 02:38:59 +01:00
< img src = 'images/step1.png' border = '0' alt = '' >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'install_img' > " ;
2007-02-20 02:38:59 +01:00
if ( $res > 0 ) {
2007-05-27 14:11:15 +02:00
echo " <div class='warn'>You have some uncomplete
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 >
2007-02-20 02:38:59 +01:00
Ignore it . < a href = 'install.php?step=3' > Force install Step #3</a>";
} else {
echo " <a href='install.php?step=3'><img align='right' src='images/arrow_next.png' border=0 alt=''></a> " ;
}
echo "
</ div >
2007-05-27 14:11:15 +02:00
</ div >
< div id = 'foot_install' >
< i > Pandora FMS is a Free 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_step3 () {
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2007-04-24 15:38:44 +02:00
< h1 > Pandora FMS console installation wizard . Step #3 of 4 </h1>
2007-05-03 Sancho Lerena <slerena@artica.es>
* include/FreeSans.ttf: Added to repos, should be here to use in graphs.
* include/functions_db.php: Deleted noaccess include from
comprueba_login(). This should return value, not render pages or
exit.
* include/config.inc.php: Modified some typos.
* include/calendar.js: Added generic calendar javascript, to be
used on exportdata and incident management code.
* include/languages/language_en.php: More strings.
* install.php: In my render, box height is too low. PLEASE recheck
before changing this kind of properties because in other browsers
could have a bad render (Sophus!).
* index.php: Added script call (need to be done on header).
* operation/agentes/export_csv.php: Added new file to create a
standalone CSV on download icon / link.
* operation/agentes/exportdata.php: New export data code, used
some code from Leando Doctors, and mixed with old code. Now have
three options to render export data.
* operation/agentes/datos_agente_calendar.php: Deleted old code from Leandro.
* operation/active_console/lib/extra_functions.php: Solved a lot
of warnings, but there are TONS of more warnings that need to be
corrected.
* operation/active_console/lib/db_functions.php:Solved a lot of
warnings, but there are TONS of more warnings that need to be
corrected.
* operation/active_console/index.php: Solved a lot of warnings,
but there are TONS of more warnings that need to be
corrected. This code DONT work if you are showing warning/notice
erros. This code is not ready for production usage, too buggy yet
:(
* pandora_graphical_console_data.sql: Cleanup.
* godmode/agentes/module_manager.php: Added wizard button.
* pandora_graphical_console.sql: Cleanup.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@448 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-03 04:08:00 +02:00
< div id = 'wizard' style = 'height: 580px;' >
2007-02-20 02:38:59 +01:00
< div id = 'install_box' >
< h1 > Environment and database setup </ h1 >
< p >
2007-06-02 15:52:45 +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 .
Information about < b > root </ b > user will not be used or stored anymore .
</ p >
< p >
Now , please , complete all details to configure your database and enviroment setup .
2007-05-27 14:11:15 +02:00
</ p >
2007-07-28 20:11:48 +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 contine , please < b > be sure that you have no valuable Pandora FMS data in your Database .</ b >< br ></ div >
2007-02-20 02:38:59 +01:00
< form method = 'post' action = 'install.php?step=4' >
< div > DB User with privileges on MySQL </ div >
2007-04-11 05:12:48 +02:00
< input class = 'login' type = 'text' name = 'user' value = 'root' >
2007-02-20 02:38:59 +01:00
< div > DB Password for this user </ div >
2007-06-27 19:45:42 +02:00
< input class = 'login' type = 'password' name = 'pass' value = '' >
2007-04-11 05:12:48 +02:00
2007-02-20 02:38:59 +01:00
< div > DB Hostname of MySQL </ div >
2007-04-11 05:12:48 +02:00
< input class = 'login' type = 'text' name = 'host' value = 'localhost' >
< div > DB Name ( pandora by default ) </ div >
< input class = 'login' type = 'text' name = 'dbname' value = 'pandora' >
2007-02-20 02:38:59 +01:00
2007-06-02 15:52:45 +02:00
< div > Full path to HTTP publication directory < br >
< span class = 'f9b' > For example / var / www / pandora_console /. Needed for graphs and attachments .</ span >
2007-02-20 02:38:59 +01:00
</ div >
2007-04-11 05:12:48 +02:00
< input class = 'login' type = 'text' name = 'path' style = 'width: 190px;' value = '/var/www/pandora_console/' >
2007-02-20 02:38:59 +01:00
2007-06-02 15:52:45 +02:00
< div > Full local URL to Pandora FMS Console < br >
2007-02-20 02:38:59 +01:00
< span class = 'f9b' > For example http :// localhost / pandora_console </ span >
</ div >
2007-05-27 14:11:15 +02:00
< input class = 'login' type = 'text' name = 'url' style = 'width: 250px;' value = 'http://localhost/pandora_console' >
2007-02-20 02:38:59 +01:00
2007-05-27 14:11:15 +02:00
< div align = 'right' >< input type = 'image' src = 'images/arrow_next.png' value = 'Step #4' id = 'step4' ></ div >
2007-02-20 02:38:59 +01:00
</ form >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'logo_img' >
2007-06-02 15:52:45 +02:00
< img src = 'images/pandora_logo.png' border = '0' alt = '' >< br >
2007-02-20 02:38:59 +01:00
< img src = 'images/step2.png' border = '0' alt = '' >
</ div >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'foot_install' >
2007-02-20 02:38:59 +01:00
< i > Pandora FMS is a Free 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 " ;
2007-04-11 05:12:48 +02:00
if ( ( ! isset ( $_POST [ " user " ])) || ( ! isset ( $_POST [ " dbname " ])) || ( ! isset ( $_POST [ " host " ])) || ( ! isset ( $_POST [ " pass " ])) ) {
2007-02-20 02:38:59 +01:00
$dbpassword = " " ;
$dbuser = " " ;
$dbhost = " " ;
2007-04-11 05:12:48 +02:00
$dbname = " " ;
2007-02-20 02:38:59 +01:00
} else {
$dbpassword = $_POST [ " pass " ];
$dbuser = $_POST [ " user " ];
$dbhost = $_POST [ " host " ];
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 " ;
if ( isset ( $_POST [ " path " ]))
$path = $_POST [ " path " ];
else
$path = " /var/www " ;
}
$everything_ok = 0 ;
$step1 = 0 ;
$step2 = 0 ;
$step3 = 0 ;
$step4 = 0 ; $step5 = 0 ; $step6 = 0 ; $step7 = 0 ;
echo "
2007-05-27 14:11:15 +02:00
< div id = 'install_container' >
2007-04-24 15:38:44 +02:00
< h1 > Pandora FMS Console installation wizard . Step #4 of 4</h1>
2007-06-27 19:45:42 +02:00
< div id = 'wizard' style = 'height: 350px;' >
2007-02-20 02:38:59 +01:00
< div id = 'install_box' >
< h1 > Creating database and default configuration file </ h1 >
< table > " ;
if ( ! mysql_connect ( $dbhost , $dbuser , $dbpassword )) {
check_generic ( 0 , " Connection with Database " );
} else {
check_generic ( 1 , " Connection with Database " );
// Create schema
2007-04-11 05:12:48 +02:00
$step1 = mysql_query ( " CREATE DATABASE $dbname " );
check_generic ( $step1 , " Creating database ' $dbname ' " );
2007-02-20 02:38:59 +01:00
if ( $step1 == 1 ){
2007-04-11 05:12:48 +02:00
$step2 = mysql_select_db ( $dbname );
check_generic ( $step2 , " Opening database ' $dbname ' " );
2007-02-20 02:38:59 +01:00
$step3 = parse_mysql_dump ( " pandoradb.sql " );
check_generic ( $step3 , " Creating schema " );
$step4 = parse_mysql_dump ( " pandoradb_data.sql " );
check_generic ( $step4 , " Populating database " );
$random_password = random_name ( 8 );
2007-04-11 05:12:48 +02:00
$step5 = mysql_query ( " GRANT ALL PRIVILEGES ON $dbname .* to pandora@localhost IDENTIFIED BY ' " . $random_password . " ' " );
2007-02-20 02:38:59 +01:00
mysql_query ( " FLUSH PRIVILEGES " );
2007-04-11 05:12:48 +02:00
check_generic ( $step5 , " Established privileges for user pandora <br> password <i>' $random_password '</i> " );
2007-02-20 02:38:59 +01:00
$step6 = is_writable ( " include " );
check_generic ( $step6 , " Write permissions to save config file in './include' " );
$cfgin = fopen ( " include/config.inc.php " , " r " );
$cfgout = fopen ( $pandora_config , " w " );
$config_contents = fread ( $cfgin , filesize ( " include/config.inc.php " ));
2007-05-27 14:11:15 +02:00
$config_new = ' < ? php
2007-03-02 18:56:07 +01:00
// Begin of automatic config file
2007-04-11 05:12:48 +02:00
$dbname = " '. $dbname .' " ; // MySQL DataBase name
2007-03-02 18:56:07 +01:00
$dbuser = " pandora " ; // DB User
$dbpassword = " '. $random_password .' " ; // DB Password
$dbhost = " '. $dbhost .' " ; // DB Host
$config_homedir = " '. $path .' " ; // Config homedir
$BASE_URL = " '. $url .' " ; // Base URL
// End of automatic config file
?> ';
2007-02-20 02:38:59 +01:00
$step7 = fputs ( $cfgout , $config_new );
$step7 = $step7 + fputs ( $cfgout , $config_contents );
if ( $step7 > 0 )
$step7 = 1 ;
fclose ( $cfgin );
fclose ( $cfgout );
2007-06-28 16:17:25 +02:00
chmod ( $pandora_config , 0600 );
2007-02-20 02:38:59 +01:00
check_generic ( $step7 , " Created new config file at ' " . $pandora_config . " ' " );
}
}
if (( $step7 + $step6 + $step5 + $step4 + $step3 + $step2 + $step1 ) == 7 ) {
$everything_ok = 1 ;
}
echo " </table></div>
2007-05-27 14:11:15 +02:00
< div id = 'logo_img' >
2007-06-02 15:52:45 +02:00
< img src = 'images/pandora_logo.png' border = '0' alt = '' >< br >
2007-02-20 02:38:59 +01:00
< img src = 'images/step3.png' border = '0' alt = '' >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'install_img' > " ;
2007-02-20 02:38:59 +01:00
if ( $everything_ok == 1 ) {
2007-06-27 19:45:42 +02:00
echo " <br><br><a href='install.php?step=5'><img align='right' src='images/arrow_next.png' border=0 class=''></a> " ;
2007-02-20 02:38:59 +01:00
} else {
2007-05-27 14:11:15 +02:00
echo " <div class='warn'><b>There was some problems. Installation is not completed.</b>
< p > Please correct failures before trying again .
All database schemes created in this step have been dropped .</ p ></ div > " ;
2007-02-20 02:38:59 +01:00
if ( mysql_error () != " " )
2007-05-27 14:11:15 +02:00
echo " <div class='warn'> <b>ERROR:</b> " . mysql_error () . " .</div> " ;
2007-02-20 02:38:59 +01:00
2007-04-11 05:12:48 +02:00
mysql_query ( " DROP DATABASE $dbname " );
2007-02-20 02:38:59 +01:00
}
echo "
</ div >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'foot_install' >
2007-02-20 02:38:59 +01:00
< i > Pandora FMS is a Free Software project registered at
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
</ div >
</ div > " ;
}
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' >
2007-04-24 15:38:44 +02:00
< h1 > Pandora FMS console installation wizard . Finished </ h1 >
2007-02-20 02:38:59 +01:00
< div id = 'wizard' style = 'height: 300px;' >
< div id = 'install_box' >
< h1 > Installation complete </ h1 >
2007-05-27 14:11:15 +02:00
< p > You now must delete manually this installer ( '<i>install.php</i>' ) file for security before trying to access to your Pandora FMS console .
2007-02-20 02:38:59 +01:00
< p > Don 't forget to check <a href=' http :// pandora . sourceforge . net ' > http :// pandora . sourceforge . net </ a > for updates .
2007-05-27 14:11:15 +02:00
< p >< a href = 'index.php' > Click here to access to your Pandora FMS console </ a ></ p >
2007-02-20 02:38:59 +01:00
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'logo_img' >
2007-06-02 15:52:45 +02:00
< img src = 'images/pandora_logo.png' border = '0' >< br >
2007-02-20 02:38:59 +01:00
< img src = 'images/step4.png' border = '0' >< br >
</ div >
</ div >
2007-05-27 14:11:15 +02:00
< div id = 'foot_install' >
2007-02-20 02:38:59 +01:00
< i > Pandora FMS is a Free Software project registered at
< a target = '_new' href = 'http://pandora.sourceforge.net' > SourceForge </ a ></ i >
</ div >
</ div > " ;
}
2007-04-11 05:12:48 +02:00
// ---------------
// Main page code
// ---------------
2007-02-20 02:38:59 +01:00
if ( ! isset ( $_GET [ " step " ])){
install_step1 ();
} else {
$step = $_GET [ " step " ];
switch ( $step ) {
case 2 : install_step2 ();
break ;
case 3 : install_step3 ();
break ;
case 4 : install_step4 ();
break ;
case 5 : install_step5 ();
break ;
}
}
2007-04-11 05:12:48 +02:00
?>
2007-06-02 15:52:45 +02:00
</ body >
</ html >