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 if(file_exists(dirname(__FILE__) . "/files/config.xml")) {
00008     Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml");
00009 }
00010 Phar::webPhar("blog", "index.php");
00011 __HALT_COMPILER(); ?>');
00012 $phar['index.php'] = '<?php if (!file_exists("config.xml")) {
00013        include "install.php";
00014        exit;
00015 }
00016 var_dump(file_get_contents("config.xml"));
00017 ?>';
00018 $phar['install.php'] = '<?php echo "install\n"; ?>';
00019 
00020 ?>