XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier common.php

Espaces de nommage

 kernel
 

Variables

global $xoops = new xos_kernel_Xoops2()
 
global $xoopsPreload = XoopsPreload::getInstance()
 
global $xoopsLogger = XoopsLogger::getInstance()
 
global $xoopsErrorHandler = XoopsLogger::getInstance()
 
global $xoopsSecurity = new XoopsSecurity()
 
global $sess_handler = xoops_getHandler('session')
 
defined('DS') or define('DS' DIRECTORY_SEPARATOR
 
defined('NWLINE') or define('NWLINE' n
 
 $xoopsRequestUri =& $_SERVER['REQUEST_URI']
 
if(!defined('XOOPS_COOKIE_DOMAIN')) if ( $_SERVER[ 'REQUEST_METHOD'] !=='POST'||! $xoopsSecurity->checkReferer(XOOPS_DB_CHKREF))
 
 $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection()
 
 $config_handler = xoops_getHandler('config')
 
 $xoopsConfig = $config_handler->getConfigsByCat(XOOPS_CONF)
 
if(file_exists($file=$GLOBALS['xoops']->path('var/configs/xoopsconfig.php'))) else
 
 $xFrameOptions = isset($xoopsConfig['xFrameOptions']) ? $xoopsConfig['xFrameOptions'] : 'sameorigin'
 
$xoopsLogger activated = false
 
 $xoopsUser = ''
 
 $xoopsUserIsAdmin = false
 
 $member_handler = xoops_getHandler('member')
 
if($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] !='' &&!isset($_COOKIE[$xoopsConfig['session_name']]) &&!empty($_SESSION['xoopsUserId'])) $rememberClaims = false
 

Documentation des variables

◆ $config_handler

$config_handler = xoops_getHandler('config')

Get xoops configs Requires functions and database loaded

◆ $member_handler

$member_handler = xoops_getHandler('member')

◆ $rememberClaims

if ( $xoopsConfig[ 'use_mysession'] &&$xoopsConfig[ 'session_name'] !='' &&!isset( $_COOKIE[ $xoopsConfig[ 'session_name']]) &&!empty( $_SESSION[ 'xoopsUserId'])) $rememberClaims = false

Remove expired session for xoopsUserId Load xoopsUserId from cookie if "Remember me" is enabled.

◆ $sess_handler

$sess_handler = xoops_getHandler('session')

◆ $xFrameOptions

$xFrameOptions = isset($xoopsConfig['xFrameOptions']) ? $xoopsConfig['xFrameOptions'] : 'sameorigin'

clickjack protection - Add option to HTTP header restricting using site in an iframe

◆ $xoops

$xoops = new xos_kernel_Xoops2()

◆ $xoopsConfig

$xoopsConfig = $config_handler->getConfigsByCat(XOOPS_CONF)

◆ $xoopsDB

◆ $xoopsErrorHandler

$xoopsErrorHandler = XoopsLogger::getInstance()

◆ $xoopsLogger

$xoopsLogger = XoopsLogger::getInstance()

◆ $xoopsPreload

$xoopsPreload = XoopsPreload::getInstance()

◆ $xoopsRequestUri

$xoopsRequestUri =& $_SERVER['REQUEST_URI']

◆ $xoopsSecurity

$xoopsSecurity = new XoopsSecurity()

◆ $xoopsUser

$xoopsUser = ''

User Sessions

◆ $xoopsUserIsAdmin

$xoopsUserIsAdmin = false

◆ activated

$xoopsLogger activated = false

◆ DIRECTORY_SEPARATOR

defined ( 'DS') or define( 'DS' DIRECTORY_SEPARATOR

YOU SHOULD NEVER USE THE FOLLOWING TO CONSTANTS, THEY WILL BE REMOVED

◆ else

if (function_exists( 'session_status')) else
Valeur initiale :
{
trigger_error('File Path Error: ' . 'var/configs/xoopsconfig.php' . ' does not exist.')

Merge file and db configs.

Start of Error Reportings.

◆ if

if (!defined( 'XOOPS_COOKIE_DOMAIN')) if($_SERVER['REQUEST_METHOD'] !=='POST'||! $xoopsSecurity->checkReferer(XOOPS_DB_CHKREF))

Include Required Files Check Proxy; Requires functions Get database for making it global Requires XoopsLogger, XOOPS_DB_PROXY;

◆ n

defined ( 'NWLINE') or define( 'NWLINE' n