Back to index

php5  5.3.10
blog.phar.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 $fname = dirname(__FILE__) . '/blog.phar';
00004 @unlink($fname);
00005 
00006 $phar = new Phar($fname);
00007 $phar->setStub('<?php
00008 Phar::interceptFileFuncs();
00009 if(file_exists(dirname(__FILE__) . "/files/config.xml")) {
00010     Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml");
00011 }
00012 Phar::webPhar("blog", "index.php");
00013 __HALT_COMPILER(); ?>');
00014 $phar['index.php'] = '<?php if (!file_exists("config.xml")) {
00015        include "install.php";
00016        exit;
00017 }
00018 var_dump(str_replace("\r\n", "\n", file_get_contents("config.xml")));
00019 ?>';
00020 $phar['install.php'] = '<?php echo "install\n"; ?>';
00021 
00022 ?>