function cacheRanklist() { $result = libHTTP::POST("caesum.com", "/game/stats.php?action=rollyourown", "maxusers=0&ind=on&action=showcustomhof&blah=Show+HOF", "key=M0qUaqlkmfMoLq0Jdlb2aQ4F8032"); $tmp = $result['content']; $fp = fopen("plugins/Electrica/cache", "w"); foreach ($tmp as $line) { fputs($fp, $line . "\n"); } fclose($fp); }
private function checkMD5OnlineOrg($hash) { $html = libHTTP::POST('http://md5online.org/', array('md5' => $hash, 'action' => 'decrypt', 'a' => '123456')); // csrf token is not validated if ($html === false) { return false; } if (preg_match('#Found : <b>(.+?)</b>#', $html, $arr)) { return $arr[1]; } else { return false; } }