Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93487540
lib.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 29, 03:49
Size
728 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 03:49 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22647833
Attached To
rPH Phabricator
lib.php
View Options
<?php
function
init_phabricator_script
(
array
$options
)
{
error_reporting
(
E_ALL
|
E_STRICT
);
ini_set
(
'display_errors'
,
1
);
$include_path
=
ini_get
(
'include_path'
);
ini_set
(
'include_path'
,
$include_path
.
PATH_SEPARATOR
.
dirname
(
__FILE__
).
'/../../../'
);
@
include_once
'libphutil/scripts/__init_script__.php'
;
if
(!@
constant
(
'__LIBPHUTIL__'
))
{
echo
"ERROR: Unable to load libphutil. Update your PHP 'include_path' to "
.
"include the parent directory of libphutil/.
\n
"
;
exit
(
1
);
}
phutil_load_library
(
'arcanist/src'
);
phutil_load_library
(
dirname
(
__FILE__
).
'/../../src/'
);
$config_optional
=
$options
[
'config.optional'
];
PhabricatorEnv
::
initializeScriptEnvironment
(
$config_optional
);
}
Event Timeline
Log In to Comment