Beispiel #1
0
$art = article_collect($article_id, $sim_orderby, $sim_showall);
/* TODO: show a more useful 404/410 page for missing/hidden articles! */
if (is_null($art)) {
    header('HTTP/1.1 404 Not Found');
    return;
}
if ($art['status'] == 'h') {
    header('HTTP/1.1 410 Gone');
    return;
}
if ($art['status'] != 'a') {
    header('HTTP/1.1 404 Not Found');
    return;
}
$fmt = get_http_var('fmt');
if ($fmt == "rdfxml") {
    header("Content-Type: application/rdf+xml");
    article_emitRDFXML($art);
    return;
} else {
    emit_page_article($art);
}
function emit_page_article($art)
{
    $pagetitle = $art['title'];
    $params = array('canonical_url' => article_url($art['id']));
    page_header($pagetitle, $params);
    extract($art);
    include "../templates/article.tpl.php";
    page_footer();
}
function emit_page_article($art)
{
    $pagetitle = $art['title'];
    $params = array('canonical_url' => article_url($art['id']));
    page_header($pagetitle, $params);
    extract($art);
    include "../templates/article.tpl.php";
    page_footer();
}
// article data exported using ../hacks/spew script
$art1 = <<<EOT
a:54:{i:0;s:7:"2429224";s:2:"id";s:7:"2429224";i:1;s:47:"Dr Andrew Wakefield struck off medical register";s:5:"title";s:47:"Dr Andrew Wakefield struck off medical register";i:2;s:23:"Raf Sanchez, David Rose";s:6:"byline";s:99:"<span class="author vcard"><a class="url fn" href="/raf-sanchez">Raf Sanchez</a></span>, David Rose";i:3;s:174:"Andrew Wakefield, the doctor who triggered the MMR vaccine scare, was struck off the medical register today following the longest medical misconduct trial in British history.";s:11:"description";s:174:"Andrew Wakefield, the doctor who triggered the MMR vaccine scare, was struck off the medical register today following the longest medical misconduct trial in British history.";i:4;s:19:"2010-05-24 10:29:00";s:7:"pubdate";s:19:"2010-05-24 10:29:00";i:5;s:26:"2010-05-24 11:50:05.385813";s:9:"firstseen";s:26:"2010-05-24 11:50:05.385813";i:6;s:26:"2010-05-24 11:50:05.385813";s:8:"lastseen";s:26:"2010-05-24 11:50:05.385813";i:7;s:59:"http://www.timesonline.co.uk/tol/news/uk/article7134893.ece";s:9:"permalink";s:59:"http://www.timesonline.co.uk/tol/news/uk/article7134893.ece";i:8;s:59:"http://www.timesonline.co.uk/tol/news/uk/article7134893.ece";s:6:"srcurl";s:59:"http://www.timesonline.co.uk/tol/news/uk/article7134893.ece";i:9;s:1:"8";s:6:"srcorg";s:1:"8";i:10;s:24:"times_article7134893.ece";s:5:"srcid";s:24:"times_article7134893.ece";i:11;s:26:"2010-05-24 11:51:45.206078";s:11:"lastscraped";s:26:"2010-05-24 11:51:45.206078";i:12;s:3:"528";s:9:"wordcount";s:3:"528";i:13;s:1:"a";s:6:"status";s:1:"a";i:14;s:2:"12";s:15:"total_bloglinks";s:2:"12";i:15;s:1:"0";s:14:"total_comments";s:1:"0";i:16;s:1:"t";s:14:"needs_indexing";s:1:"t";i:17;s:26:"2010-05-29 11:26:05.036406";s:18:"last_comment_check";s:26:"2010-05-29 11:26:05.036406";i:18;s:26:"2013-11-17 23:48:59.206216";s:12:"last_similar";s:26:"2013-11-17 23:48:59.206216";s:10:"article_id";s:7:"2429224";s:4:"id36";s:5:"1g2eg";s:10:"blog_links";a:12:{i:0;a:9:{s:2:"id";s:6:"882724";s:16:"nearestpermalink";s:73:"http://thewildeman2.blogspot.com/2011/04/autism-controversy-vaccines.html";s:5:"title";s:28:"Autism Controversy: Vaccines";s:8:"blogname";s:16:"Wildeman's Words";s:7:"blogurl";s:33:"http://thewildeman2.blogspot.com/";s:11:"linkcreated";s:26:"2011-04-20 22:42:11.374498";s:7:"excerpt";s:306:"... your medical license without any corroborative evidence, but that's a lot of info to put here. Instead, try these links; Wikipedia, BBC News, Sunday Times , Science-Based Medicine, and if you google him it goes on and on and on. Wakefield has a near celebrity status that earned him a book deal and ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:1;a:9:{s:2:"id";s:6:"800134";s:16:"nearestpermalink";s:71:"http://torontoemerg.wordpress.com/2011/01/28/jenny-mccarthy-body-count/";s:5:"title";s:25:"Jenny McCarthy Body Count";s:8:"blogname";s:21:"Those Emergency Blues";s:7:"blogurl";s:33:"http://torontoemerg.wordpress.com";s:11:"linkcreated";s:26:"2011-01-29 10:41:35.681078";s:7:"excerpt";s:254:"Jenny McCarthy, of course, is the very public face of the anti-vaccination movement, which centres around spurious and fraudulent claims about the connection between vaccination and autism. Click on the image to go to the site. Tom Meggison at Osocio ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:2;a:9:{s:2:"id";s:6:"775630";s:16:"nearestpermalink";s:82:"http://pretendingwedontexist.blogspot.com/2011/01/surprise-scientists-lie-too.html";s:5:"title";s:29:"Surprise! Scientists lie too.";s:8:"blogname";s:28:"let's pretend we don't exist";s:7:"blogurl";s:42:"http://pretendingwedontexist.blogspot.com/";s:11:"linkcreated";s:26:"2011-01-06 05:02:01.273513";s:7:"excerpt";s:297:"... you listen to A PLAYBOY BUNNY ON OPRAH over SCIENTISTS. But don't worry, my second reaction kicks in quickly enough: if it weren't for certain scientists lying in the first place, this wouldn't even be an issue. Ugh. Moral of the story, kids: Trust no one. In the immortal words of Michael ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:3;a:9:{s:2:"id";s:6:"709048";s:16:"nearestpermalink";s:65:"http://blog.epiren.com/2010/10/gift-that-will-keep-on-giving.html";s:5:"title";s:33:"The gift that will keep on giving";s:8:"blogname";s:13:"The Epi Times";s:7:"blogurl";s:23:"http://blog.epiren.com/";s:11:"linkcreated";s:26:"2010-10-26 06:36:43.181514";s:7:"excerpt";s:302:"... mine.) WHAT? No, seriously... WHAT?! "New" evidence? Where? She must be referring to Price et al. No? She must be referring to Andy Wakefield and his fall from grace through a series of unethical approaches to his study of MMR vaccines (which never had mercury to begin with). No? What the hell ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:4;a:9:{s:2:"id";s:6:"642878";s:16:"nearestpermalink";s:30:"http://herewegoajen.com/?p=417";s:5:"title";s:12:"Human Shield";s:8:"blogname";s:16:"Here We Go Again";s:7:"blogurl";s:23:"http://herewegoajen.com";s:11:"linkcreated";s:25:"2010-08-18 14:40:01.29007";s:7:"excerpt";s:305:"... he made a mistake or his data was wrong. It was because he deliberately and knowingly published false information. He has lost his license and is no longer able to practice medicine . His original research was paid for by lawyers who were seeking to sue vaccine manufacturers. So, there is no link ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:5;a:9:{s:2:"id";s:6:"607889";s:16:"nearestpermalink";s:83:"http://brucemhood.wordpress.com/2010/07/16/anti-vaccination-beliefs-spark-epidemic/";s:5:"title";s:39:"Anti-Vaccination Beliefs Spark Epidemic";s:8:"blogname";s:13:"Untitled blog";s:7:"blogurl";s:31:"http://brucemhood.wordpress.com";s:11:"linkcreated";s:26:"2010-07-16 12:41:10.028271";s:7:"excerpt";s:301:"... by good epidemiological studies, once the whiff of doubt has been expelled, the smell lingered on. Even though Wakefield has been struck off the medical register for unethical research, people are still frightened of giving their children vaccines even though this puts them at a greater risk. ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:6;a:9:{s:2:"id";s:6:"551388";s:16:"nearestpermalink";s:87:"http://d-squareddigest.blogspot.com/2010/06/naughty-boy-did-it-and-ran-away-and-so.html";s:5:"title";s:8:"Untitled";s:8:"blogname";s:30:"Economics and similar, for ...";s:7:"blogurl";s:36:"http://d-squareddigest.blogspot.com/";s:11:"linkcreated";s:26:"2010-06-05 14:39:53.339572";s:7:"excerpt";s:199:"A naughty boy did it and ran away And so Andrew Wakefield wanders off into the land of infomercials, loopholes in labelling regulation and other places where purveyors of rage-based medicine hang ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:7;a:9:{s:2:"id";s:6:"546443";s:16:"nearestpermalink";s:42:"http://ctib.wordpress.com/2010/06/01/3235/";s:5:"title";s:28:"A vaccination for stupidity?";s:8:"blogname";s:28:"Contemplating the inverse...";s:7:"blogurl";s:25:"http://ctib.wordpress.com";s:11:"linkcreated";s:26:"2010-06-01 15:39:51.590742";s:7:"excerpt";s:195:"That MMR scaremonger Andrew Wakefield was struck-off recently by the GMC was no surprise. Despite his popularity among certain intellectually-challenged celebrities in the US, his actions – ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:8;a:9:{s:2:"id";s:6:"538286";s:16:"nearestpermalink";s:96:"http://timesonline.typepad.com/science/2010/05/spinning-jenner-why-vaccination-needs-a-hero.html";s:5:"title";s:45:"Spinning Jenner: why vaccination needs a hero";s:8:"blogname";s:30:"Times Online - Eureka Zone ...";s:7:"blogurl";s:39:"http://timesonline.typepad.com/science/";s:11:"linkcreated";s:26:"2010-05-27 17:39:01.191458";s:7:"excerpt";s:301:"... today - think of the collapse in confidence in the measles-mumps-rubella (MMR) vaccine (for which Dr Andrew Wakefield, the doctor who instigated an unfounded panic over the triple jab, was struck off this week). So this is a good time to remind ourselves of Jenner's achievement. With smallpox ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:9;a:9:{s:2:"id";s:6:"535559";s:16:"nearestpermalink";s:87:"http://forthesakeofscience.wordpress.com/2010/05/25/anti-vaccine-nut-gets-nuts-chopped/";s:5:"title";s:34:"Anti-vaccine nut gets nuts chopped";s:8:"blogname";s:23:"For the Sake of Science";s:7:"blogurl";s:40:"http://forthesakeofscience.wordpress.com";s:11:"linkcreated";s:26:"2010-05-25 22:38:30.777879";s:7:"excerpt";s:308:"... autism and other diseases to vaccines. Fortunately, unlike Christopher Maloney, Wakefield’s irresponsible message about vaccines can be regulated more efficiently and effectively because he is a real doctor . After nearly three years of formal investigation by the General Medical Council (GMC), Dr ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:10;a:9:{s:2:"id";s:6:"534761";s:16:"nearestpermalink";s:46:"http://www.theness.com/neurologicablog/?p=1976";s:5:"title";s:30:"Vaccines – Too Few, Too Late";s:8:"blogname";s:16:"NeuroLogica Blog";s:7:"blogurl";s:38:"http://www.theness.com/neurologicablog";s:11:"linkcreated";s:26:"2010-05-25 13:38:29.427224";s:7:"excerpt";s:306:"... British doctor, Andrew Wakefield, whose discredited MMR study was largely responsible for spreading fears about vaccines and autism, was recently “struck off” the list of medical doctors in the UK. This essentially means he has lost his license to practice. Although now he is already on to his ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}i:11;a:9:{s:2:"id";s:6:"533406";s:16:"nearestpermalink";s:83:"http://www.stateintervention.com/2010/05/dr-andrew-wakefield-struck-off-as-gmc.html";s:5:"title";s:68:"Dr Andrew Wakefield Struck Off As GMC Attempt To Discredit MMR Fears";s:8:"blogname";s:18:"STATE INTERVENTION";s:7:"blogurl";s:33:"http://www.stateintervention.com/";s:11:"linkcreated";s:26:"2010-05-24 18:39:32.758822";s:7:"excerpt";s:169:"Click HERE for the article from the Times Online Dr Andrew Wakefield has possibly saved hundreds of people from suffering from Autism and Bowel Cancer, thanks to his ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"2429224";}}s:7:"journos";a:1:{i:0;a:2:{s:10:"prettyname";s:11:"Raf Sanchez";s:3:"ref";s:11:"raf-sanchez";}}s:10:"srcorgname";s:9:"The Times";s:8:"sop_name";s:8:"PCC Code";s:7:"sop_url";s:39:"http://www.pcc.org.uk/cop/practice.html";s:10:"srcorg_url";s:28:"http://www.timesonline.co.uk";s:14:"pretty_pubdate";s:15:"Mon 24 May 2010";s:11:"iso_pubdate";s:25:"2010-05-24T10:29:00+00:00";s:4:"buzz";s:13:"12 blog links";s:11:"sim_orderby";s:5:"score";s:11:"sim_showall";s:2:"no";s:8:"sim_arts";a:0:{}s:4:"tags";a:26:{s:6:"austin";i:1;s:7:"british";i:1;s:8:"children";i:1;s:7:"england";i:1;s:23:"general medical council";i:1;s:3:"gmc";i:4;s:9:"hampstead";i:1;s:11:"john walker";i:1;s:6:"lancet";i:1;s:7:"measles";i:1;s:3:"mmr";i:4;s:5:"mumps";i:1;s:5:"murch";i:1;s:8:"new york";i:1;s:12:"north london";i:1;s:19:"royal free hospital";i:1;s:7:"rubella";i:1;s:11:"simon murch";i:1;s:5:"smith";i:2;s:5:"texas";i:1;s:10:"the lancet";i:1;s:23:"thoughtful house centre";i:1;s:10:"tony blair";i:1;s:9:"wakefield";i:7;s:5:"wales";i:1;s:6:"walker";i:1;}s:13:"comment_links";a:0:{}}
EOT;
$art2 = <<<EOT
a:54:{i:0;s:7:"1273261";s:2:"id";s:7:"1273261";i:1;s:37:"Harvard’s masters of the apocalypse";s:5:"title";s:37:"Harvard’s masters of the apocalypse";i:2;s:23:"Philip Delves Broughton";s:6:"byline";s:111:"<span class="author vcard"><a class="url fn" href="/philip-delves-broughton">Philip Delves Broughton</a></span>";i:3;s:176:"If Robespierre were to ascend from hell and seek out today’s guillotine
fodder, he might start with a list of those with three incriminating
initials beside their names: MBA.";s:11:"description";s:176:"If Robespierre were to ascend from hell and seek out today’s guillotine
fodder, he might start with a list of those with three incriminating
initials beside their names: MBA.";i:4;s:19:"2009-03-01 00:00:00";s:7:"pubdate";s:19:"2009-03-01 00:00:00";i:5;s:25:"2009-03-01 00:52:57.63186";s:9:"firstseen";s:25:"2009-03-01 00:52:57.63186";i:6;s:25:"2009-03-01 00:52:57.63186";s:8:"lastseen";s:25:"2009-03-01 00:52:57.63186";i:7;s:65:"http://timesonline.co.uk/tol/news/uk/education/article5821706.ece";s:9:"permalink";s:65:"http://timesonline.co.uk/tol/news/uk/education/article5821706.ece";i:8;s:65:"http://timesonline.co.uk/tol/news/uk/education/article5821706.ece";s:6:"srcurl";s:65:"http://timesonline.co.uk/tol/news/uk/education/article5821706.ece";i:9;s:1:"9";s:6:"srcorg";s:1:"9";i:10;s:24:"times_article5821706.ece";s:5:"srcid";s:24:"times_article5821706.ece";i:11;s:26:"2009-03-01 00:54:34.874894";s:11:"lastscraped";s:26:"2009-03-01 00:54:34.874894";i:12;s:4:"1581";s:9:"wordcount";s:4:"1581";i:13;s:1:"a";s:6:"status";s:1:"a";i:14;s:1:"7";s:15:"total_bloglinks";s:1:"7";i:15;s:2:"15";s:14:"total_comments";s:2:"15";i:16;s:1:"f";s:14:"needs_indexing";s:1:"f";i:17;s:26:"2009-03-06 00:36:47.242303";s:18:"last_comment_check";s:26:"2009-03-06 00:36:47.242303";i:18;s:26:"2009-11-14 22:22:30.808331";s:12:"last_similar";s:26:"2009-11-14 22:22:30.808331";s:10:"article_id";s:7:"1273261";s:4:"id36";s:4:"ragd";s:10:"blog_links";a:7:{i:0;a:9:{s:2:"id";s:6:"586808";s:16:"nearestpermalink";s:76:"http://thinkthink.wordpress.com/2010/07/01/to-speak-english-or-cakap-melayu/";s:5:"title";s:34:"To speak English or cakap Melayu?*";s:8:"blogname";s:19:"A Moderate Estimate";s:7:"blogurl";s:31:"http://thinkthink.wordpress.com";s:11:"linkcreated";s:26:"2010-07-01 06:41:12.025636";s:7:"excerpt";s:312:"... peppered with six-syllable words doesn’t mean he’s “better” or “smarter”. They’ve quickly and quickly forgotten the MBA holders who are responsible for the global finance calamity . Yet I must admit, our education system is one that we can be proud of. A system which, against all odds, has ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}i:1;a:9:{s:2:"id";s:6:"579453";s:16:"nearestpermalink";s:68:"http://schwerpunkter.wordpress.com/2010/06/24/managment-by-accident/";s:5:"title";s:21:"Managment By Accident";s:8:"blogname";s:25:"Schwerpunkt International";s:7:"blogurl";s:34:"http://schwerpunkter.wordpress.com";s:11:"linkcreated";s:26:"2010-06-25 00:41:57.104709";s:7:"excerpt";s:297:"... should be cuming in their paints over since – the market is totally unregulated, prices are set by demand, and profit is tax free? Do our Harvard MBA s keep pushing to deregulate themselves while using our own tax dollars and a different set of regulations to punish independent farmers, ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}i:2;a:9:{s:2:"id";s:6:"474642";s:16:"nearestpermalink";s:44:"http://shumyla28.wordpress.com/2010/04/13/3/";s:5:"title";s:2:"8)";s:8:"blogname";s:7:"MY Blog";s:7:"blogurl";s:30:"http://shumyla28.wordpress.com";s:11:"linkcreated";s:26:"2010-04-13 10:43:06.901578";s:7:"excerpt";s:300:"... been in existence, at least in the web world, less time than I have! Knowing my struggles in this arena, my good friend passed along to me this article . As I scrolled down the list, I noticed numbers: 7. Social Media Strategist 8. User Experience Analyst Seeing both side by side as separate ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}i:3;a:9:{s:2:"id";s:6:"474650";s:16:"nearestpermalink";s:45:"http://shinyhairs.wordpress.com/2010/04/13/3/";s:5:"title";s:2:"8)";s:8:"blogname";s:18:"Shiny hairs's Blog";s:7:"blogurl";s:31:"http://shinyhairs.wordpress.com";s:11:"linkcreated";s:26:"2010-04-13 09:43:06.922449";s:7:"excerpt";s:300:"... been in existence, at least in the web world, less time than I have! Knowing my struggles in this arena, my good friend passed along to me this article . As I scrolled down the list, I noticed numbers: 7. Social Media Strategist 8. User Experience Analyst Seeing both side by side as separate ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}i:4;a:9:{s:2:"id";s:6:"472633";s:16:"nearestpermalink";s:43:"http://marish1.wordpress.com/2010/04/12/57/";s:5:"title";s:7:"marish1";s:8:"blogname";s:14:"Marish1's Blog";s:7:"blogurl";s:28:"http://marish1.wordpress.com";s:11:"linkcreated";s:26:"2010-04-12 09:48:51.675667";s:7:"excerpt";s:292:"... given our current woes and the feeling amongst some segment that MBAs drove these issues? No, I really do not. Of course there are many article s lambasting the ill-formed and greedy actions of those with MBAs. Frankly, some of those stories are appropriate and may have persuaded the ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}i:5;a:9:{s:2:"id";s:6:"439544";s:16:"nearestpermalink";s:136:"http://network.nationalpost.com/NP/blogs/fpposted/archive/2010/03/17/why-a-liberal-arts-education-can-best-prepare-business-leaders.aspx";s:5:"title";s:62:"Why a Liberal Arts education can best prepare business leaders";s:8:"blogname";s:9:"FP Posted";s:7:"blogurl";s:62:"http://network.nationalpost.com/NP/blogs/fpposted/default.aspx";s:11:"linkcreated";s:26:"2010-03-18 13:46:45.795439";s:7:"excerpt";s:304:"... that, taken together, might have helped mitigate the financial crisis, critics say." In an article in the London Times, entitled Harvard's Masters of the Apocalypse, P hilip Broughton, a Harvard Business School graduate and author of What They Teach You At Harvard, says, " If Robespierre were to ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}i:6;a:9:{s:2:"id";s:5:"85042";s:16:"nearestpermalink";s:96:"http://blogs.capella.edu/organizationalperspectives/2009/08/07/educating-leaders-how-dig-deeper/";s:5:"title";s:35:"Educating Leaders? How? Dig Deeper.";s:8:"blogname";s:27:"Organizational Perspectives";s:7:"blogurl";s:51:"http://blogs.capella.edu/organizationalperspectives";s:11:"linkcreated";s:26:"2009-08-07 22:26:55.180332";s:7:"excerpt";s:306:"... the New York Times article. Read or listen to “ Business Schools Mull Over Blame In Financial Crisis” on NPR. Read the article mentioned in the NPR story . A Closer Look at Business Education: Marketing Faculty Reflect on the Economic Crisis http://www.aspencbe.org/documents/MktgEconCrisis.pdf ...";s:6:"source";s:9:"icerocket";s:10:"article_id";s:7:"1273261";}}s:7:"journos";a:1:{i:0;a:2:{s:10:"prettyname";s:23:"Philip Delves Broughton";s:3:"ref";s:23:"philip-delves-broughton";}}s:10:"srcorgname";s:16:"The Sunday Times";s:8:"sop_name";s:8:"PCC Code";s:7:"sop_url";s:39:"http://www.pcc.org.uk/cop/practice.html";s:10:"srcorg_url";s:28:"http://www.timesonline.co.uk";s:14:"pretty_pubdate";s:17:"Sun  1 March 2009";s:11:"iso_pubdate";s:25:"2009-03-01T00:00:00+00:00";s:4:"buzz";s:25:"15 comments, 7 blog links";s:11:"sim_orderby";s:5:"score";s:11:"sim_showall";s:2:"no";s:8:"sim_arts";a:10:{i:0;a:9:{s:2:"id";s:6:"431396";s:5:"title";s:90:"Masters and misgivings: A coveted qualification turns 100 still seeking to prove its worth";s:6:"srcorg";s:2:"18";s:6:"byline";s:17:"By Della Bradshaw";s:9:"permalink";s:65:"http://www.ft.com/cms/s/0fdb78d4-03e5-11dd-b28b-000077b07658.html";s:7:"pubdate";s:19:"2008-04-06 18:20:00";s:14:"pretty_pubdate";s:17:"Sun  6 April 2008";s:11:"iso_pubdate";s:25:"2008-04-06T18:20:00+00:00";s:10:"srcorgname";s:15:"Financial Times";}i:1;a:9:{s:2:"id";s:6:"433753";s:5:"title";s:34:"Harvard makes the case for primacy";s:6:"srcorg";s:2:"18";s:6:"byline";s:17:"By Della Bradshaw";s:9:"permalink";s:65:"http://www.ft.com/cms/s/9fd1277e-048d-11dd-a2f0-000077b07658.html";s:7:"pubdate";s:19:"2008-04-07 11:35:00";s:14:"pretty_pubdate";s:17:"Mon  7 April 2008";s:11:"iso_pubdate";s:25:"2008-04-07T11:35:00+00:00";s:10:"srcorgname";s:15:"Financial Times";}i:2;a:9:{s:2:"id";s:6:"433751";s:5:"title";s:22:"Masters and misgivings";s:6:"srcorg";s:2:"18";s:6:"byline";s:17:"By Della Bradshaw";s:9:"permalink";s:65:"http://www.ft.com/cms/s/93c5a574-0490-11dd-a2f0-000077b07658.html";s:7:"pubdate";s:19:"2008-04-07 11:52:00";s:14:"pretty_pubdate";s:17:"Mon  7 April 2008";s:11:"iso_pubdate";s:25:"2008-04-07T11:52:00+00:00";s:10:"srcorgname";s:15:"Financial Times";}i:3;a:9:{s:2:"id";s:6:"433752";s:5:"title";s:22:"Masters and misgivings";s:6:"srcorg";s:2:"18";s:6:"byline";s:17:"By Della Bradshaw";s:9:"permalink";s:65:"http://www.ft.com/cms/s/76b95b1c-048e-11dd-a2f0-000077b07658.html";s:7:"pubdate";s:19:"2008-04-07 11:38:00";s:14:"pretty_pubdate";s:17:"Mon  7 April 2008";s:11:"iso_pubdate";s:25:"2008-04-07T11:38:00+00:00";s:10:"srcorgname";s:15:"Financial Times";}i:4;a:9:{s:2:"id";s:6:"433756";s:5:"title";s:21:"Moot but advantageous";s:6:"srcorg";s:2:"18";s:6:"byline";s:17:"By Della Bradshaw";s:9:"permalink";s:65:"http://www.ft.com/cms/s/a98bb76a-00c9-11dd-a0c5-000077b07658.html";s:7:"pubdate";s:19:"2008-04-07 11:14:00";s:14:"pretty_pubdate";s:17:"Mon  7 April 2008";s:11:"iso_pubdate";s:25:"2008-04-07T11:14:00+00:00";s:10:"srcorgname";s:15:"Financial Times";}i:5;a:9:{s:2:"id";s:6:"212080";s:5:"title";s:6:"INSEAD";s:6:"srcorg";s:1:"1";s:6:"byline";s:0:"";s:9:"permalink";s:85:"http://student.independent.co.uk/graduate_options/business_schools/article3251305.ece";s:7:"pubdate";s:19:"2007-12-16 00:00:00";s:14:"pretty_pubdate";s:20:"Sun 16 December 2007";s:11:"iso_pubdate";s:25:"2007-12-16T00:00:00+00:00";s:10:"srcorgname";s:15:"The Independent";}i:6;a:9:{s:2:"id";s:6:"212076";s:5:"title";s:26:"IE Business School, Madrid";s:6:"srcorg";s:1:"1";s:6:"byline";s:0:"";s:9:"permalink";s:85:"http://student.independent.co.uk/graduate_options/business_schools/article3251301.ece";s:7:"pubdate";s:19:"2007-12-16 00:00:00";s:14:"pretty_pubdate";s:20:"Sun 16 December 2007";s:11:"iso_pubdate";s:25:"2007-12-16T00:00:00+00:00";s:10:"srcorgname";s:15:"The Independent";}i:7;a:9:{s:2:"id";s:6:"522703";s:5:"title";s:34:"Tradition makes way for innovation";s:6:"srcorg";s:1:"8";s:6:"byline";s:19:"Nunzio Quacquarelli";s:9:"permalink";s:82:"http://timesonline.co.uk/tol/life_and_style/career_and_jobs/mba/article3925055.ece";s:7:"pubdate";s:19:"2008-05-14 00:00:00";s:14:"pretty_pubdate";s:15:"Wed 14 May 2008";s:11:"iso_pubdate";s:25:"2008-05-14T00:00:00+00:00";s:10:"srcorgname";s:9:"The Times";}i:8;a:9:{s:2:"id";s:7:"1058082";s:5:"title";s:26:"Laboratories breed leaders";s:6:"srcorg";s:2:"18";s:6:"byline";s:27:"By Debi Gardiner McCullough";s:9:"permalink";s:105:"http://traxfer.ft.com/cms/s/0/d4107868-c2e3-11dd-a5ae-000077b07658.html?o=%2Frss%2Fbusinesslife%2Fscience";s:7:"pubdate";s:19:"2008-12-07 20:29:00";s:14:"pretty_pubdate";s:20:"Sun  7 December 2008";s:11:"iso_pubdate";s:25:"2008-12-07T20:29:00+00:00";s:10:"srcorgname";s:15:"Financial Times";}i:9;a:9:{s:2:"id";s:7:"1292028";s:5:"title";s:30:"Who taught them greed is good?";s:6:"srcorg";s:2:"11";s:6:"byline";s:12:"Peter Walker";s:9:"permalink";s:65:"http://www.guardian.co.uk/business/2009/mar/08/credit-crunch-mbas";s:7:"pubdate";s:19:"2009-03-08 00:00:00";s:14:"pretty_pubdate";s:17:"Sun  8 March 2009";s:11:"iso_pubdate";s:25:"2009-03-08T00:00:00+00:00";s:10:"srcorgname";s:12:"The Observer";}}s:4:"tags";a:74:{s:7:"america";i:1;s:11:"andy hornby";i:1;s:10:"bill gates";i:1;s:5:"black";i:1;s:6:"boston";i:2;s:8:"brothers";i:1;s:4:"bush";i:1;s:23:"business administration";i:1;s:19:"business apocalypse";i:1;s:15:"business school";i:1;s:15:"christopher cox";i:1;s:16:"delves broughton";i:1;s:8:"disaster";i:1;s:5:"enron";i:4;s:6:"europe";i:1;s:19:"exchange commission";i:1;s:4:"fred";i:1;s:12:"fred goodwin";i:1;s:6:"george";i:1;s:7:"goodwin";i:1;s:6:"google";i:1;s:9:"hank paul";i:1;s:4:"hard";i:1;s:7:"harvard";i:1;s:23:"harvard business school";i:8;s:12:"harvard mbas";i:1;s:4:"hbos";i:2;s:6:"indian";i:1;s:11:"integration";i:1;s:9:"jay light";i:1;s:13:"jeff skilling";i:1;s:12:"joel podolny";i:1;s:10:"john thain";i:1;s:10:"larry page";i:1;s:22:"management by accident";i:1;s:8:"many mba";i:1;s:7:"masters";i:4;s:3:"mba";i:6;s:4:"mbas";i:3;s:16:"me before anyone";i:1;s:21:"mediocre but arrogant";i:1;s:13:"merrill lynch";i:2;s:12:"michael dell";i:1;s:9:"microsoft";i:1;s:19:"mighty big attitude";i:1;s:6:"mittal";i:1;s:7:"natwest";i:1;s:4:"neal";i:1;s:7:"podolny";i:2;s:3:"rbs";i:4;s:15:"richard branson";i:1;s:11:"robespierre";i:1;s:10:"royal bank";i:2;s:6:"russia";i:1;s:8:"scotland";i:3;s:14:"scotland group";i:1;s:3:"sec";i:2;s:10:"securities";i:1;s:11:"sergey brin";i:1;s:5:"shred";i:1;s:5:"snook";i:1;s:4:"stan";i:1;s:26:"the human capital strategy";i:1;s:14:"the royal bank";i:2;s:27:"the sunday times booksfirst";i:1;s:4:"then";i:1;s:13:"united states";i:1;s:11:"us treasury";i:1;s:6:"viking";i:1;s:11:"wall street";i:3;s:10:"washington";i:1;s:19:"what they teach you";i:1;s:5:"world";i:1;s:12:"worst banker";i:1;}s:13:"comment_links";a:4:{i:0;a:8:{s:10:"article_id";s:7:"1273261";s:6:"source";s:4:"digg";s:11:"comment_url";s:68:"http://digg.com/business_finance/Harvard_s_masters_of_the_apocalypse";s:12:"num_comments";s:1:"0";s:5:"score";s:1:"6";s:4:"buzz";s:24:"no comments yet, 6 diggs";s:17:"source_prettyname";s:4:"Digg";s:16:"source_scoreterm";s:5:"diggs";}i:1;a:8:{s:10:"article_id";s:7:"1273261";s:6:"source";s:8:"newsvine";s:11:"comment_url";s:198:"http://JohnRussell.newsvine.com/_news/2009/03/10/2526512-mbas-masters-of-business-apocalypse-have-done-more-than-any-other-group-of-people-to-create-the-economic-misery-we-find-ourselves-in#comments";s:12:"num_comments";s:1:"4";s:5:"score";N;s:4:"buzz";s:10:"4 comments";s:17:"source_prettyname";s:8:"Newsvine";s:16:"source_scoreterm";s:5:"votes";}i:2;a:8:{s:10:"article_id";s:7:"1273261";s:6:"source";s:11:"sundaytimes";s:11:"comment_url";s:79:"http://timesonline.co.uk/tol/news/uk/education/article5821706.ece#comments-form";s:12:"num_comments";s:1:"0";s:5:"score";N;s:4:"buzz";s:15:"no comments yet";s:17:"source_prettyname";s:16:"The Sunday Times";s:16:"source_scoreterm";s:6:"points";}i:3;a:8:{s:10:"article_id";s:7:"1273261";s:6:"source";s:5:"times";s:11:"comment_url";s:79:"http://timesonline.co.uk/tol/news/uk/education/article5821706.ece#comments-form";s:12:"num_comments";s:2:"11";s:5:"score";N;s:4:"buzz";s:11:"11 comments";s:17:"source_prettyname";s:9:"The Times";s:16:"source_scoreterm";s:6:"points";}}}
EOT;
$art3 = <<<EOT
a:54:{i:0;s:8:"10552999";s:2:"id";s:8:"10552999";i:1;s:35:"Rethinking India-Pakistan Relations";s:5:"title";s:35:"Rethinking India-Pakistan Relations";i:2;s:10:"Ram Mashru";s:6:"byline";s:85:"<span class="author vcard"><a class="url fn" href="/ram-mashru">Ram Mashru</a></span>";i:3;s:105:"Together with growing trade ties, incremental advances like the recent talks in New York are significant.";s:11:"description";s:105:"Together with growing trade ties, incremental advances like the recent talks in New York are significant.";i:4;s:19:"2013-10-15 00:00:00";s:7:"pubdate";s:19:"2013-10-15 00:00:00";i:5;s:26:"2013-10-15 14:14:34.822126";s:9:"firstseen";s:26:"2013-10-15 14:14:34.822126";i:6;s:26:"2013-10-15 14:14:34.822126";s:8:"lastseen";s:26:"2013-10-15 14:14:34.822126";i:7;s:71:"http://thediplomat.com/2013/10/15/re-thinking-india-pakistan-relations/";s:9:"permalink";s:71:"http://thediplomat.com/2013/10/15/re-thinking-india-pakistan-relations/";i:8;s:71:"http://thediplomat.com/2013/10/15/re-thinking-india-pakistan-relations/";s:6:"srcurl";s:71:"http://thediplomat.com/2013/10/15/re-thinking-india-pakistan-relations/";i:9;s:5:"19554";s:6:"srcorg";s:5:"19554";i:10;s:71:"http://thediplomat.com/2013/10/15/re-thinking-india-pakistan-relations/";s:5:"srcid";s:71:"http://thediplomat.com/2013/10/15/re-thinking-india-pakistan-relations/";i:11;s:26:"2013-10-15 14:14:35.233186";s:11:"lastscraped";s:26:"2013-10-15 14:14:35.233186";i:12;s:3:"588";s:9:"wordcount";s:3:"588";i:13;s:1:"a";s:6:"status";s:1:"a";i:14;s:1:"0";s:15:"total_bloglinks";s:1:"0";i:15;s:1:"0";s:14:"total_comments";s:1:"0";i:16;s:1:"t";s:14:"needs_indexing";s:1:"t";i:17;s:26:"2013-10-15 14:14:35.233186";s:18:"last_comment_check";s:26:"2013-10-15 14:14:35.233186";i:18;N;s:12:"last_similar";N;s:10:"article_id";s:8:"10552999";s:4:"id36";s:5:"6a6qv";s:10:"blog_links";a:0:{}s:7:"journos";a:1:{i:0;a:2:{s:10:"prettyname";s:10:"Ram Mashru";s:3:"ref";s:10:"ram-mashru";}}s:10:"srcorgname";s:15:"thediplomat.com";s:8:"sop_name";s:0:"";s:7:"sop_url";s:0:"";s:10:"srcorg_url";s:22:"http://thediplomat.com";s:14:"pretty_pubdate";s:18:"Tuesday 15 October";s:11:"iso_pubdate";s:25:"2013-10-15T00:00:00+00:00";s:4:"buzz";s:0:"";s:11:"sim_orderby";s:5:"score";s:11:"sim_showall";s:2:"no";s:8:"sim_arts";a:0:{}s:4:"tags";a:20:{s:7:"belgium";i:1;s:3:"bjp";i:2;s:7:"control";i:1;s:5:"india";i:6;s:6:"indian";i:2;s:4:"indo";i:3;s:7:"kashmir";i:1;s:4:"line";i:1;s:14:"manmohan singh";i:2;s:9:"mukherjee";i:1;s:13:"narendra modi";i:1;s:12:"nawaz sharif";i:2;s:8:"new york";i:2;s:8:"pakistan";i:13;s:9:"pakistani";i:2;s:8:"peshawar";i:1;s:26:"president pranab mukherjee";i:1;s:20:"security complex the";i:1;s:5:"singh";i:1;s:19:"un general assembly";i:1;}s:13:"comment_links";a:0:{}}
EOT;
$dummy_data = array($art1, $art2, $art3);
$n = filter_input(INPUT_GET, 'n');
if ($n === null) {
    $n = array_rand($dummy_data);
}
$data = unserialize($dummy_data[$n]);
emit_page_article($data);