Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F435701
core.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
753 B
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 5, 4:21 AM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69171
Default Alt Text
core.php (753 B)
Attached To
rAPI Wolfplex API
Event Timeline
Log In to Comment