php 瀏覽目錄

來源:互聯網
上載者:User

標籤: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 瀏覽目錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.