<?php echo "<html>"; echo "<head>"; ?> <!-- import library css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- import library css --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <!-- import library jquery --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <!-- import library boostrap --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <?php echo "</head>"; // filename or path $filename = 'finalfile.txt'; // include file from filename variable $my_string = file($filename); ?> <!-- html tag style background color : grey section --> <body style="background:#f8f8f8"> <!-- html tag style background color : white section --> <div class="container" style="background: white"> <!-- html tag div--> <div class="col-md-12"> <!-- html tag big word --> <h1 class="text-center"> ICE.</h1> <!-- html tag underline --> <hr/> </div> <!-- html tag table with style --> <table class="table table-bordered"> <!-- html thead tag--> <thead> <!-- html tag head colum --> <th><center> No. </center></th> <th><center> IP </center></th> <th><center> Name</center></th> <th><center> URL</center></th> </thead> <tbody> <?php $number = sizeof($my_string); $number = $number -1; $i=0; foreach ($my_string as $key => $value) { //if ($i < $number) { $no = $i +1; $value = trim($value); $text = trim(substr_replace($value, "", -1)); $array = explode('www', $text); $array1 = explode('.',trim($array[0])); //var_dump($array1); $int = filter_var($array1[3], FILTER_SANITIZE_NUMBER_INT); $ip = $array1[0].".".$array1[1].".".$array1[2].".".$int; $name = preg_replace('/[0-9]+/', '', $array1[3]); $web = "www".$array[1]; ?> <!-- html tag row --> <tr> <td><center> <? echo $no; ?></center></td> <td><center> <? echo $ip; ?> </center></td> <td><center> <? echo $name; ?> </center></td> <td><center> <? echo $web; ?> </center></td> </tr> <?php //} // $i บวกเพิ่มอีก 1 $i++; } ?> <!-- Close tag --> </tbody> </table> </div> </body> <?php echo "</html>"; ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง