瀏覽代碼

Remove everything from banners/ except images

pull/35/head
Michael Walker www-data 8 年之前
父節點
當前提交
6d20e7bfb2
共有 3 個檔案被更改,包括 21 行新增3 行删除
  1. +4
    -0
      .gitignore
  2. +17
    -0
      banners.php
  3. +0
    -3
      banners/.gitignore

+ 4
- 0
.gitignore 查看文件

@@ -62,3 +62,7 @@ tf/
all/
mod/
random/

# Banners
banners/*
!banners/lain-bottom.png

+ 17
- 0
banners.php 查看文件

@@ -0,0 +1,17 @@
<html>
<head>
<title>Lainchan Banners</title>
</head>
<body>
<?php
if ($handle = opendir('banners')) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != "..") {
echo "<a href=\"banners/$entry\"><img src=\"banners/$entry\" alt=\"$entry\" style=\"width:348px;height:128px\"></a> ";
}
}
closedir($handle);
}
?>
</body>
</html>

+ 0
- 3
banners/.gitignore 查看文件

@@ -1,3 +0,0 @@
*
!lain-bottom.png
!.gitignore

Loading…
取消
儲存