dolibarr  16.0.5
Functions
inc.php File Reference

File that define environment for support pages. More...

Go to the source code of this file.

Functions

 conf ($dolibarr_main_document_root)
 Load conf file (file must exists) More...
 
 pHeader ($subtitle, $next, $action='set', $param='', $forcejqueryurl='', $csstable='main-inside')
 Show HTML header of install pages. More...
 
 pFooter ($nonext=0, $setuplang='', $jscheckfunction='', $withpleasewait=0, $morehtml='')
 Print HTML footer of install pages. More...
 
 dolibarr_install_syslog ($message, $level=LOG_DEBUG)
 Log function for install pages. More...
 
 detect_dolibarr_main_document_root ()
 Automatically detect Dolibarr's main document root. More...
 
 detect_dolibarr_main_data_root ($dolibarr_main_document_root)
 Automatically detect Dolibarr's main data root. More...
 
 detect_dolibarr_main_url_root ()
 Automatically detect Dolibarr's main URL root. More...
 
 parse_database_login ($force_install_databaserootlogin)
 Replaces automatic database login by actual value. More...
 
 parse_database_pass ($force_install_databaserootpass)
 Replaces automatic database password by actual value. More...
 

Detailed Description

File that define environment for support pages.

Definition in file inc.php.

Function Documentation

◆ conf()

conf (   $dolibarr_main_document_root)

Load conf file (file must exists)

Parameters
string$dolibarr_main_document_rootRoot directory of Dolibarr bin files
Returns
int <0 if KO, >0 if OK

Definition at line 300 of file inc.php.

Referenced by User\__construct().

◆ detect_dolibarr_main_data_root()

detect_dolibarr_main_data_root (   $dolibarr_main_document_root)

Automatically detect Dolibarr's main data root.

Parameters
string$dolibarr_main_document_rootCurrent main document root
Returns
string

Definition at line 596 of file inc.php.

◆ detect_dolibarr_main_document_root()

detect_dolibarr_main_document_root ( )

Automatically detect Dolibarr's main document root.

Returns
string

Definition at line 572 of file inc.php.

◆ detect_dolibarr_main_url_root()

detect_dolibarr_main_url_root ( )

Automatically detect Dolibarr's main URL root.

Returns
string

Definition at line 608 of file inc.php.

◆ dolibarr_install_syslog()

dolibarr_install_syslog (   $message,
  $level = LOG_DEBUG 
)

Log function for install pages.

Parameters
string$messageMessage
int$levelLevel of log
Returns
void

Definition at line 559 of file inc.php.

◆ parse_database_login()

parse_database_login (   $force_install_databaserootlogin)

Replaces automatic database login by actual value.

Parameters
string$force_install_databaserootloginLogin
Returns
string

Definition at line 641 of file inc.php.

◆ parse_database_pass()

parse_database_pass (   $force_install_databaserootpass)

Replaces automatic database password by actual value.

Parameters
string$force_install_databaserootpassPassword
Returns
string

Definition at line 652 of file inc.php.

◆ pFooter()

pFooter (   $nonext = 0,
  $setuplang = '',
  $jscheckfunction = '',
  $withpleasewait = 0,
  $morehtml = '' 
)

Print HTML footer of install pages.

Parameters
integer$nonext1=No button "Next step", 2=Show button but disabled with a link to enable
string$setuplangLanguage code
string$jscheckfunctionAdd a javascript check function
integer$withpleasewaitAdd also please wait tags
string$morehtmlAdd more HTML content
Returns
void

Definition at line 498 of file inc.php.

◆ pHeader()

pHeader (   $subtitle,
  $next,
  $action = 'set',
  $param = '',
  $forcejqueryurl = '',
  $csstable = 'main-inside' 
)

Show HTML header of install pages.

Parameters
string$subtitleTitle
string$nextNext
string$actionAction code ('set' or 'upgrade')
string$paramParam
string$forcejqueryurlSet jquery relative URL (must end with / if defined)
string$csstableCss for table
Returns
void

Definition at line 409 of file inc.php.