Skip to content

Instantly share code, notes, and snippets.

@clintecker
Created June 1, 2011 13:19
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/1002269 to your computer and use it in GitHub Desktop.
Save clintecker/1002269 to your computer and use it in GitHub Desktop.
<?
// Some boilerplate goes here, loading in all our classes and whatnot...
// If this looks hella janky to you, then you'd be justified in thinking so. But it works quite well.
// This file is auto-generated by MovableType, and as such doesn't look amazingly efficient, but that's
// why things sometimes get defined and then redefined immediately.
$_resource = new Entry();
$_resource->related_urls = 'http://www.archive.org/download/gov.uscourts.cand.239768/gov.uscourts.cand.239768.56.0.pdf Motion to Compel Apple to Produce Reciprocal Expedited Discovery';
$_resource->next = false;
$_resource->next = new Resource('/tech-policy/news/2011/05/a-way-to-take-out-spammers-3-banks-process-95-of-spam-transactions.ars');
$_resource->excerpt = 'In a legal tit-for-tat, Samsung retaliates against Apple\'s recent expedited discovery win by requesting the court to force Apple to turn over pre-production prototypes of the "iPhone 5" and "iPad 3."';
$_resource->listing_image = false;
$_resource->listing_image = new Image();
$_resource->listing_image->entry = false;
$_resource->listing_image->caption = '';
$_resource->listing_image->credit = '';
$_resource->listing_image->url = '/cdn/apple/ipad_prototype_belong_samsung.jpg';
$_resource->listing_image->credit_url = '';
$_resource->listing_image->id = 22164;
$_resource->listing_image->sizes = array(
'300' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-300x169-22164-f.jpg',
'280' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-280x158-22164-f.jpg',
'230' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-230x130-22164-f.jpg',
'140' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-140x78-22164-f.jpg',
'133' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-133x75-22164-f.jpg',
'106' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-106x60-22164-f.jpg',
'640' => '/cdn/assets/2011/05/ipad_prototype_belong_samsung-thumb-640xauto-22164.jpg'
);
$_resource->listing_image->size = array(640, 360);
$_resource->listing_image->mime_type = 'image/jpeg';
$_resource->date = 1306878240;
$_resource->primary_category = new Resource('/apple/news/');
$_resource->previous = false;
$_resource->previous = new Resource('/apple/news/2011/05/apple-has-released-security-update.ars');
$_resource->disable_pagenumbers = '0';
$_resource->body = '<p>Samsung\'s latest maneuver in what appears will be a long, drawn-out legal battle with Apple over <a href="http://arstechnica.com/apple/news/2011/04/bad-touchwiz-apple-sues-samsung-for-patent-violations.ars">mobile device copying</a> is a bold one. The company filed a "reciprocal expedited discovery request" asking to see samples of Apple\'s expected, though unannounced, next-generation iPhone and iPad hardware.</p>
<p>The motion was filed shortly after Apple was <a href="http://arstechnica.com/apple/news/2011/05/samsung-has-been-ordered-to.ars">granted</a> an expedited discovery request which sought to gain access to upcoming Samsung hardware that is believed to infringe on Apple\'s design patents and trade dress. Apple had already claimed Samsung\'s Galaxy S smartphones and Galaxy Tab crossed the line between inspiration and rip-off, and Apple sought access to announced new products to determine if Apple should add them to its lawsuit against Samsung or potentially file an injunction barring their release.</p>';
$_resource->is_premier_content = '0';
$_resource->original_url = '/apple/news/2011/05/samsung-tries-to-gain-access-to-unannounced-next-gen-apple-devices.ars';
$_resource->url = '/apple/news/2011/05/samsung-tries-to-gain-access-to-unannounced-next-gen-apple-devices.ars';
$_resource->id = 50721;
$_resource->pdf_file = false;
$_resource->authors = new ResourceList(array(
array('/author/chris-foresman/', 'Chris Foresman')
), array('url_index' => 0) );
$_resource->modified_date = 1306883118;
$_resource->categories = new ResourceList(array(
'/apple/news/', '/gadgets/news/', '/news/', '/tech-policy/news/', '/apple/', '/gadgets/', '/tech-policy/'
));
$_resource->ad_category = false;
$_resource->ad_category = 'ce_gear';
$_resource->created_date = 1306874948;
$_resource->intro_image = false;
$_resource->tags = array('galaxys', 'galaxytab', 'ipad', 'iphone', 'lawsuit', 'samsung', 'smartphone', 'tablet');
$_resource->feature_image = false;
$_resource->pdf_url = false;
$_resource->phpbb_topic_id = 0;
$_resource->phpbb_topic_id = 1146339;
$_resource->type = 'Individual';
$_resource->title = 'Samsung tries to gain access to unannounced next-gen Apple devices';
$_resource->short_url = 'http://arst.ch/pp5';
$_resource->pages = array(
'<p>The judge <a href="http://www.courthousenews.com/2011/05/19/36708.htm">agreed with Apple\'s request</a> to examine the Droid Charge, Infuse 4G, Galaxy S II, Galaxy Tab 10.1, and Galaxy Tab 8.9 because images Apple had submitted to the court in its original complaint showed "reasonable basis" for Apple\'s belief that Samsung\'s latest products might be "designed to mimic Apple\'s products."</p>
...
');
$_resource->discussion_url = false;
$_resource->daily_archive = '/apple/news/2011/05/31/';
// Individual (the type of resources this is)
$GLOBALS['request_cache'][$_resource->url] = $_resource;
// If this article is being loaded on its own, i.e. someone is loading this article to read it
// then we render out the resource with the current template set.
//
// Sometimes articles are loaded/required as a part of a collection of resources, think about
// a listing page like the home page or the /apple/ listing page. We don't want to render each
// article out, so we let the templates for those sections to render out a collection of articles
// in its own way, depending on the type of resource being requested and the context in which its
// being used.
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