Dotclear 2.24
Loading...
Searching...
No Matches
prepend.php File Reference

Namespaces

namespace  Dotclear
 Authentication and user credentials management.
 

Functions

 __error (string $summary, string $message, int $code=0)
 

Variables

const DC_START_TIME microtime(true)
 
if( @is_dir(implode(DIRECTORY_SEPARATOR,[ 'usr', 'lib', 'clearbricks']))) elseif(is_dir(implode(DIRECTORY_SEPARATOR, [__DIR__, 'libs', 'clearbricks']))) elseif(isset( $_SERVER[ 'CLEARBRICKS_PATH']) &&is_dir( $_SERVER[ 'CLEARBRICKS_PATH'])) if (!defined( 'CLEARBRICKS_PATH')||!is_dir(CLEARBRICKS_PATH))
 
const CLI_MODE PHP_SAPI == 'cli'
 
if(isset( $_SERVER[ 'DC_RC_PATH'])) elseif(isset($_SERVER['REDIRECT_DC_RC_PATH'])) else
 
const DC_ROOT (!defined('DC_DEBUG')) path::real(dcUtils::path([__DIR__, '..']))
 
const DC_VERSION '2.24-dev'
 
const DC_DIGESTS dcUtils::path([__DIR__, 'digests'])
 
const DC_L10N_ROOT dcUtils::path([__DIR__, '..', 'locales'])
 
const DC_L10N_UPDATE_URL 'https://services.dotclear.net/dc2.l10n/?version=%s'
 
const DC_DISTRIB_PLUGINS implode( ',', [ 'aboutConfig', 'akismet', 'antispam', 'attachments', 'blogroll', 'blowupConfig', 'breadcrumb', 'dcCKEditor', 'dcLegacyEditor', 'dcProxyV2', 'fairTrackbacks', 'importExport', 'maintenance', 'pages', 'pings', 'simpleMenu', 'tags', 'themeEditor', 'userPref', 'widgets', ] )
 
const DC_DISTRIB_THEMES implode( ',', [ 'berlin', 'blueSilence', 'blowupConfig', 'customCSS', 'default', 'ductile', ] )
 
const DC_DEFAULT_THEME 'berlin'
 
const DC_DEFAULT_TPLSET 'mustek'
 
const DC_DEFAULT_JQUERY '3.6.0'
 
 try
 

Function Documentation

◆ __error()

__error ( string  $summary,
string  $message,
int  $code = 0 
)

Local error handler

Parameters
string$summaryThe summary
string$messageThe message
int$codeThe code

References $summary, CLI_MODE, and exit.

Referenced by dcAdmin\init().

Variable Documentation

◆ DC_START_TIME

const DC_START_TIME microtime(true)

Referenced by dcCore\__construct().

◆ if

if(@is_dir(implode(DIRECTORY_SEPARATOR, ['usr', 'lib', 'clearbricks']))) elseif(is_dir(implode(DIRECTORY_SEPARATOR,[__DIR__, 'libs', 'clearbricks']))) elseif(isset($_SERVER['CLEARBRICKS_PATH']) &&is_dir($_SERVER['CLEARBRICKS_PATH'])) if(!defined('CLEARBRICKS_PATH')||!is_dir(CLEARBRICKS_PATH)) ( defined 'CLEARBRICKS_PATH')||!is_dir(CLEARBRICKS_PATH)

◆ CLI_MODE

const CLI_MODE PHP_SAPI == 'cli'

Referenced by __error().

◆ else

if(!defined('DC_NEXT_REQUIRED_PHP')) if(!defined( 'DC_VENDOR_NAME')) if(!defined('DC_XMLRPC_URL')) if(!defined( 'DC_SESSION_TTL')) if(!defined('DC_ADMIN_SSL')) if(defined( 'DC_FORCE_SCHEME_443') &&DC_FORCE_SCHEME_443) if(defined('DC_REVERSE_PROXY') &&DC_REVERSE_PROXY) if(!defined( 'DC_DBPERSIST')) if(!defined('DC_UPDATE_URL')) if(!defined( 'DC_UPDATE_VERSION')) if(!defined('DC_NOT_UPDATE')) if(!defined( 'DC_ALLOW_MULTI_MODULES')) if(!defined('DC_STORE_NOT_UPDATE')) if(!defined( 'DC_ALLOW_REPOSITORIES')) if(!defined('DC_QUERY_TIMEOUT')) if (!defined( 'DC_CRYPT_ALGO')) else
Initial value:
{
define('DC_RC_PATH', implode(DIRECTORY_SEPARATOR, [__DIR__, 'config.php']))

◆ DC_ROOT

const DC_ROOT(!defined( 'DC_DEBUG')) ( defined 'DC_DEBUG') path::real(dcUtils::path([__DIR__, '..']))

◆ DC_VERSION

◆ DC_DIGESTS

const DC_DIGESTS dcUtils::path([__DIR__, 'digests'])

◆ DC_L10N_ROOT

◆ DC_L10N_UPDATE_URL

const DC_L10N_UPDATE_URL 'https://services.dotclear.net/dc2.l10n/?version=%s'

Referenced by adminLangs\init().

◆ DC_DISTRIB_PLUGINS

const DC_DISTRIB_PLUGINS implode( ',', [ 'aboutConfig', 'akismet', 'antispam', 'attachments', 'blogroll', 'blowupConfig', 'breadcrumb', 'dcCKEditor', 'dcLegacyEditor', 'dcProxyV2', 'fairTrackbacks', 'importExport', 'maintenance', 'pages', 'pings', 'simpleMenu', 'tags', 'themeEditor', 'userPref', 'widgets', ] )

◆ DC_DISTRIB_THEMES

const DC_DISTRIB_THEMES implode( ',', [ 'berlin', 'blueSilence', 'blowupConfig', 'customCSS', 'default', 'ductile', ] )

◆ DC_DEFAULT_THEME

const DC_DEFAULT_THEME 'berlin'

Referenced by dcCore\blogDefaults().

◆ DC_DEFAULT_TPLSET

◆ DC_DEFAULT_JQUERY

const DC_DEFAULT_JQUERY '3.6.0'

Referenced by dcBlog\getJsJQuery().

◆ try

try
Initial value:
{
Definition: class.dc.core.php:15
const DC_DBUSER
Definition: config.php:20
const DC_DBPREFIX
Definition: config.php:29
const DC_DBHOST
Definition: config.php:17
const DC_DBNAME
Definition: config.php:26
const DC_DBPASSWORD
Definition: config.php:23
const DC_DBDRIVER
Definition: config.php:13
const DC_DBPERSIST
Definition: config.php:79