[其他] JP C3 Analyzer 掛了

看板HOT_Game作者 (albb)時間16年前 (2007/10/29 15:58), 編輯推噓4(403)
留言7則, 5人參與, 最新討論串1/1
剛剛想說來Po 日本報 結果他掛了 程式直接明碼跑出來 希望他快點好 ˊˋ ================================紀念?===================================== <?php include_once 'message.php'; if(isSet($_GET['id'])) { $id = $_GET['id']; $html = PRODUCT_DIR; switch($id) { case 'ranking_jpn': case 'ranking_hun': case 'ranking_eng': case 'chart1_jpn': case 'chart1_hun': case 'chart1_eng': case 'chart2_jpn': case 'chart2_hun': case 'chart2_eng': case 'parts_jpn': case 'parts_hun': case 'parts_eng': case 'logs': $html .= "$id.html"; if(is_readable($html)) { $id = preg_replace('/_[a-z]+$/', '', $id); print "<div id=\"$id\">"; readfile($html); print '</div>'; } break; case 'getparts': $html .= 'parts_'.$_GET['lng'].'.part'; if(is_readable($html)) { ob_end_clean(); mb_http_output($_GET['cod']); ob_start("mb_output_handler"); $reqid = $_GET['C3A_JSONRequestID']; header('Content-Type: application/x-javascript'); print "C3A_JSONRequest.func_dones[$reqid]($reqid,\n'"; readfile($html); print "');\n"; } break; case 'parts_tsv': $id = 'parts_jpn_tsv'; case 'parts_jpn_tsv': case 'parts_hun_tsv': case 'parts_eng_tsv': readfile($html.str_replace('_tsv','',$id).'.tsv'); break; case 'fvticker_xml': _createMessage4FVTicker($html.'parts_jpn.tsv'); } exit; } function _createMessage4FVTicker($path) { $subject = ''; $country = null; $vel = null; $fp = fopen($path, 'r'); while(!feof($fp)) { $buf = split("\t", fgets($fp)); if(empty($buf)) continue; if($country===null) { switch($buf[0]) { case 'game': $game = $buf[1]; break; case 'time': $buf[1] = split(' ', $buf[1]); $subject = "C3Analyzer Report at ".$buf[1][1]; break; case '####': $country=array(); $vel = array($buf[2], $buf[3]); break; } } else { $country[] = array('country'=>$buf[0], 'click'=>$buf[1], 'vel1'=>$buf[2], 'vel2'=>$buf[3]); } } fclose($fp); $t = time(); $mes_guid = sprintf("{5c7fe132-%04x-4f58-%04x-%012x}", mt_rand(0,0xffff), mt_rand (0,0xffff), $t); $datestr = date("D, d M Y H:i:s", $t-32400)." GMT"; $expired = date("D, d M Y H:i:s", $t-32100)." GMT"; $contents = "★クリック数({$vel[1]}分速)★ "; for($i=0; $i<3; $i++) $contents .= '【'.($i+1).'位】'.$country[$i]['country']." ".$country[$i] ['click']." (".$country[$i]['vel1']." click/min) "; print <<<__XML__ <FV:MESSAGE> <FV:DISPATCH:GUID>{5c7fe132-1e51-4f58-ae74-0ab1f20b4660}</FV:DISPATCH:GUID> <FV:GUID>$mes_guid</FV:GUID> <FV:DATE>$datestr</FV:DATE> <FV:EXPIRED>$expired</FV:EXPIRED> <FV:CATEGORY>C3A</FV:CATEGORY> <FV:SUBJECT>$subject</FV:SUBJECT> <FV:CONTENT>$contents</FV:CONTENT> <FV:CONTENTTYPE>text/plain</FV:CONTENTTYPE> </FV:MESSAGE> __XML__; } $lang = (array_search($_GET['lng'], array('jpn','hun','eng'))===FALSE ? 'jpn' : $_GET['lng']); $default_item = "chart1_$lang"; $topmenu_items = getTopMenuItems($lang); $info = getLangInfos($lang); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "" rel="nofollow">http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <TITLE>C3 Analyzer</TITLE> <LINK rel="shortcut icon" href="favicon.ico" /> <LINK rel="stylesheet" type="text/css" href="style.css" /> <script type="text/javascript" src="prototype.js"></script> <script><!-- function getHTML(id) { new Ajax.Updater('content', 'index.php?id='+id, { method: 'get' }); } --></script> </HEAD> <BODY onload="getHTML('<?php echo $default_item;?>');"> <h1>C3 Analyzer</h1> <div id="top"> <div id="lang"> <?php foreach($topmenu_items['langs'] as $item) { printf(" <a href=\"index.php?lng={$item[0]}\">{$item[1]}</a>"); } ?> </div> <h3>Sorry - this site is temporarily closed. (in DB maintenance)</h3> <hr> <table> <?php foreach($topmenu_items['links'] as $item) { printf("<tr><td>{$item[0]}</td><td>{$item[1]}</td></tr>\n"); } ?> </table> </div> <div id="content"></div> <div id="footer"> <hr> last updated at 2007/10/28<br> copyright &copy; 2007 <a href="mailto:litt2007jp@gmail.com">litt◆ l1EP/n28O.</a> </div> </BODY> </HTML> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.64.26.30

10/29 16:01, , 1F
其實好像是伺服器掛了....科科
10/29 16:01, 1F

10/29 20:14, , 2F
被看光光了~(羞
10/29 20:14, 2F

10/29 21:01, , 3F
XDDDD 天大的錯誤
10/29 21:01, 3F

10/29 21:02, , 4F
變成GPL了(誤)
10/29 21:02, 4F

10/29 21:18, , 5F
這才叫內褲看光光吧XDD 直接掀自己兵器的底XD
10/29 21:18, 5F

10/29 21:19, , 6F
戰報機的程式應該不算機密吧 XD ︿( ̄︶ ̄)︿
10/29 21:19, 6F

10/29 23:25, , 7F
好像兩天前就掛了~~
10/29 23:25, 7F
文章代碼(AID): #179PAWtt (HOT_Game)