Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (19 sloc) 0.569 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
$pat = "/\/\*([\n]|.)+?\*\//";

$code = "";
$loader = simplexml_load_file("replica.xml");
$items = $loader->load->item;
foreach($items as $item) {
    echo "Adding: $item \n";
    $code .= file_get_contents( $item ) . "\n";
}
$code .= "

class R extends RedBean_Facade{
}
";

//Clean php tags and whitespace from codebase.
$code = "<?php ".str_replace( array("<?php", "<?", "?>"), array("", "", ""), $code);
file_put_contents("rb.php", $code);

if ($_SERVER['argc']>1 && $_SERVER['argv'][1]=='-s')
file_put_contents("rb.php", php_strip_whitespace("rb.php"));

?>
Something went wrong with that request. Please try again.