Created
April 6, 2014 06:57
-
-
Save GiovanniK/10002378 to your computer and use it in GitHub Desktop.
Make Apache work the CPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// make sure the trackback ping's URL links back to us | |
$handle = fopen($url, "r"); | |
$tb_page = ''; | |
while (!feof($handle)) { | |
$tb_page .= fread($handle, 8192); | |
} | |
fclose($handle); | |
$pos = strpos($tb_page, "http://imgur.com"); | |
if ($pos === false) { | |
$error_code = 1; | |
send_response(1, "No link found to this site."); | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment