Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56940798
core.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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 ///
/// ///
////////////////////////////////////////////////////////////////////////////////
//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
(
"autoload.php"
);
//Autoloader for needed classes
//The user_id matching anonymous user (overridable in config file)
if
(!
defined
(
'ANONYMOUS_USER'
))
{
define
(
'ANONYMOUS_USER'
,
-
1
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 13, 06:25 (1 w, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4052495
Default Alt Text
core.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment