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