2011-01-25 18:59:31 +01:00
|
|
|
<?php
|
|
|
|
|
2012-12-25 15:15:28 +01:00
|
|
|
function init_phabricator_script() {
|
|
|
|
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 ".
|
2015-05-22 09:27:56 +02:00
|
|
|
"include the parent directory of libphutil/.\n";
|
2012-12-25 15:15:28 +01:00
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
phutil_load_library('arcanist/src');
|
|
|
|
phutil_load_library(dirname(__FILE__).'/../src/');
|
|
|
|
|
|
|
|
PhabricatorEnv::initializeScriptEnvironment();
|
2011-10-01 17:59:42 +02:00
|
|
|
}
|
2012-06-21 21:02:12 +02:00
|
|
|
|
2012-12-25 15:15:28 +01:00
|
|
|
init_phabricator_script();
|