2014-01-15 02:51:25 +00:00
< ? php
2015-09-01 22:42:02 +01:00
session_start ();
2016-08-18 20:28:22 -05:00
if ( empty ( $_POST ) && ! empty ( $_SESSION ) && ! isset ( $_REQUEST [ 'stage' ])) {
2015-09-01 22:42:02 +01:00
$_POST = $_SESSION ;
} else {
$_SESSION = $_POST ;
}
2014-01-15 02:51:25 +00:00
2016-11-21 14:12:59 -06:00
$stage = isset ( $_POST [ 'stage' ]) ? $_POST [ 'stage' ] : 0 ;
2014-01-15 02:51:25 +00:00
// Before we do anything, if we see config.php, redirect back to the homepage.
2016-11-21 14:12:59 -06:00
if ( file_exists ( '../config.php' ) && $stage != 6 ) {
2015-07-13 20:10:26 +02:00
header ( " Location: / " );
exit ;
2014-01-15 02:51:25 +00:00
}
2016-11-21 14:12:59 -06:00
// do not use the DB in init, we'll bring it up ourselves
$init_modules = array ( 'web' , 'nodb' );
if ( $stage > 3 ) {
$init_modules [] = 'auth' ;
2016-01-10 03:23:34 +05:30
}
2016-11-21 14:12:59 -06:00
require realpath ( __DIR__ . '/..' ) . '/includes/init.php' ;
// List of php modules we expect to see
$modules = array ( 'gd' , 'mysqli' , 'snmp' , 'mcrypt' );
2015-09-01 22:42:02 +01:00
$dbhost = @ $_POST [ 'dbhost' ] ? : 'localhost' ;
$dbuser = @ $_POST [ 'dbuser' ] ? : 'librenms' ;
$dbpass = @ $_POST [ 'dbpass' ] ? : '' ;
$dbname = @ $_POST [ 'dbname' ] ? : 'librenms' ;
2017-01-27 23:16:04 +00:00
$dbport = @ $_POST [ 'dbport' ] ? : 3306 ;
2016-11-21 14:12:59 -06:00
$config [ 'db_host' ] = $dbhost ;
$config [ 'db_user' ] = $dbuser ;
$config [ 'db_pass' ] = $dbpass ;
$config [ 'db_name' ] = $dbname ;
2017-01-27 23:16:04 +00:00
$config [ 'db_port' ] = $dbport ;
2016-11-21 14:12:59 -06:00
2015-09-01 22:42:02 +01:00
$add_user = @ $_POST [ 'add_user' ] ? : '' ;
$add_pass = @ $_POST [ 'add_pass' ] ? : '' ;
$add_email = @ $_POST [ 'add_email' ] ? : '' ;
2014-01-15 02:51:25 +00:00
// Check we can connect to MySQL DB, if not, back to stage 1 :)
2016-11-21 14:12:59 -06:00
if ( $stage > 1 ) {
2017-01-27 23:16:04 +00:00
$database_link = mysqli_connect ( 'p:' . $dbhost , $dbuser , $dbpass , $dbname , $dbport );
2017-02-27 18:28:01 +00:00
dbQuery ( " SET NAMES 'utf8' " );
dbQuery ( " SET CHARACTER SET 'utf8' " );
dbQuery ( " SET COLLATION_CONNECTION = 'utf8_unicode_ci' " );
2016-08-18 20:28:22 -05:00
if ( mysqli_connect_error ()) {
2015-07-13 20:10:26 +02:00
$stage = 1 ;
$msg = " Couldn't connect to the database, please check your details<br /> " . mysqli_connect_error ();
2016-11-21 14:12:59 -06:00
} elseif ( $stage == 2 ) {
2016-08-18 20:28:22 -05:00
if ( $_SESSION [ 'build-ok' ] == true ) {
2015-09-01 22:42:02 +01:00
$stage = 3 ;
$msg = " It appears that the database is already setup so have moved onto stage $stage " ;
2015-07-13 20:10:26 +02:00
}
2014-01-15 02:51:25 +00:00
}
2015-09-01 22:42:02 +01:00
$_SESSION [ 'stage' ] = $stage ;
2016-11-21 14:12:59 -06:00
}
if ( $stage == 4 ) {
2015-07-13 20:10:26 +02:00
// Now check we have a username, password and email before adding new user
2016-08-18 20:28:22 -05:00
if ( empty ( $add_user ) || empty ( $add_pass ) || empty ( $add_email )) {
2015-09-01 22:42:02 +01:00
$stage = 3 ;
2015-07-13 20:10:26 +02:00
$msg = " You haven't entered enough information to add the user account, please check below and re-try " ;
}
2016-11-21 14:12:59 -06:00
} elseif ( $stage == 6 ) {
2015-09-01 23:31:41 +01:00
session_destroy ();
2015-07-13 20:10:26 +02:00
// If we get here then let's do some final checks.
2016-08-18 20:28:22 -05:00
if ( ! file_exists ( " ../config.php " )) {
2015-07-13 20:10:26 +02:00
// config.php file doesn't exist. go back to that stage
$msg = " config.php still doesn't exist " ;
2016-11-21 14:12:59 -06:00
$stage = 5 ;
2015-07-13 20:10:26 +02:00
}
2014-01-15 02:51:25 +00:00
}
2016-08-18 20:28:22 -05:00
if ( empty ( $stage )) {
2016-11-21 14:12:59 -06:00
$stage = 0 ;
2014-01-15 02:51:25 +00:00
}
$total_stages = 6 ;
$stage_perc = $stage / $total_stages * 100 ;
$complete = 1 ;
?>
<! DOCTYPE HTML >
< html >
< head >
< title >< ? php echo ( $config [ 'page_title_prefix' ]); ?> </title>
< meta http - equiv = " content-type " content = " text/html; charset=utf-8 " />
< meta http - equiv = " X-UA-Compatible " content = " IE=EmulateIE7 " />
< meta http - equiv = " content-language " content = " en-us " />
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " >
< link href = " css/bootstrap.min.css " rel = " stylesheet " type = " text/css " />
< link href = " <?php echo( $config['stylesheet'] ); ?> " rel = " stylesheet " type = " text/css " />
< link href = " css/typeahead.js-bootstrap.css " rel = " stylesheet " type = " text/css " />
< script src = " js/jquery.min.js " ></ script >
< script src = " js/bootstrap.min.js " ></ script >
< script src = " js/bootstrap-hover-dropdown.min.js " ></ script >
< script src = " js/typeahead.min.js " ></ script >
< script src = " js/hogan-2.0.0.js " ></ script >
</ head >
< body >
< div class = " container " >
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< h2 class = " text-center " > Welcome to the < ? php echo ( $config [ 'project_name' ]); ?> install</h2>
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
2016-08-03 10:06:33 -05:00
< h4 class = " text-center " > Stage < ? php echo $stage ; ?> of <?php echo $total_stages; ?> complete</h4>
2014-01-15 02:51:25 +00:00
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2015-07-13 20:10:26 +02:00
2016-08-18 20:28:22 -05:00
if ( ! empty ( $msg )) {
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< div class = " alert alert-danger " >< ? php echo $msg ; ?> </div>
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
}
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< div class = " progress progress-striped " >
< div class = " progress-bar progress-bar-success " role = " progressbar " aria - valuenow = " <?php echo $stage_perc ; ?> " aria - valuemin = " 0 " aria - valuemax = " 100 " style = " width: <?php echo $stage_perc ; ?>% " >
< span class = " sr-only " >< ? php echo $stage_perc ; ?> % Complete</span>
</ div >
</ div >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
if ( $stage == 0 ) {
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< h5 class = " text-center " > Checking PHP module support </ h5 >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< table class = " table table-condensed table-bordered " >
< tr >
< th > Module </ th >
< th > Installed </ th >
< th > Comments </ th >
</ tr >
< ? php
2016-08-18 20:28:22 -05:00
foreach ( $modules as $extension ) {
if ( extension_loaded ( " $extension " )) {
$ext_loaded = 'yes' ;
$row_class = 'success' ;
} else {
$ext_loaded = 'no' ;
$row_class = 'danger' ;
$complete = 0 ;
}
2015-07-13 20:10:26 +02:00
2016-08-18 20:28:22 -05:00
echo ( " <tr class=' $row_class '>
2015-07-13 20:10:26 +02:00
< td > $extension </ td >
< td > $ext_loaded </ td > " );
2016-08-18 20:28:22 -05:00
if ( $ext_loaded == 'no' ) {
2016-09-09 16:26:52 +01:00
echo ( " <td></td> " );
2016-08-18 20:28:22 -05:00
} else {
echo ( " <td></td> " );
2015-07-13 20:10:26 +02:00
}
2016-08-18 20:28:22 -05:00
echo ( " </tr> " );
}
2014-01-15 02:51:25 +00:00
2015-07-13 20:10:26 +02:00
// Check for pear install
2015-10-01 15:20:46 +00:00
@ include_once 'System.php' ;
2014-01-15 02:51:25 +00:00
2016-08-18 20:28:22 -05:00
if ( class_exists ( 'System' ) === true ) {
$ext_loaded = 'yes' ;
$row_class = 'success' ;
} else {
$ext_loaded = 'no' ;
$row_class = 'danger' ;
}
2015-07-13 20:10:26 +02:00
echo ( " <tr class=' $row_class '>
< td > pear </ td >
< td > $ext_loaded </ td > " );
2016-08-18 20:28:22 -05:00
if ( $ext_loaded == 'no' ) {
echo ( " <td>apt-get install php-pear / yum install php-pear</td> " );
} else {
echo ( " <td></td> " );
}
2015-07-13 20:10:26 +02:00
echo ( " </tr> " );
2014-01-15 02:51:25 +00:00
?>
</ table >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< form class = " form-inline " role = " form " method = " post " >
< input type = " hidden " name = " stage " value = " 1 " >
2016-08-18 20:28:22 -05:00
< button type = " submit " class = " btn btn-success " < ? php if ( $complete == '0' ) {
echo " disabled='disabled' " ;
} ?> >Next Stage</button>
2014-01-15 02:51:25 +00:00
</ form >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
} elseif ( $stage == 1 ) {
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< form class = " form-horizontal " role = " form " method = " post " >
< input type = " hidden " name = " stage " value = " 2 " >
< div class = " form-group " >
< label for = " dbhost " class = " col-sm-4 " control - label " >DB Host: </label>
< div class = " col-sm-8 " >
< input type = " text " class = " form-control " name = " dbhost " id = " dbhost " value = " <?php echo $dbhost ; ?> " >
</ div >
</ div >
2017-01-27 23:16:04 +00:00
< div class = " form-group " >
< label for = " dbport " class = " col-sm-4 " control - label " >DB Port: </label>
< div class = " col-sm-8 " >
< input type = " text " class = " form-control " name = " dbport " id = " dbport " value = " <?php echo $dbport ; ?> " >
</ div >
</ div >
2014-01-15 02:51:25 +00:00
< div class = " form-group " >
< label for = " dbuser " class = " col-sm-4 " control - label " >DB User: </label>
< div class = " col-sm-8 " >
< input type = " text " class = " form-control " name = " dbuser " id = " dbuser " value = " <?php echo $dbuser ; ?> " >
</ div >
</ div >
< div class = " form-group " >
< label for = " dbpass " class = " col-sm-4 " control - label " >DB Pass: </label>
< div class = " col-sm-8 " >
< input type = " password " class = " form-control " name = " dbpass " id = " dbpass " value = " <?php echo $dbpass ; ?> " >
</ div >
</ div >
< div class = " form-group " >
< label for = " dbname " class = " col-sm-4 " control - label " >DB Name: </label>
< div class = " col-sm-8 " >
< input type = " text " class = " form-control " name = " dbname " id = " dbname " value = " <?php echo $dbname ; ?> " >
</ div >
</ div >
< button type = " submit " class = " btn btn-success " > Next Stage </ button >
</ form >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
} elseif ( $stage == " 2 " ) {
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
2015-08-11 08:39:14 +10:00
< h5 class = " text-center " > Importing MySQL DB - Do not close this page or interrupt the import </ h5 >
2014-01-15 02:51:25 +00:00
< ? php
// Ok now let's set the db connection up
2016-11-11 01:40:53 +00:00
$config [ 'db_host' ] = $dbhost ;
$config [ 'db_user' ] = $dbuser ;
$config [ 'db_pass' ] = $dbpass ;
$config [ 'db_name' ] = $dbname ;
2017-01-27 23:16:04 +00:00
$config [ 'db_port' ] = $dbport ;
2015-07-13 20:10:26 +02:00
$sql_file = '../build.sql' ;
2015-09-02 14:30:15 +01:00
$_SESSION [ 'last' ] = time ();
2015-09-02 00:13:14 +01:00
ob_end_flush ();
ob_start ();
2016-08-18 20:28:22 -05:00
if ( $_SESSION [ 'offset' ] < 100 && $_REQUEST [ 'offset' ] < 94 ) {
require '../build-base.php' ;
} else {
require '../includes/sql-schema/update.php' ;
}
2015-09-02 14:30:15 +01:00
$_SESSION [ 'out' ] .= ob_get_clean ();
2015-09-02 00:13:14 +01:00
ob_end_clean ();
ob_start ();
echo $GLOBALS [ 'refresh' ];
2015-09-02 14:30:15 +01:00
echo " <pre> " . trim ( $_SESSION [ 'out' ]) . " </pre> " ;
2014-01-15 02:51:25 +00:00
?>
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
If you don ' t see any errors or messages above then the database setup has been successful .< br />
< form class = " form-horizontal " role = " form " method = " post " >
< input type = " hidden " name = " stage " value = " 3 " >
< input type = " hidden " name = " dbhost " value = " <?php echo $dbhost ; ?> " >
< input type = " hidden " name = " dbuser " value = " <?php echo $dbuser ; ?> " >
< input type = " hidden " name = " dbpass " value = " <?php echo $dbpass ; ?> " >
< input type = " hidden " name = " dbname " value = " <?php echo $dbname ; ?> " >
2017-01-27 23:16:04 +00:00
< input type = " hidden " name = " dbport " value = " <?php echo $dbport ; ?> " >
2014-01-15 02:51:25 +00:00
< button type = " submit " class = " btn btn-success " > Goto Add User </ button >
2015-05-10 16:40:38 +03:00
</ form >
2014-01-15 02:51:25 +00:00
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
} elseif ( $stage == " 5 " ) {
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< ? php
// Create the config file we will write or display
$config_file = <<< " EOD "
## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php!
### Database config
2015-09-21 13:23:09 +00:00
\ $config\ [ 'db_host' \ ] = '$dbhost' ;
2017-01-27 23:16:04 +00:00
\ $config\ [ 'db_port' \ ] = '$dbport' ;
2015-09-21 13:23:09 +00:00
\ $config\ [ 'db_user' \ ] = '$dbuser' ;
\ $config\ [ 'db_pass' \ ] = '$dbpass' ;
\ $config\ [ 'db_name' \ ] = '$dbname' ;
2015-08-09 14:36:31 +00:00
\ $config\ [ 'db' \ ] \ [ 'extension' \ ] = " mysqli " ; // mysql or mysqli
2014-01-15 02:51:25 +00:00
2015-09-21 21:06:57 +00:00
// This is the user LibreNMS will run as
//Please ensure this user is created and has the correct permissions to your install
\ $config [ 'user' ] = 'librenms' ;
2014-01-15 02:51:25 +00:00
### Memcached config - We use this to store realtime usage
\ $config\ [ 'memcached' \ ] \ [ 'enable' \ ] = FALSE ;
\ $config\ [ 'memcached' \ ] \ [ 'host' \ ] = " localhost " ;
\ $config\ [ 'memcached' \ ] \ [ 'port' \ ] = 11211 ;
### Locations - it is recommended to keep the default
2014-06-25 00:36:16 +01:00
\ $config\ [ 'install_dir' \ ] = " $install_dir " ;
2014-01-15 02:51:25 +00:00
### This should *only* be set if you want to *force* a particular hostname/port
### It will prevent the web interface being usable form any other hostname
#\$config\['base_url'\] = "http://librenms.company.com";
### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
### and that your web server has permission to talk to rrdcached.
#\$config\['rrdcached'\] = "unix:/var/run/rrdcached.sock";
### Default community
\ $config\ [ 'snmp' \ ] \ [ 'community' \ ] = array ( " public " );
### Authentication Model
\ $config\ [ 'auth_mechanism' \ ] = " mysql " ; # default, other options: ldap, http-auth
#\$config\['http_auth_guest'\] = "guest"; # remember to configure this user if you use http-auth
### List of RFC1918 networks to allow scanning-based discovery
#\$config\['nets'\]\[\] = "10.0.0.0/8";
#\$config\['nets'\]\[\] = "172.16.0.0/12";
#\$config\['nets'\]\[\] = "192.168.0.0/16";
# Uncomment the next line to disable daily updates
#\$config\['update'\] = 0;
EOD ;
2016-08-18 20:28:22 -05:00
if ( ! file_exists ( " ../config.php " )) {
2014-01-15 02:51:25 +00:00
$conf = fopen ( " ../config.php " , 'w' );
2015-07-13 20:10:26 +02:00
if ( $conf != false ) {
2016-08-18 20:28:22 -05:00
if ( fwrite ( $conf , " <?php \n " ) === false ) {
2015-07-13 20:10:26 +02:00
echo ( " <div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)</div> " );
echo ( " <pre><?php \n " . stripslashes ( $config_file ) . " </pre> " );
2016-08-18 20:28:22 -05:00
} else {
2015-07-13 20:10:26 +02:00
$config_file = stripslashes ( $config_file );
2016-08-18 20:28:22 -05:00
fwrite ( $conf , $config_file );
2015-07-13 20:10:26 +02:00
echo ( " <div class='alert alert-success'>The config file has been created</div> " );
}
2016-08-18 20:28:22 -05:00
} else {
2015-05-11 00:48:38 +03:00
echo ( " <div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)</div> " );
echo ( " <pre><?php \n " . stripslashes ( $config_file ) . " </pre> " );
2014-01-15 02:51:25 +00:00
}
2015-07-13 20:10:26 +02:00
}
2014-01-15 02:51:25 +00:00
?>
< form class = " form-horizontal " role = " form " method = " post " >
< input type = " hidden " name = " stage " value = " 6 " >
< input type = " hidden " name = " dbhost " value = " <?php echo $dbhost ; ?> " >
< input type = " hidden " name = " dbuser " value = " <?php echo $dbuser ; ?> " >
< input type = " hidden " name = " dbpass " value = " <?php echo $dbpass ; ?> " >
< input type = " hidden " name = " dbname " value = " <?php echo $dbname ; ?> " >
< button type = " submit " class = " btn btn-success " > Finish install </ button >
</ form >
< ? php
?>
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
} elseif ( $stage == " 3 " ) {
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< form class = " form-horizontal " role = " form " method = " post " >
< input type = " hidden " name = " stage " value = " 4 " >
< input type = " hidden " name = " dbhost " value = " <?php echo $dbhost ; ?> " >
< input type = " hidden " name = " dbuser " value = " <?php echo $dbuser ; ?> " >
< input type = " hidden " name = " dbpass " value = " <?php echo $dbpass ; ?> " >
< input type = " hidden " name = " dbname " value = " <?php echo $dbname ; ?> " >
< div class = " form-group " >
< label for = " add_user " class = " col-sm-4 control-label " > Username </ label >
< div class = " col-sm-8 " >
< input type = " text " class = " form-control " name = " add_user " id = " add_user " value = " <?php echo $add_user ; ?> " >
</ div >
</ div >
< div class = " form-group " >
< label for = " add_pass " class = " col-sm-4 control-label " > Password </ label >
< div class = " col-sm-8 " >
< input type = " password " class = " form-control " name = " add_pass " id = " add_pass " value = " <?php echo $add_pass ; ?> " >
</ div >
</ div >
< div class = " form-group " >
< label for = " add_email " class = " col-sm-4 control-label " > Email </ label >
< div class = " col-sm-8 " >
< input type = " email " class = " form-control " name = " add_email " id = " add_email " value = " <?php echo $add_email ; ?> " >
</ div >
</ div >
< button type = " submit " class = " btn btn-success " > Add User </ button >
</ form >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
} elseif ( $stage == " 4 " ) {
2015-07-13 20:10:26 +02:00
$proceed = 1 ;
2014-01-15 02:51:25 +00:00
?>
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
< ? php
2016-08-18 20:28:22 -05:00
if ( auth_usermanagement ()) {
if ( ! user_exists ( $add_user )) {
if ( adduser ( $add_user , $add_pass , '10' , $add_email )) {
echo ( " <div class='alert alert-success'>User has been added successfully</div> " );
$proceed = 0 ;
} else {
echo ( " <div class='alert alert-danger'>User hasn't been added, please try again</div> " );
2015-07-13 20:10:26 +02:00
}
2016-08-18 20:28:22 -05:00
} else {
echo ( " <div class='alert alert-danger'>User $add_user already exists!</div> " );
2014-01-15 02:51:25 +00:00
}
2016-08-18 20:28:22 -05:00
} else {
echo ( " <div class='alert alert-danger'>Auth module isn't loaded</div> " );
}
2014-01-15 02:51:25 +00:00
?>
< form class = " form-horizontal " role = " form " method = " post " >
< input type = " hidden " name = " stage " value = " 5 " >
< input type = " hidden " name = " dbhost " value = " <?php echo $dbhost ; ?> " >
< input type = " hidden " name = " dbuser " value = " <?php echo $dbuser ; ?> " >
< input type = " hidden " name = " dbpass " value = " <?php echo $dbpass ; ?> " >
< input type = " hidden " name = " dbname " value = " <?php echo $dbname ; ?> " >
2016-08-18 20:28:22 -05:00
< button type = " submit " class = " btn btn-success " < ? php if ( $proceed == " 1 " ) {
echo " disabled='disabled' " ;
} ?> >Generate Config</button>
2014-01-15 02:51:25 +00:00
</ form >
</ div >
< div class = " col-md-3 " >
</ div >
</ div >
< ? php
2016-08-18 20:28:22 -05:00
} elseif ( $stage == " 6 " ) {
2014-01-15 02:51:25 +00:00
?>
2016-08-05 19:52:22 +01:00
< div class = " row " >
< div class = " col-md-offset-3 col-md-6 " >
< div class = " alert alert-danger " > You haven ' t quite finished yet - please go back to the install docs and carry on the necessary steps to finish the setup !</ div >
</ div >
</ div >
2014-01-15 02:51:25 +00:00
< div class = " row " >
< div class = " col-md-3 " >
</ div >
< div class = " col-md-6 " >
2016-01-11 21:03:12 +00:00
< div class = " alert alert-success " > Thank you for setting up LibreNMS .< br />
It would be great if you would consider contributing to our statistics , you can do this on the < a href = " about/ " >/ about /</ a > page and check the box under Statistics .< br />
You can now click < a href = " / " > here to login to your new install .</ a ></ div >
2014-01-15 02:51:25 +00:00
</ div >
< div class = " col-md-3 " >
</ div >
< ? php
}
?>
</ div >
</ body >
</ html >