標籤:property pathinfo 杭州 fopen imu exe mini count line
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"><title>我們的服務-軟體下載</title><meta name="keywords" content="銷售電腦,電腦維修服務,智能家居,物聯網方案,智能無線,弱點施工"><meta name="description" content="我們的服提供臨江花園-碧水豪園-西環路-聯莊一區電腦維修,弱點工程施工,智能家居-物聯網方案,"><meta name="author" content="杭州鋼鍋"><meta name="robots" content="index, follow" /><meta name="googlebot" content="index, follow" /><meta property="qc:admins" content="22007606776754676375" /><style>table{ border-collapse:collapse; }table,td{border:2px solid #a8a8de; padding:5px 20px; }img{ width: 20px; height: 20px;}th{ border:2px solid #8282db; font-size:1.1em; text-align:center; padding:5px 20px; background-color:#4C9ED9; color:#ffffff; }a{ text-transform:none; text-decoration:none; margin: 5px; }h2,h5{ display : inline}</style></head><?phpswitch ($_SERVER["HTTP_HOST"]){ case "115.236.183.115:81": header("location:http://down.zhouein.com:81");break; case "218.108.32.234": header("location:http://down2.zhouein.com/");break;case "218.108.32.234:81": header("location:http://down2.zhouein.com:81");break;} $dir = dirname(__FILE__); $open_dir = opendir($dir); echo "<center>"; /* echo basename(dirname(__FILE__)); */ echo "<h2>常用軟體下載</h2><h5>for Windows</h5>\n\r"; echo "<table>\n"; echo "<tr><th>檔案名稱</th><th>大小</th><th>添加日期</th></tr>\n\r"; while ($file = readdir($open_dir)){ if ($file!= "." && $file != ".."){ if (pathinfo($file,PATHINFO_EXTENSION)=="zip"){ echo "<tr>\n <td align=‘left‘>\n <img src=‘/image/winrar.png‘ title=‘WindownsZip壓縮包‘>\n <a href=‘down.php?down_id=" . $file . "‘ target=‘_blank‘ title=‘點擊下載‘>" . $file . "</a>\n </td>\n"; if (filesize($file) < 1024){ echo " <td align=‘right‘>" . round(filesize($file),2) . " Byte</td>\n"; } elseif (filesize($file) < 1024*1024){ echo " <td align=‘right‘>" . round(filesize($file)/1024,2) . " KB</td>\n"; } elseif (filesize($file) < 1024*1024*1024){ echo " <td align=‘right‘>" . round(filesize($file)/(1024*1024),2) . " MB</td>\n"; } echo " <td>" . date(‘Y-m-d H:i:s‘, filemtime($file)) . "</td>\n </tr>\n"; /* echo "<td>" . pathinfo($file,PATHINFO_EXTENSION) . "</td></tr>"; */ } if (pathinfo($file,PATHINFO_EXTENSION)=="iso"){ echo "<tr>\n <td align=‘left‘>\n <img src=‘/image/winrar.png‘ title=‘WindownsZip壓縮包‘>\n <a href=‘down.php?down_id=" . $file . "‘ target=‘_blank‘ title=‘點擊下載‘>" . $file . "</a>\n </td>\n"; if (filesize($file) < 1024){ echo " <td align=‘right‘>" . round(filesize($file),2) . " Byte</td>\n"; } elseif (filesize($file) < 1024*1024){ echo " <td align=‘right‘>" . round(filesize($file)/1024,2) . " KB</td>\n"; } elseif (filesize($file) < 1024*1024*1024){ echo " <td align=‘right‘>" . round(filesize($file)/(1024*1024),2) . " MB</td>\n"; } echo " <td>" . date(‘Y-m-d H:i:s‘, filemtime($file)) . "</td>\n </tr>\n"; /* echo "<td>" . pathinfo($file,PATHINFO_EXTENSION) . "</td></tr>"; */ } if (pathinfo($file,PATHINFO_EXTENSION)=="exe"){ echo "<tr>\n <td align=‘left‘>\n <img src=‘/image/winexe.png‘ title=‘Windows可執行程式‘>\n <a href=‘down.php?down_id=" . $file . "‘ target=‘_blank‘ title=‘點擊下載‘>" . $file . "</a>\n </td>\n"; if (filesize($file) < 1024){ echo " <td align=‘right‘>" . round(filesize($file),2) . " Byte</td>\n"; } elseif (filesize($file) < 1024*1024){ echo " <td align=‘right‘>" . round(filesize($file)/1024,2) . " KB</td>\n"; } elseif (filesize($file) < 1024*1024*1024){ echo " <td align=‘right‘>" . round(filesize($file)/(1024*1024),2) . " MB</td>\n"; } echo " <td>" . date(‘Y-m-d H:i:s‘, filemtime($file)) . "</td>\n </tr>\n"; /* echo "<td>" . pathinfo($file,PATHINFO_EXTENSION) . "</td></tr>"; */ } } } echo "</table>\n";$countfile = "tongji.txt"; if(($fp=fopen("tongji.txt","r+"))==false) { echo "開啟檔案失敗!"; } else { $counter = fgets($fp,1024); if(empty($_SESSION[‘temp‘])) { $counter++; if(($fp=fopen("tongji.txt","w"))==false) echo "開啟檔案失敗!"; else fputs($fp,$counter); $_SESSION[‘temp‘]=1; } fclose($fp); } ?><p><a href="">友情連結:</a><a href="http://www.wmdfw.com/">鋼鍋</a><a href="http://www.wmdfw.com/baidu.php">BaiDu.Com</a><a href="http://down.zhouein.com:81">電信線路</a> <a href="http://down2.zhouein.com/">華數線路</a></p><p>Copyright ?2001-<?php echo date("Y") ?> 鋼鍋 All Rights Reserved.訪問量:<b style = ‘color:green;‘><?php echo $counter?></b>次</p></html>
php 瀏覽目錄