[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/scripts/ -> __init_script__.php (source)

   1  <?php
   2  
   3  function init_phabricator_script() {
   4    error_reporting(E_ALL | E_STRICT);
   5    ini_set('display_errors', 1);
   6  
   7    $include_path = ini_get('include_path');
   8    ini_set(
   9      'include_path',
  10      $include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../');
  11    @include_once 'libphutil/scripts/__init_script__.php';
  12    if (!@constant('__LIBPHUTIL__')) {
  13      echo "ERROR: Unable to load libphutil. Update your PHP 'include_path' to ".
  14           "include the parent directory of libphutil/.\n";
  15      exit(1);
  16    }
  17  
  18    phutil_load_library('arcanist/src');
  19    phutil_load_library(dirname(__FILE__).'/../src/');
  20  
  21    PhabricatorEnv::initializeScriptEnvironment();
  22  }
  23  
  24  init_phabricator_script();


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1