Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F6562683
core.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
core.php
View Options
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Core global functions
*
* @package ObsidianWorkspaces
* @subpackage Keruald
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
////////////////////////////////////////////////////////////////////////////////
/// ///
/// Configures PHP and loads site-wide used libraries ///
/// ///
////////////////////////////////////////////////////////////////////////////////
//Errors management
include_once
(
"error.php"
);
error_reporting
(
E_ALL
);
$minorRecoverableErrors
=
E_NOTICE
|
E_USER_NOTICE
|
E_DEPRECATED
|
E_USER_DEPRECATED
;
set_error_handler
(
'throwExceptionErrorHandler'
,
E_ALL
^
$minorRecoverableErrors
);
//Loads global functions
include_once
(
"GlobalFunctions.php"
);
//Global functions
//Loads configuration
if
(
isset
(
$_SERVER
)
&&
array_key_exists
(
'OBSIDIAN_CONFIG'
,
$_SERVER
))
{
$configFile
=
$_SERVER
[
'OBSIDIAN_CONFIG'
];
if
(
file_exists
(
$configFile
))
{
include_once
(
$configFile
);
unset
(
$configFile
);
}
else
{
die
(
"You've specified a custom configuration file path in the environment, but this file doesn't exist: $configFile"
);
}
}
else
{
include_once
(
"config.php"
);
}
//Loads libraries
include_once
(
"session.php"
);
//Sessions handler
include_once
(
"autoload.php"
);
//Autoloader for needed classes
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Apr 2, 18:25 (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535313
Default Alt Text
core.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment