Initial commit
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.db
|
BIN
images/0caa24d8659e6effa5d6550d2b95bc66-d5me4l7.png
Normal file
After Width: | Height: | Size: 4.7 MiB |
BIN
images/153077.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
images/1838486-senran_kagura_yagyu.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
images/1841028-a5dbed63e119fe8d257ddfc1bb9d5fd1.jpg
Normal file
After Width: | Height: | Size: 906 KiB |
BIN
images/1841029-d5ec77975b6c5894dd40c0b2b445bc5c.jpg
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
images/192957.jpg
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
images/1f6d73b8fccd71990fe56d91ac658ea0-d69edp1.jpg
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1063534.jpg
Normal file
After Width: | Height: | Size: 304 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1150045.jpg
Normal file
After Width: | Height: | Size: 211 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1262101.jpg
Normal file
After Width: | Height: | Size: 707 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1305714.jpg
Normal file
After Width: | Height: | Size: 381 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1414180.jpg
Normal file
After Width: | Height: | Size: 410 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1418521.jpg
Normal file
After Width: | Height: | Size: 223 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1539208.jpg
Normal file
After Width: | Height: | Size: 624 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1563695.jpg
Normal file
After Width: | Height: | Size: 818 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1573814.jpg
Normal file
After Width: | Height: | Size: 526 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.1605325.jpg
Normal file
After Width: | Height: | Size: 5.9 MiB |
BIN
images/Yagyuu.(Senran.Kagura).full.654612.jpg
Normal file
After Width: | Height: | Size: 906 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.790920.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
images/Yagyuu.(Senran.Kagura).full.806449.jpg
Normal file
After Width: | Height: | Size: 416 KiB |
BIN
images/big_yagyuu_in_the_city_by_hank88-d873v01.jpg
Normal file
After Width: | Height: | Size: 2.8 MiB |
BIN
images/calling_yagyuu_s_attention_by_hank88-d7k8man.jpg
Normal file
After Width: | Height: | Size: 571 KiB |
BIN
images/fcc64a0658894908495dbe91c5725018-d69edp2.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
images/mmd___yagyuu_from_senran_kagura_by_kittyskie-d4nwofq.jpg
Normal file
After Width: | Height: | Size: 306 KiB |
After Width: | Height: | Size: 105 KiB |
BIN
images/senran_kagura___yagyuu_by_darth7-d83bo2t.png
Normal file
After Width: | Height: | Size: 602 KiB |
BIN
images/senran_kagura_yagyuu_by_tiramisutwo-d4f2hh3.png
Normal file
After Width: | Height: | Size: 892 KiB |
After Width: | Height: | Size: 304 KiB |
BIN
images/yagyuu_by_0cookie0-d6hlqog.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
images/yagyuu_by_0cookie0-d76i3pc.png
Normal file
After Width: | Height: | Size: 706 KiB |
BIN
images/yagyuu_by_keiichim-d5w851u.png
Normal file
After Width: | Height: | Size: 715 KiB |
BIN
images/yagyuu_by_selgadis-d3iv8r1.jpg
Normal file
After Width: | Height: | Size: 162 KiB |
BIN
images/yagyuu_by_utsuhofanboy24000-d79bz8b.jpg
Normal file
After Width: | Height: | Size: 93 KiB |
BIN
images/yagyuu_by_vocaloidfan113-d4z9o3h.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
images/yagyuu_morphed_by_raidramon0-d7s8vuj.jpg
Normal file
After Width: | Height: | Size: 185 KiB |
BIN
images/yagyuu_yagyu__by_axelcre-d7awkjg.png
Normal file
After Width: | Height: | Size: 792 KiB |
60
index.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
// Indicate the location of your images
|
||||
$root = '';
|
||||
// use if specifying path from root
|
||||
//$root = $_SERVER['DOCUMENT_ROOT'];
|
||||
|
||||
$path = 'images/';
|
||||
|
||||
function getImagesFromDir($path) {
|
||||
$images = array();
|
||||
if ( $img_dir = @opendir($path) ) {
|
||||
while ( false !== ($img_file = readdir($img_dir)) ) {
|
||||
// checks for gif, jpg, png and jpeg
|
||||
if ( preg_match("/(\.gif|\.jpg|\.png\.jpeg)$/", $img_file) ) {
|
||||
$images[] = $img_file;
|
||||
}
|
||||
}
|
||||
closedir($img_dir);
|
||||
}
|
||||
return $images;
|
||||
}
|
||||
|
||||
function getRandomFromArray($ar) {
|
||||
mt_srand( (double)microtime() * 1000000 ); // php 4.2+ not needed
|
||||
$num = array_rand($ar);
|
||||
return $ar[$num];
|
||||
}
|
||||
|
||||
|
||||
// Obtain list of images from directory
|
||||
$imgList = getImagesFromDir($root . $path);
|
||||
|
||||
$img = getRandomFromArray($imgList);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Yagyuu</title>
|
||||
<style type="text/css">
|
||||
body { font: 14px/1.3 verdana, arial, helvetica, sans-serif; }
|
||||
h1 { font-size:1.3em; }
|
||||
h2 { font-size:1.2em; }
|
||||
a:link { color:#33c; }
|
||||
a:visited { color:#339; }
|
||||
p { max-width: 60em; }
|
||||
|
||||
/* so linked image won't have border */
|
||||
a img { border:none; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<center>
|
||||
<!-- image displays here -->
|
||||
<div><img src="<?php echo $path . $img ?>" alt="" /></div>
|
||||
</center>
|
||||
|
||||
</body>
|
||||
</html>
|