ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

installcli.php File Reference

Go to the source code of this file.

Functions

while($install_complete) check_requirements ()
 
 upgrade ()
 
 new_install ()
 
 promptUser ($promptStr, $defaultVal=false)
 

Variables

 $base = dirname(__FILE__)
 
 $onabase = dirname($base)
 
 $include = $onabase . '/www/include'
 
 $conf
 
 $dbconffile = "{$onabase}/www/local/config/database_settings.inc.php"
 
if(file_exists($dbconffile)) else
 
 $text = ''
 
 $status = 0
 
 $runinstall = $onabase.'/www/local/config/run_install'
 
 $xmlfile_tables = $base.'/ona-table_schema.xml'
 
 $xmlfile_data = $base.'/ona-data.xml'
 
 $new_ver = trim(file_get_contents($onabase.'/VERSION'))
 
 $curr_ver = ''
 
 $stdout = ''
 
 $syslog = ''
 
 $log_to_db = ''
 
 $install_complete =1
 

Function Documentation

◆ check_requirements()

while ( $install_complete) check_requirements ( )

Definition at line 117 of file installcli.php.

References $conf, $dbconfwrite, $hasgmp, $hasmbstring, $hasmysql, $onabase, $phpversion, and EOL.

◆ new_install()

new_install ( )

◆ promptUser()

promptUser (   $promptStr,
  $defaultVal = false 
)

Definition at line 622 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ upgrade()

Variable Documentation

◆ $base

$base = dirname(__FILE__)

Definition at line 3 of file installcli.php.

◆ $conf

$conf
Initial value:
= array (
"default_context" => 'DEFAULT',
"inc_functions" => "$include/functions_general.inc.php",
"inc_functions_db" => "$include/functions_db.inc.php",
"inc_functions_auth" => "$include/functions_auth.inc.php",
"inc_db_sessions" => "$include/adodb_sessions.inc.php",
"inc_adodb" => "$include/adodb/adodb.inc.php",
"inc_adodb_xml" => "$include/adodb/adodb-xmlschema03.inc.php",
"debug" => "2",
"logfile" => "/var/log/ona.log",
)

Definition at line 12 of file installcli.php.

Referenced by check_requirements().

◆ $curr_ver

$curr_ver = ''

Definition at line 77 of file installcli.php.

Referenced by upgrade().

◆ $dbconffile

$dbconffile = "{$onabase}/www/local/config/database_settings.inc.php"

Definition at line 40 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ $include

$include = $onabase . '/www/include'

Definition at line 6 of file installcli.php.

◆ $install_complete

$install_complete =1

Definition at line 84 of file installcli.php.

◆ $log_to_db

$log_to_db = ''

Definition at line 82 of file installcli.php.

◆ $new_ver

$new_ver = trim(file_get_contents($onabase.'/VERSION'))

Definition at line 76 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ $onabase

$onabase = dirname($base)

Definition at line 4 of file installcli.php.

Referenced by check_requirements().

◆ $runinstall

$runinstall = $onabase.'/www/local/config/run_install'

Definition at line 73 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ $status

$status = 0

Definition at line 72 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ $stdout

$stdout = ''

Definition at line 80 of file installcli.php.

Referenced by html_diff().

◆ $syslog

$syslog = ''

Definition at line 81 of file installcli.php.

◆ $text

$text = ''

Definition at line 71 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ $xmlfile_data

$xmlfile_data = $base.'/ona-data.xml'

Definition at line 75 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ $xmlfile_tables

$xmlfile_tables = $base.'/ona-table_schema.xml'

Definition at line 74 of file installcli.php.

Referenced by new_install(), and upgrade().

◆ else

if ( $upgrademain !='') else
Initial value:
{
# require_once($base.'/../install/install.php')

Definition at line 48 of file installcli.php.