removes re-defining noise #73
tinyboard_noise
into config
@ -1,3 +1,9 @@ |
|||||
[submodule "js/wPaint"] |
[submodule "js/wPaint"] |
||||
path = js/wPaint |
path = js/wPaint |
||||
url = https://github.com/vichan-devel/wPaint.git |
url = https://github.com/vichan-devel/wPaint.git |
||||
|
branch = master |
||||
|
|
||||
|
[submodule "inc/lib/parsedown"] |
||||
|
path = inc/lib/parsedown |
||||
|
url = https://github.com/vichan-devel/parsedown |
||||
|
branch = master |
||||
|
@ -0,0 +1,21 @@ |
|||||
|
<html> |
||||
|
<head> |
||||
|
<title>404 - Page Not Found</title> |
||||
|
<style type="text/css"> |
||||
|
body { |
||||
|
background: #1E1E1E; |
||||
|
color: #999999; |
||||
|
} |
||||
|
</style> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<center> |
||||
|
<h1>Page not found</h1> |
||||
|
<img style="width:750px;height:420px" src="/static/404.webp"/> |
||||
|
<br/> |
||||
|
<p>It may have been pruned, moved, merged, removed, or never existed.</p> |
||||
|
</center> |
||||
|
</body> |
||||
|
</html> |
||||
|
|
@ -1,32 +0,0 @@ |
|||||
<title>404</title> |
|
||||
<style type="text/css"> |
|
||||
body { |
|
||||
margin: 0 !important; |
|
||||
padding: 0px !important; |
|
||||
overflow-x:hidden!important; |
|
||||
background-size: cover !important; |
|
||||
background-color: #222 !important; |
|
||||
background-image: |
|
||||
url(https://gs1.wac.edgecastcdn.net/8019B6/data.tumblr.com/tumblr_mc0xu6C22f1qbj9bko1_500.gif); |
|
||||
background-repeat: no-repeat !important; |
|
||||
background-position: 0!important; |
|
||||
background-attachment: fixed !important; |
|
||||
background-size: cover !important; |
|
||||
} |
|
||||
</style> |
|
||||
</head> |
|
||||
|
|
||||
<body> |
|
||||
<center><!--<img src="/static/lain_2_090.jpg"/>--> |
|
||||
<marquee scrollamount="40"><h1><p style="font-family: sans-serif; font-size:30px; color: white;">WHOOPS</p></h1></marquee> |
|
||||
<p style="color: blue;background:black">There's nothing here</p> |
|
||||
<p style="color: red;background:black">it's a 404</p> |
|
||||
<br /> <br /> |
|
||||
<audio autoplay loop> |
|
||||
<source src="/static/duvet.ogg" type="audio/ogg" /> |
|
||||
<source src="/static/duvet.mp3" type="audio/mpeg" /> |
|
||||
</audio> |
|
||||
</center> |
|
||||
</body> |
|
||||
</html> |
|
||||
|
|
@ -0,0 +1,22 @@ |
|||||
|
FROM php:5.6-fpm |
||||
|
RUN docker-php-ext-install pdo pdo_mysql |
||||
|
RUN apt-get update -y && apt-get install -y libpng-dev libjpeg-dev |
||||
|
RUN docker-php-ext-install mbstring |
||||
|
RUN apt-get update -y && apt-get install -y libmcrypt-dev |
||||
|
RUN docker-php-ext-install -j$(nproc) mcrypt |
||||
|
RUN docker-php-ext-install iconv |
||||
|
RUN apt-get update -y && apt-get install -y imagemagick |
||||
|
RUN apt-get update -y && apt-get install -y graphicsmagick |
||||
|
RUN apt-get update -y && apt-get install -y gifsicle |
||||
|
RUN docker-php-ext-configure gd \ |
||||
|
--with-png-dir=/usr \ |
||||
|
--with-jpeg-dir=/usr |
||||
|
RUN docker-php-ext-install gd |
||||
|
RUN apt-get update -y \ |
||||
|
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ |
||||
|
&& pecl install memcached-2.2.0 \ |
||||
|
&& echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini \ |
||||
|
&& apt-get remove -y build-essential libmemcached-dev libz-dev \ |
||||
|
&& apt-get autoremove -y \ |
||||
|
&& apt-get clean \ |
||||
|
&& rm -rf /tmp/pear |
@ -1,47 +0,0 @@ |
|||||
<?php |
|
||||
// This script assumes there is at least one normal (non-priority) |
|
||||
// banner! |
|
||||
|
|
||||
// Get the files in a directory, returns null if the directory does |
|
||||
// not exist. |
|
||||
function getFilesInDirectory($dir) { |
|
||||
if (! is_dir($dir)) { |
|
||||
return null; |
|
||||
} |
|
||||
|
|
||||
return array_diff(scandir($dir), array('.', '..')); |
|
||||
} |
|
||||
|
|
||||
// Serve a random banner and exit. |
|
||||
function serveRandomBanner($dir, $files) { |
|
||||
$name = $files[array_rand($files)]; |
|
||||
|
|
||||
// snags the extension |
|
||||
$ext = pathinfo($name, PATHINFO_EXTENSION); |
|
||||
|
|
||||
// send the right headers |
|
||||
header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1 |
|
||||
header('Pragma: no-cache'); // HTTP 1.0 |
|
||||
header('Expires: 0'); // Proxies |
|
||||
header("Content-type: image/" . $ext); |
|
||||
header("Content-Disposition: inline; filename=" . $name); |
|
||||
|
|
||||
// readfile displays the image, passthru seems to spits stream. |
|
||||
readfile($dir.$name); |
|
||||
exit; |
|
||||
} |
|
||||
|
|
||||
// Get all the banners |
|
||||
$bannerDir = "banners/"; |
|
||||
$priorityDir = "banners_priority/"; |
|
||||
|
|
||||
$banners = getFilesInDirectory($bannerDir); |
|
||||
$priority = getFilesInDirectory($priorityDir); |
|
||||
|
|
||||
// If there are priority banners, serve 1/3rd of the time. |
|
||||
if($priority !== null && count($priority) !== 0 && rand(0,2) === 0) { |
|
||||
serveRandomBanner($priorityDir, $priority); |
|
||||
} |
|
||||
|
|
||||
serveRandomBanner($bannerDir, $banners); |
|
||||
?> |
|
@ -1,22 +1,16 @@ |
|||||
<html> |
|
||||
<head> |
|
||||
<title>Lainchan Banners</title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<?php |
<?php |
||||
function listBannersInDir($dir) { |
function getBannerSrc(){ |
||||
if ($handle = opendir($dir)) { |
$files = scandir(__dir__.'/banners/'); |
||||
while (false !== ($entry = readdir($handle))) { |
$files = array_diff($files, array('.', '..')); |
||||
if ($entry != "." && $entry != "..") { |
return $files[array_rand($files)]; |
||||
echo "<a href=\"$dir/$entry\"><img src=\"$dir/$entry\" alt=\"$entry\" style=\"width:348px;height:128px\"></a> "; |
|
||||
} |
|
||||
} |
|
||||
closedir($handle); |
|
||||
} |
|
||||
} |
} |
||||
|
|
||||
listBannersInDir("banners_priority"); |
$filename = getBannerSrc(); |
||||
listBannersInDir("banners"); |
$filename = "banners/" . $filename; |
||||
?> |
$fp = fopen($filename, 'rb'); |
||||
</body> |
|
||||
</html> |
header("Content-Type: image/png"); |
||||
|
header("Content-Length: " . filesize($filename)); |
||||
|
|
||||
|
fpassthru($fp); |
||||
|
?> |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 184 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 380 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 9.7 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 130 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 125 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 2.1 MiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |