| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/legalthisweek.com/public_html/includes/ |
Upload File : |
<?php
//error_reporting(E_ALL);
//ini_set('display_errors', 1);
define('THUMBS_FOLDER', 'thumbs/');
define('THUMBS_COUNT', 20);
define('THUMBS_TOTAL', sizeof( returnFolderContents() ));
function returnFolderContents(){
$imagesArray = array();
$images = glob(THUMBS_FOLDER . "*.jpg");
foreach($images as $image){
$image = str_replace(THUMBS_FOLDER, '', $image);
$imagesArray[] = $image;
}
return $imagesArray;
}
function countFolderContents(){
return sizeof( returnFolderContents() );
}
function getShuffledContent(){
$imagesArray = returnFolderContents();
shuffle( $imagesArray );
return $pages = array_chunk($imagesArray, THUMBS_COUNT);
}
function displayContent($pages, $p) {
include('titles.php');
foreach($pages[$p-1] as $file){
$random_minutes = rand(18,42);
$random_seconds = rand(10,59);
$random_photos = rand(125000,985000);
$video_id = explode('.', $file);
$video_id = $video_id[0];
if( array_key_exists( $video_id , $titles ) ) { $title = $titles[$video_id]; }
else { $title = 'NO TITLE SET in titles.php'; }
?>
<li>
<div class="video-inner">
<div class="video-thum">
<img src="<?php echo THUMBS_FOLDER.$file; ?>" alt="<?php echo $title; ?>"/>
<div class="play-link"><a href="https://join.legalthisweek.com/signup/signup.php?nats=<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjMuMy4wLjAuMC4wLjA'?>&step=2" title="<?php echo $title; ?>"></a></div>
</div>
<div class="video-detail clear">
<div class="video-left">
<div class="video-time">
<span class="lengh">Length: <?php echo $random_minutes; ?>:<?php echo $random_seconds; ?></span>
<span class="photos">Views: <?php echo $random_photos; ?></span>
</div>
</div>
<div class="video-rgt">
<div class="video-quality">
<img src="images/hd-icon.png" alt="">
</div>
</div>
</div>
</div>
</li>
<?php
}//foreach
}
?>