Skip to content

Instantly share code, notes, and snippets.

@clintecker
Created June 1, 2011 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clintecker/1002273 to your computer and use it in GitHub Desktop.
Save clintecker/1002273 to your computer and use it in GitHub Desktop.
<?
// Boilerplate goes here
$_resource = new Placeholder();
$_resource->entries_etc = new ResourceList(array('/apple/news/2011/05/apple-has-released-security-update.ars', '/science/news/2011/05/-science-is-also-backing.ars', '/software/news/2011/05/skype-has-released-an-updated.ars', '/tech-policy/news/2011/05/facebook-and-google-are-facing.ars', '/web/news/2011/05/google-released-a-new-flight.ars', '/apple/news/2011/05/ea-has-put-most-of.ars', '/science/news/2011/05/-ars-own-jonathan-gitlin.ars', '/microsoft/news/2011/05/microsoft-has-shipped-internet-explorer.ars', '/science/news/2011/05/-nasa-has-given-up.ars', '/tech-policy/news/2011/05/the-phantom-data-lawsuit-against.ars', '/tech-policy/news/2011/05/comcast-wont-adopt-usage-based-billing.ars', '/gadgets/news/2011/05/verizon-wireless-has-announced-that.ars', '/gadgets/news/2011/05/amazon-has-added-an-ad-supported.ars', '/apple/news/2011/05/macworld-has-a-neat-how-to.ars', '/apple/news/2011/05/samsung-has-been-ordered-to.ars', '/apple/news/2011/05/the-opera-mini-browser-for.ars', '/apple/news/2011/05/a-infographic-on-the-first.ars', '/apple/news/2011/05/video-startup-freewheel-says-that.ars', ... ));//
$_resource->template_name = 'Homepage';
$_resource->entries = new ResourceList(array('/tech-policy/news/2011/06/criticism-and-takedown-how-review-sites-can-defend-free-speech.ars', '/gaming/news/2011/06/metro-last-light-e3-embargo.ars', '/open-source/news/2011/06/howto-four-tweaks-to-bring-back-missing-functionality-in-gnome-30.ars', '/tech-policy/news/2011/05/a-way-to-take-out-spammers-3-banks-process-95-of-spam-transactions.ars', '/apple/news/2011/05/samsung-tries-to-gain-access-to-unannounced-next-gen-apple-devices.ars', '/tech-policy/news/2011/05/attt-mobile-merger-on-the-hot-seat-as-sprint-files-to-block-it.ars', '/science/news/2011/05/who-declares-cellphones-possibly-carcinogenic.ars', '/security/news/2011/05/defense-contractor-aggressive-action-kept-cyberattackers-at-bay.ars', '/science/news/2011/05/carbon-emissions-boom-making-future-cuts-harder.ars', ...));//
$_resource->url = '/index.php';
$_resource->categories = new ResourceList(array('/ask-ars/', '/features/', '/guides/', '/news/', '/premier/', '/reviews/', '/system-guides/', '/apple/', '/business/', '/gadgets/', '/gaming/', '/hardware/', '/media/', '/microsoft/', '/old/', '/open-source/', '/science/', '/security/', '/software/', '/staff/', '/tags/', '/tech-policy/', '/technopaedia/', '/telecom/', '/web/', ));
$_resource->template_type = 'index';
$GLOBALS['request_cache'][$_resource->url] = $_resource;
if(__FILE__ == $_SERVER['SCRIPT_FILENAME'] && !$GLOBALS['request_handled']){
$GLOBALS['request_handled'] = true;
$_script_name = $_SERVER['SCRIPT_NAME'];
$GLOBALS['site_root'] = substr($_script_name, 0, strrpos($_script_name, $_resource->url));
require_once($GLOBALS['app_engine_dir'] . 'engine.php');
render($_resource);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment