"; $date .= $this->DeleteEsc($line[1]); $URL = $line[2]; $comment = "
"; $commentstr = $line[3]; $commentstr = mb_convert_encoding($commentstr, "UTF-8", "SJIS"); $commentstr = $this->DeleteEsc($commentstr); $commentUNLink = "".$comment."".$commentstr."

"; $commentLink = "".$comment."".$commentstr."
"; echo $date; if(strlen($URL) <= 0){ echo $commentUNLink; }else{ echo $commentLink; } }else if($bit == 'ALL'){ $date = "
"; $date .= $this->DeleteEsc($line[1]); $URL = $line[2]; $comment = "
"; $commentstr = $line[3]; $commentstr = mb_convert_encoding($commentstr, "UTF-8", "SJIS"); $commentstr = $this->DeleteEsc($commentstr); $commentUNLink = "".$comment."".$commentstr."

"; $commentLink = "".$comment."".$commentstr."
"; $commentLink_https = "".$comment."".$commentstr."
"; echo $date; if(strlen($URL) <= 0){ echo $commentUNLink; }else{ if(preg_match('/https/', $URL)){ echo $commentLink_https; }else{ echo $commentLink; } } } } } function DeleteEsc($Ad){ $Ad = str_replace("\\","",$Ad); $Ad = stripslashes($Ad); return $Ad; } } $obj = new makeNews; $obj->makeIndexHTML(); ?>