XOOPS  2.6.0
common.php File Reference

Go to the source code of this file.

Namespaces

 kernel
 

Variables

 $GLOBALS ['xoops'] =& $xoops
 
 $GLOBALS ['xoopsDB'] =& $xoopsDB
 
 $member_handler = $xoops->getHandlerMember()
 
 $psr4loader = new \Xoops\Core\Psr4ClassLoader()
 
 $xFrameOptions = isset($xoopsConfig['xFrameOptions']) ? $xoopsConfig['xFrameOptions'] : 'sameorigin'
 
if(!class_exists('XoopsLoad', false)) global $xoops = Xoops::getInstance()
 
if($xoops->getConfig('closesite')==1) $xoops_url = \XoopsBaseConfig::get('url')
 
 $xoopsConfig =& $xoops->config
 
global $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(true)
 
 $xoopsLogger = $xoops->logger()
 
 $xoopsModule =& $xoops->module
 
 $xoopsModuleConfig =& $xoops->moduleConfig
 
 $xoopsSecurity = $xoops->security()
 
 $xoopsUser =& $xoops->user
 
 $xoopsUserIsAdmin =& $xoops->userIsAdmin
 
 $xoTheme = null
 
defined('DS') or define('DS' DIRECTORY_SEPARATOR
 
if(!defined('XOOPS_XMLRPC')) else
 
 if (isset($delayedWarning))
 
$xoops moduleDirname = 'system'
 
defined('NWLINE') or define('NWLINE' n
 
$xoops option =& $GLOBALS['xoopsOption']
 

Variable Documentation

$GLOBALS['xoopsDB'] =& $xoopsDB

Definition at line 37 of file common.php.

$member_handler = $xoops->getHandlerMember()

User Sessions

Definition at line 177 of file common.php.

$psr4loader = new \Xoops\Core\Psr4ClassLoader()

Definition at line 75 of file common.php.

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

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

Definition at line 153 of file common.php.

$xoops = Xoops::getInstance()

Include XoopsLoad - this should have been done in mainfile.php, but there is no update yet, so only only new installs get the change in mainfile.dist.php automatically.

Temporarily try and fix, but set up a (delayed) warning

Create Instance of Xoops Object Attention, not all methods can be used at this point

Definition at line 26 of file common.php.

if ($xoops->getConfig('closesite')==1) $xoops_url = \XoopsBaseConfig::get('url')

Closed Site Load Xoops Module

Definition at line 215 of file common.php.

$xoopsConfig =& $xoops->config

Definition at line 130 of file common.php.

Referenced by Smarty_Resource_Db\dbTplInfo(), and Xmf\Template\Feed\init().

$xoopsLogger = $xoops->logger()

Create Instance Xoops Object, the logger manager

Definition at line 68 of file common.php.

$xoopsModule =& $xoops->module
$xoopsModuleConfig =& $xoops->moduleConfig

Definition at line 266 of file common.php.

Referenced by Xmf\Module\Helper\GenericHelper\_initConfig().

$xoopsSecurity = $xoops->security()

Definition at line 85 of file common.php.

$xoopsUser =& $xoops->user

Definition at line 263 of file common.php.

$xoopsUserIsAdmin =& $xoops->userIsAdmin

Definition at line 265 of file common.php.

defined ('DS') or define('DS' DIRECTORY_SEPARATOR
if (XoopsLoad::fileExists('./xoops_version.php')) else
Initial value:
{
define('XOOPS_DB_CHKREF', 0)

Check Proxy; Requires functions

Merge file and db configs.

Definition at line 94 of file common.php.

if(isset($delayedWarning))

temporary warning message Include Required Files not handled by autoload

Definition at line 116 of file common.php.

$xoops moduleDirname = 'system'

Definition at line 216 of file common.php.

Referenced by Xoops\Module\Helper\HelperAbstract\isCurrentModule().

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

Definition at line 42 of file common.php.

$xoops option =& $GLOBALS['xoopsOption']