| Server IP : 157.230.181.24 / Your IP : 216.73.217.11 Web Server : Apache/2.4.58 (Ubuntu) System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/vhosts/ceagon/public/ |
Upload File : |
<?
$gif = NULL;
$gif = preg_replace('/\/g\//', '', $_SERVER['REQUEST_URI']);
function site_url($url = '') {
return "http://{$_SERVER['HTTP_HOST']}/$url";
}
function random_gif() {
$files = glob('gif/*.gif');
$file = array_rand($files);
return $files[$file];
}
// If no gif specified, redirect
if(!$gif) {
die(header('Location: ' . site_url('gif')));
}
$gif_exists = file_exists("gif/$gif.gif");
$gif_url = site_url("gif/$gif.gif");
if(!$gif_exists) {
$gif_url = site_url(random_gif());
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:url" content="<?= site_url("g/$gif") ?>" />
<meta property="og:title" content="<?= $gif ?>" />
<meta property="og:image" content="<?= $gif_url ?>" />
<link rel="image_src" href="<?= $gif_url ?>" />
<title><?= $gif ?></title>
<style>
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
body, html {
width: 100%;
height: 100%;
display: table;
background: #000;
font: 12px Helvetica, Arial;
color: #AAA;
}
.gif-wrapper {
display: table-cell;
vertical-align: middle;
text-align: center;
}
.copyright {
position: fixed;
bottom: 1em;
right: 1em;
color: #333;
text-decoration: none;
}
</style>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="gif-wrapper">
<? if(!$gif_exists): ?>
<p class="not-found">Gif not found. Try this one instead.</p>
<? endif; ?>
<img src="<?= $gif_url ?>" alt="<?= $gif ?>"/>
</div>
<a class="copyright" href="<?= site_url() ?>">ceagon.com</a>
</body>
</html>