XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
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 |
$config_handler = xoops_getHandler('config') |
Get xoops configs Requires functions and database loaded
$member_handler = xoops_getHandler('member') |
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 = xoops_getHandler('session') |
$xFrameOptions = isset($xoopsConfig['xFrameOptions']) ? $xoopsConfig['xFrameOptions'] : 'sameorigin' |
clickjack protection - Add option to HTTP header restricting using site in an iframe
$xoops = new xos_kernel_Xoops2() |
$xoopsConfig = $config_handler->getConfigsByCat(XOOPS_CONF) |
$xoopsDB = XoopsDatabaseFactory::getDatabaseConnection() |
$xoopsErrorHandler = XoopsLogger::getInstance() |
$xoopsLogger = XoopsLogger::getInstance() |
$xoopsPreload = XoopsPreload::getInstance() |
$xoopsRequestUri =& $_SERVER['REQUEST_URI'] |
$xoopsSecurity = new XoopsSecurity() |
$xoopsUser = '' |
User Sessions
$xoopsUserIsAdmin = false |
$xoopsLogger activated = false |
YOU SHOULD NEVER USE THE FOLLOWING TO CONSTANTS, THEY WILL BE REMOVED
if (function_exists( 'session_status')) else |
Merge file and db configs.
Start of Error Reportings.
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;