Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
PHP
123456789101112131415161718192021222324252627282930313233343536<?php
function init_phabricator_script(array $options) { error_reporting(E_ALL); ini_set('display_errors', 1);
$root = null; if (!empty($_SERVER['PHUTIL_LIBRARY_ROOT'])) { $root = $_SERVER['PHUTIL_LIBRARY_ROOT']; }
$include_path = ini_get('include_path'); ini_set( 'include_path', $include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../../');
$ok = @include_once $root.'arcanist/support/init/init-script.php'; if (!$ok) { echo 'FATAL ERROR: Unable to load the "Arcanist" library. '. 'Put "arcanist/" next to "phorge/" on disk.'; echo "\n";
exit(1); }
phutil_load_library('arcanist/src'); phutil_load_library(dirname(__FILE__).'/../../src/');
$config_optional = $options['config.optional']; $no_extensions = $options['no-extensions'] ?? false; PhabricatorEnv::initializeScriptEnvironment( $config_optional, $no_extensions);}