Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F570688
core.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
753 B
Referenced Files
None
Subscribers
None
core.php
View Options
<?php
// Composer deps
define
(
'AUTOLOAD'
,
'../vendor/autoload.php'
);
if
(!
file_exists
(
AUTOLOAD
))
{
die
(
"Please install Composer if needed, then run 'make' or directly 'composer install'."
);
}
require
AUTOLOAD
;
// Turns all PHP errors into exceptions
// See http://stackoverflow.com/a/1241751/1930997
set_error_handler
(
function
(
$errno
,
$errstr
,
$errfile
,
$errline
,
array
$errcontext
)
{
// Error suppressed with the @-operator shouldn't transformed in exceptions.
if
(
error_reporting
()
===
0
)
{
return
false
;
}
throw
new
ErrorException
(
trim
(
$errstr
),
0
,
$errno
,
$errfile
,
$errline
);
});
// log4php configuration
if
(
isset
(
$_SERVER
[
'LOGGER_CONFIG'
])
&&
file_exists
(
$_SERVER
[
'LOGGER_CONFIG'
]))
{
Logger
::
configure
(
$_SERVER
[
'LOGGER_CONFIG'
]);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Nov 25, 4:15 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
73181
Default Alt Text
core.php (753 B)
Attached To
Mode
rAPI Wolfplex API
Attached
Detach File
Event Timeline
Log In to Comment