From 9d3c8c0e6e1a7ba43bf3dc19350d1dca68b657a3 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 10 Feb 2019 11:16:07 +0800 Subject: Initial commit. --- libs/pictures/.header.html | 23 +++++++++++++++++ libs/pictures/.htaccess | 4 +++ libs/pictures/pliba.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++ libs/pictures/plibb.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+) create mode 100755 libs/pictures/.header.html create mode 100755 libs/pictures/.htaccess create mode 100755 libs/pictures/pliba.php create mode 100755 libs/pictures/plibb.php (limited to 'libs/pictures') diff --git a/libs/pictures/.header.html b/libs/pictures/.header.html new file mode 100755 index 0000000..5d19c06 --- /dev/null +++ b/libs/pictures/.header.html @@ -0,0 +1,23 @@ + + +Litter Rubbish Garbage Trash + + + + +
Chrisoft::Picture Library
+

All pictures here are fetched from the Internet and most of them are Touhou-related...
+Not all of these pictures are checked for "safety"! Protect your eyes yourself!

+ diff --git a/libs/pictures/.htaccess b/libs/pictures/.htaccess new file mode 100755 index 0000000..410ec07 --- /dev/null +++ b/libs/pictures/.htaccess @@ -0,0 +1,4 @@ +IndexOptions FancyIndexing SuppressHTMLPreamble +HeaderName .header.html +IndexIgnore .. *.php + diff --git a/libs/pictures/pliba.php b/libs/pictures/pliba.php new file mode 100755 index 0000000..a0a4834 --- /dev/null +++ b/libs/pictures/pliba.php @@ -0,0 +1,63 @@ + + + + + + Picture browser + + + + + +
Chrisoft::Picture Library
+
+ + +
%s
+
",$files[$i],$files[$i],$files[$i]); + echo $ret; + } + $totalsp=count($files)/20+(count($files)%20==0?0:1)-1; + $minsp=$startpage-5;if($minsp<0)$minsp=0; + $maxsp=$startpage+6;if($maxsp>$totalsp)$maxsp=$totalsp; + echo "
"; + for($i=$minsp;$i<$maxsp;$i++) + { + if($i===$startpage) + echo $i+1 . ' '; + else + { + $t=sprintf("%d ",$i,$i+1); + echo $t; + } + } + echo "
"; + ?> + + + diff --git a/libs/pictures/plibb.php b/libs/pictures/plibb.php new file mode 100755 index 0000000..351f1ab --- /dev/null +++ b/libs/pictures/plibb.php @@ -0,0 +1,63 @@ + + + + + + Picture browser + + + + + +
Chrisoft::Picture Library
+
+ + +
%s
+
",$files[$i],$files[$i],$files[$i]); + echo $ret; + } + $totalsp=count($files)/20+(count($files)%20==0?0:1)-1; + $minsp=$startpage-5;if($minsp<0)$minsp=0; + $maxsp=$startpage+6;if($maxsp>$totalsp)$maxsp=$totalsp; + echo "
"; + for($i=$minsp;$i<$maxsp;$i++) + { + if($i===$startpage) + echo $i+1 . ' '; + else + { + $t=sprintf("%d ",$i,$i+1); + echo $t; + } + } + echo "
"; + ?> + + + -- cgit v1.2.3