File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 die ('This tool must not be run via the command line. ' . PHP_EOL );
1010}
1111
12- // required to bypass components .php verify install
12+ // required to bypass core/init .php verify install
1313define ('OB_CLI ' , true );
1414
1515require_once (__DIR__ . '/../../core/init.php ' );
Original file line number Diff line number Diff line change 55}
66
77header ('Content-Type: application/json ' );
8- require_once (' ../../components .php ' );
9- require_once (' vendor/james-heinrich/getid3/getid3/getid3.php ' );
8+ require_once (__DIR__ . ' / ../../core/init .php ' );
9+ require_once (__DIR__ . ' /../../ vendor/james-heinrich/getid3/getid3/getid3.php ' );
1010$ getID3 = new getID3 ();
1111$ db = \OpenBroadcaster \Support \DB ::get_instance ();
1212$ models = \OpenBroadcaster \Support \Models::get_instance ();
Original file line number Diff line number Diff line change 55}
66
77header ('Content-Type: application/json ' );
8- require_once (' ../../components .php ' );
9- require_once (' vendor/james-heinrich/getid3/getid3/getid3.php ' );
8+ require_once (__DIR__ . ' / ../../core/init .php ' );
9+ require_once (__DIR__ . ' /../../ vendor/james-heinrich/getid3/getid3/getid3.php ' );
1010$ getID3 = new getID3 ();
1111$ db = \OpenBroadcaster \Support \DB ::get_instance ();
1212$ models = \OpenBroadcaster \Support \Models::get_instance ();
Original file line number Diff line number Diff line change 1010}
1111
1212header ('Content-Type: application/json ' );
13- require_once (' ../../components .php ' );
14- require_once (' vendor/james-heinrich/getid3/getid3/getid3.php ' );
13+ require_once (__DIR__ . ' / ../../core/init .php ' );
14+ require_once (__DIR__ . ' /../../ vendor/james-heinrich/getid3/getid3/getid3.php ' );
1515$ getID3 = new getID3 ();
1616$ db = \OpenBroadcaster \Support \DB ::get_instance ();
1717$ models = \OpenBroadcaster \Support \Models::get_instance ();
You can’t perform that action at this time.
0 commit comments