XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
common.php File Reference

Go to the source code of this file.

Namespaces

namespace  kernel
 

Variables

 $config_handler =& xoops_gethandler('config')
 
 $member_handler =& xoops_gethandler('member')
 
if(version_compare(PHP_VERSION, '5.3.0', '
<')) global 
$sess_handler =& xoops_gethandler('session')
 
if(version_compare(PHP_VERSION, '5.3.0', '
<')) global 
$xoops = new xos_kernel_Xoops2()
 
 $xoopsConfig = $config_handler->getConfigsByCat(XOOPS_CONF)
 
 $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection()
 
if(version_compare(PHP_VERSION, '5.3.0', '
<')) global 
$xoopsErrorHandler =& XoopsLogger::getInstance()
 
if(version_compare(PHP_VERSION, '5.3.0', '
<')) global 
$xoopsLogger =& XoopsLogger::getInstance()
 
if(version_compare(PHP_VERSION, '5.3.0', '
<')) global 
$xoopsPreload =& XoopsPreload::getInstance()
 
 $xoopsRequestUri =& $_SERVER['REQUEST_URI']
 
if(version_compare(PHP_VERSION, '5.3.0', '
<')) global 
$xoopsSecurity = new XoopsSecurity()
 
 $xoopsUser = ''
 
 $xoopsUserIsAdmin = false
 
$xoopsLogger activated = false
 
defined('DS') or define('DS' DIRECTORY_SEPARATOR
 
if(file_exists($file=$GLOBALS['xoops']->
path('var/configs/xoopsconfig.php'))) 
else
 
 if ($_SERVER['REQUEST_METHOD']!= 'POST'||!$xoopsSecurity->checkReferer(XOOPS_DB_CHKREF))
 
defined('NWLINE') or define('NWLINE' n
 
const XOOPS_COOKIE_DOMAIN (strpos($domain = xoops_getBaseDomain(XOOPS_URL),'.')) === FALSE ? '' : '.' . $domain
 

Variable Documentation

$config_handler =& xoops_gethandler('config')

Get xoops configs Requires functions and database loaded

Definition at line 119 of file common.php.

$member_handler =& xoops_gethandler('member')

Definition at line 177 of file common.php.

$sess_handler =& xoops_gethandler('session')

Definition at line 19 of file common.php.

$xoops = new xos_kernel_Xoops2()

Definition at line 19 of file common.php.

$xoopsConfig = $config_handler->getConfigsByCat(XOOPS_CONF)

Definition at line 120 of file common.php.

Definition at line 113 of file common.php.

$xoopsErrorHandler =& XoopsLogger::getInstance()

Definition at line 19 of file common.php.

$xoopsLogger =& XoopsLogger::getInstance()

Definition at line 19 of file common.php.

$xoopsPreload =& XoopsPreload::getInstance()

Definition at line 19 of file common.php.

$xoopsRequestUri =& $_SERVER['REQUEST_URI']

Definition at line 63 of file common.php.

$xoopsSecurity = new XoopsSecurity()

Definition at line 19 of file common.php.

$xoopsUserIsAdmin = false

Definition at line 176 of file common.php.

Referenced by MytsTextfilter\load(), and redirect_header().

$xoopsLogger activated = false

Definition at line 156 of file common.php.

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

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

Definition at line 28 of file common.php.

if ($xoopsConfig['debug_mode']==1||$xoopsConfig['debug_mode']==2) else
Initial value:
{
trigger_error('File Path Error: ' . 'var/configs/xoopsconfig.php' . ' does not exist.')

Merge file and db configs.

Start of Error Reportings.

Definition at line 129 of file common.php.

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

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

Definition at line 104 of file common.php.

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

Definition at line 29 of file common.php.

const XOOPS_COOKIE_DOMAIN (strpos($domain = xoops_getBaseDomain(XOOPS_URL),'.')) === FALSE ? '' : '.' . $domain

Include Required Files YOU SHOULD NEVER USE THE FOLLOWING CONSTANT, IT WILL BE REMOVED Set cookie dope for multiple subdomains remove the '.'. to use top level dope for session cookie; Requires functions

Definition at line 98 of file common.php.

Referenced by XoopsSessionHandler\update_cookie().