dolibarr 21.0.0-beta
filefunc.inc.php File Reference

File that include conf.php file and commons lib like functions.lib.php. More...

Go to the source code of this file.

Functions

if(!defined( 'DOL_APPLICATION_TITLE')) if(!defined('DOL_VERSION')) if(!defined( 'EURO')) if(!defined('LOG_DEBUG')) if(defined( 'DOL_INC_FOR_VERSION_ERROR')) dol_session_start ()
 Replace session_start()
 
 dol_session_regenerate_id ()
 Replace session_regenerate_id()
 
 dol_session_rotate ($sessionname='')
 Destroy and recreate a new session without losing content.
 

Variables

 $dolibarr_main_url_root_alt = (empty($dolibarr_main_url_root_alt) ? '' : trim($dolibarr_main_url_root_alt))
 

Detailed Description

File that include conf.php file and commons lib like functions.lib.php.

Definition in file filefunc.inc.php.

Function Documentation

◆ dol_session_regenerate_id()

dol_session_regenerate_id ( )

Replace session_regenerate_id()

Returns
bool True if success, false if failed

Definition at line 82 of file filefunc.inc.php.

◆ dol_session_rotate()

dol_session_rotate ( $sessionname = '')

Destroy and recreate a new session without losing content.

Not used yet.

Parameters
string$sessionnameSession name
Returns
void

Definition at line 94 of file filefunc.inc.php.

References dol_session_start().

◆ dol_session_start()

if(!defined('DOL_APPLICATION_TITLE')) if(!defined( 'DOL_VERSION')) if(!defined('EURO')) if(!defined( 'LOG_DEBUG')) if(defined('DOL_INC_FOR_VERSION_ERROR')) dol_session_start ( )

Replace session_start()

Returns
void

Definition at line 72 of file filefunc.inc.php.

Referenced by dol_session_rotate().

Variable Documentation

◆ $dolibarr_main_url_root_alt

$dolibarr_main_url_root_alt = (empty($dolibarr_main_url_root_alt) ? '' : trim($dolibarr_main_url_root_alt))

function is_countable (to remove when php version supported will be >= 7.3)

Parameters
mixed$cdata to check if countable
Returns
bool @phan-suppress PhanRedefineFunctionInternal

Definition at line 222 of file filefunc.inc.php.

Referenced by write_conf_file().