Skip to content

Instantly share code, notes, and snippets.

@mrkurt
Created March 21, 2009 17:08
Show Gist options
  • Save mrkurt/82902 to your computer and use it in GitHub Desktop.
Save mrkurt/82902 to your computer and use it in GitHub Desktop.
<?
require_once('/home/kurt/ars-technica-mt-bits/published/includes_c/classes.inc.php');
$_resource = new Category();
$_resource->entries = array('http://kurt.staging.arstechnica.com/published/2009/01/asdf.php', 'http://kurt.staging.arstechnica.com/published/2009/01/i-am-testing-stuff-here8.php', 'http://kurt.staging.arstechnica.com/published/2009/01/this-is-a-test-of-the-blah-blah-blah-system.php', 'http://kurt.staging.arstechnica.com/published/2007/08/two-more-iphone-ads-all-these-years-and-all-the-parts.php');//Category
$_resource->name = 'apple';
$_resource->children = array(
'http://kurt.staging.arstechnica.com/published/apple/guides/', 'http://kurt.staging.arstechnica.com/published/apple/news/', 'http://kurt.staging.arstechnica.com/published/apple/reviews/', 'http://kurt.staging.arstechnica.com/published/apple/iphone/', 'http://kurt.staging.arstechnica.com/published/apple/mwsf/',
);
$_resource->ad_category = false;
$_resource->entry_count = 4;
$_resource->category_root_url = 'http://kurt.staging.arstechnica.com/published/apple/';
$_resource->archives = array('http://kurt.staging.arstechnica.com/published/apple/2009/', 'http://kurt.staging.arstechnica.com/published/apple/2007/', );
$_resource->basename = 'apple';
$_resource->feed_url = 'http://feedburner.com/Ars/Apple';
$_resource->url = 'http://kurt.staging.arstechnica.com/published/apple/';
$_resource->id = 1;
$_resource->type = 'Category';
$_resource->journal_name = 'Infinite Loop';
$_resource->parents = array_reverse(array(
));
$GLOBALS['request_cache'][$_instance->url] = $_resource;
if(__FILE__ == $_SERVER['SCRIPT_FILENAME']){
require_once('/home/kurt/ars-technica-mt-bits/published/templates/test.php');
render($_resource);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment