HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux host 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: w230 (1248)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/mdh/html/ssl.php
<?php
$dir = "/etc/apache2/sites-available/";
$files = scandir($dir);
$cf1='';
echo <<<TH
	<a href="https://www.sisaketedu1.go.th/ssl/index.php"><b>Whost-224</b></a> | 
	<a href="http://net.ssk.in.th/index.php"><b>Net-225</b></a> | 
	<a href="http://anb.ssk.in.th/index.php"><b>Web-226</b></a> | 
	<a href="http://gww.ssk.in.th/index.php"><b>Gw-227</b></a> | 
	<a href="http://mdh.ssk.in.th/ssl.php"><b>Host-229</b></a><br>
TH;
$rw=1;
foreach ($files as $file) {
    // กรองเอาเฉพาะไฟล์จริง ไม่เอาเครื่องหมาย "." (ปัจจุบัน) และ ".." (ย้อนกลับ)
    if ($file !== "." && $file !== ".." && $file !== '000-default.conf' && $file !== 'default-ssl.conf') {

		$cf2=substr($file,0,-5);
		if (substr($cf2,-7)=='-le-ssl') {
			$cf1=substr($cf2,0,-7);
			echo "$rw. $cf1 <font color='red'>ssl</font><br>";
			$rw++;
		} else {
//			echo "*** 1) $cfile1  2) $cfile2 ***  ";
			if ($cf1 == $cf2)  {
				echo '';
			} else {
				echo "$rw. $cf2 <br>";
				$rw++;
			}
			$cf1=$cf2;
		}
	}
}
?>