One Hat Cyber Team
Your IP :
216.73.216.14
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
sam
/
public_html
/
web
/
modules
/
View File Name :
mod_imageofday.php
<?php /***************************************** imageofday module * @ Package imageofweek * @ Copyright (C) 2005 David Draper * @ All rights reserved * @ imageofweek is Free Software * @ Released under GNU/GPL License * @ Version 1.1 *****************************************/ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); global $mosConfig_absolute_path, $mosConfig_live_site; $mode = $params->get( 'mode' ); $type = $params->get( 'type', 'jpg' ); $folder = $params->get( 'folder' ); $default_img = $params->get( 'default_img' ); $link = $params->get( 'link' ); $width = $params->get( 'width' ); $height = $params->get( 'height' ); $debug_mode = $params->get( 'debug_mode' ); $moduleclass_sfx = $params->get( 'moduleclass_sfx' ); $alt_text = $params->get( 'alt_text' ); $abspath_folder = $mosConfig_absolute_path .'/'. $folder; switch ($mode) { case "0" : $ourdate = getdate(); $ourday = $ourdate['weekday']; $ourday = strtolower($ourday); $file = $ourday.'.'.$type; break; case "1" : $prefix = 'week'; $getstamp = time(); $weekofyear = date('W',$getstamp); $file = $prefix.$weekofyear.'.'.$type; break; default: break; } $imagepath = $abspath_folder.'/'.$file; $image = $mosConfig_live_site .'/'. $folder .'/'. $file; if ($debug_mode=="1") { ?> Attempting to display: <br /> Path: <?php echo $folder.'/'.$file; ?><br /> URL: <?php echo $image; ?> <?php } else if(file_exists($imagepath)&&$file != '.' && $file != '..' && $file != 'CVS' && $file != 'index.html') { $show="yes"; } else if ($default_img !='-1') { $image = $mosConfig_live_site.'/images/stories/'.$default_img; $imagepath = $mosConfig_absolute_path.'/images/stories/'.$default_img; $show="yes"; } if ($show="yes" && file_exists($imagepath)&&$file != '.' && $file != '..' && $file != 'CVS' && $file != 'index.html') { $size = getimagesize ($imagepath); if ($width == '') { $width = 100; } if ($height == '') { $coeff = $size[0]/$size[1]; $height = (int) ($width/$coeff); } ?> <div align="center"> <?php if ($link) { echo "<a href=\"" . $link . "\" target=\"_self\">\n"; } ?> <img src="<?php echo $image;?>" border="0" width="<?php echo $width ?>" height="<?php echo $height ?>" alt="<?php echo $alt_text; ?>" /> <?php if ($link) { ?> </a> <?php } ?> </div> <?php } ?>