2 if (!in_array('phar', stream_get_wrappers()) || !class_exists('Phar', false)) {
3 echo "Phar extension not avaiable\n";
7 $web = 'www/index.php';
8 $cli = 'bin/phar-bdrem.php';
10 function rewritePath($path)
12 if ($path == '' || $path == '/') {
13 return 'www/index.php';
18 //Phar::interceptFileFuncs();
21 . PATH_SEPARATOR . 'phar://' . __FILE__ . '/lib/'
23 Phar::webPhar(null, $web, null, array(), 'rewritePath');
24 include 'phar://' . __FILE__ . '/' . $cli;