※ このメールはimodeメールの転送です ※
      https://imode.net/cmn/m/
========================
"; /* コマンド:特に変更する必要は無いです */ $cmdEmoji = "wget --load-cookies=".$outCookie." "; $cmdListWithLogin = "wget --quiet --save-cookies ".$outCookie." --keep-session-cookies -O ".$outHtml." --post-data 'HIDEURL=%3FWM_AK%3Dhttps%253a%252f%252fimode.net%252fsmfag%26path%3D%252fimail%252fm%252fsmarttop%26query%3D&LOGIN=WM_LOGIN&WM_KEY=0&MDCM_UID=".$UID."&MDCM_PWD=".$PWD."' https://imode.net/smf/dfw"; $cmdListWithoutLogin = "wget --quiet --load-cookies ".$outCookie." -O ".$outHtml." --post-data 'func_id_PWS301_F04=%e6%9c%80%e6%96%b0%e6%83%85%e5%a0%b1%e3%81%b8%e6%9b%b4%e6%96%b0&fid=0&pno=1&startdate=".date("YmdHis")."&chkdate=".date("YmdHis")."&bdid=0' https://imode.net/imail/m/e6uao/acgi/smart"; function getNewMail(){ global $outHtml,$cmdListWithLogin,$cmdListWithoutLogin; exec($cmdListWithLogin); if(strpos(file_get_contents($outHtml),'input name="MDCM_UID"')!==FALSE){ exec($cmdListWithLogin); } } $cmdMail = "wget --quiet -O imode.html --load-cookies ".$outCookie." "; $cmdMailUrl = "https://imode.net/imail/m/e6uao/acgi/"; getNewMail(); $list = file($outHtml); $c = 0; foreach($list as $line){ if(strpos($line,'')!==FALSE){ if($c++ % 3 == 2){ $a = strpos($line,'= 3){ if(strpos($row,'')!==FALSE){ if($cc == 5){ $text = html_entity_decode(substr($row,16,strlen($row)-23)); $text = "".$text.""; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";; $headers .= 'From: '.$from."\r\n"; //echo "==========-\n"; //echo $date."\n"; //echo $from."\n"; //echo $subject."\n"; //echo "-----------\n".html_entity_decode($text)."\n-------------\n"; //--emoji preg_match_all( '|')!==FALSE){ $hit = true; $cc++; } } } } } ?>