Digg's PHP code

Posts 16 of 6 · Page 1 of 1
Digg's PHP code
[PHP]
<?php
require_once 'config.php';
require_once 'Ads.php';
header("HTTP/1.0 404 Not Found");
$bodyid = '';
$title = D::$siteName . " / Page Not Found";

// Before generate page elements, we need to put all the local variables into a passable array
$pageParams = array(
'title' => $title
);

require_once 'top.php';

// Track Basic Analytics for this page:
$analytics = Analytics::singleton();
$analytics->pageName = 'error'; // Page Name (generic)
$analytics->prop29 = ''; // Media Type
$analytics->prop9 = 'error'; // Page Template
$analytics->prop24 = 'error'; // Section:Sub:Sub:Sub

$context = Context::createSimpleContext();
Header::display($context);
Ads::display(Ads::GENERICBANNER);
require_once 'contentheader.php';
?>
<div class="not-found">
<h2>Oops, what you're looking for isn't here!</h2>
The page you requested is not here but there are a few things you can try:
<ul>
<li>Try searching for the story you're looking for using the form above.</li>
<li>Go to the <a href="/">homepage</a> to see the most recent stories.</li>
</ul>
<p>Pretty sure it's a website bug? Please
<a href="/bugreport">let us know</a> and we'll try to get it fixed.</p>
</div>
</div>
<?php
require_once 'footer.php';
?>
[/PHP]

There you go folks, that's how digg works.
lol, poor digg code gets leaked

blame faulty http servers

ALSO, PLS NO DMCAs
What is a Digg? Damn I gotta go?
and gosh if only i was smarter i could go Cyborg Hacka on this code >.<
Digg lets u share stuff from anywhere on da web
Is stealing this hard?
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?