Skip to content

Instantly share code, notes, and snippets.

@winny-
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winny-/11143898 to your computer and use it in GitHub Desktop.
Save winny-/11143898 to your computer and use it in GitHub Desktop.
rms.sexy/index.php license: https://rms.sexy/license.txt
<?php
function getDirectoryList ($directory) {
$results = array();
$handler = opendir($directory);
while ($file = readdir($handler)) {
if ($file != "." && $file != "..") {
$results[] = $file;
}
}
closedir($handler);
return $results;
}
$d = getDirectoryList('img/');
?><html>
<head>
<title>Our GNU/Lord and GNU/Savior is 100% sexy!</title>
<meta http-equiv="refresh" content="3;https://rms.sexy/">
<!--
I'm too lazy to make the html pretty for now... Maybe when I've drank
enough booze and I have nothing to do... Or if people start nagging
about it.
-->
<style>
body {
margin: 0;
background-image: url("/noise.png");
}
img {
text-align: center;
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
image-orientation: from-image;
}
</style>
</head>
<body>
<a href="/"><img class="stallman" src="/img/<?=$d[array_rand($d)];?>" height="100%"></a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment