HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com/my_uploads.php
<?
session_start();
include('admin/db.php');
if(!$_SESSION[userid]) {
	header("Location: /login.php");
	exit();
}
include($basepath.'/includes/inc.seo.php');
$user=$_SESSION[userid];
$userresult = mysql_query("SELECT * FROM users WHERE record_num = '$_SESSION[userid]'");
$urow = mysql_fetch_array($userresult); 


$cacheName = str_replace('/','',$_SERVER['REQUEST_URI']);
if($cacheName == '') { $cacheName = 'index'; } 
$first = $cacheName[0]; 
$second = $cacheName[1]; 
$third = $cacheName[2]; 
$forth = $cacheName[3]; 
$fifth = $cacheName[4]; 
$cacheFile = "$first/$second/$third/$forth/$fifth/".$cacheName;
$cached_file = $cache_path.'/pages/'.$cacheFile;
if(file_exists($cached_file) && time() - $overall_cache_time < filemtime($cached_file) && $thispage != 'favorites' ) {
   	$string = file_get_contents($cached_file);
	$array = unserialize($string); 
	$cache_total_pages = $cache_path.'/total_pages/'.$cacheFile; 
	$total_pages = file_get_contents($cache_total_pages);
}
else {
	include($basepath.'/includes/inc.index_queries.php');
	while($row = mysql_fetch_array($result)) {
		$array[] = $row;
	}
	if($thispage != 'favorites') { 
		$string = serialize($array);
		@mkdir($cache_path.'/pages/'.$first); 
		@mkdir($cache_path.'/pages/'.$first.'/'.$second); 
		@mkdir($cache_path.'/pages/'.$first.'/'.$second.'/'.$third); 
		@mkdir($cache_path.'/pages/'.$first.'/'.$second.'/'.$third.'/'.$forth);
		@mkdir($cache_path.'/pages/'.$first.'/'.$second.'/'.$third.'/'.$forth.'/'.$fifth);
		@mkdir($cache_path.'/total_pages/'.$first); 
		@mkdir($cache_path.'/total_pages/'.$first.'/'.$second); 
		@mkdir($cache_path.'/total_pages/'.$first.'/'.$second.'/'.$third); 
		@mkdir($cache_path.'/total_pages/'.$first.'/'.$second.'/'.$third.'/'.$forth);
		@mkdir($cache_path.'/total_pages/'.$first.'/'.$second.'/'.$third.'/'.$forth.'/'.$fifth);
		file_put_contents($cached_file, $string);
		$cache_total_pages = $cache_path.'/total_pages/'.$cacheFile;
		file_put_contents($cache_total_pages, $total_pages);
	}
}
$thisfile = 'index';
$webpage="index";
  
   
   
$ads = getAdsIndex($_REQUEST[channel]);
if($isMobile) {
	include($basepath.'/templates/mobile.overall_header.php');
}
else {
	include($basepath.'/templates/template.overall_header-empty.php');
}
?>
    <div id="main">
		<div class="header"><h2><strong style="color:#e8b011;"><? echo $_SESSION['username']; ?></strong></h2></div>
        <div class="contents">
        
        <div id="left-column">   
			<? include($basepath.'/includes/inc.profile_info.php');  ?>        
        </div>
        
        
            <div class="login_big_box">
            <div class="top"><h2>My Videos <strong style="color:#e8b011;">(<? echo $total_results; ?>)</strong></h2></div>
            <div class="bg" id="my-videos">
<?

if(is_array($array)) {
	foreach($array as $row) {
	
	if($type=="members") {
	
			include($basepath.'/templates/template.member_item.php');
			
	} else {
	
			if($row[photos] == 1) { 
				if($isMobile) {
					include($basepath.'/templates/mobile.content_item_photo.php');
				}
				else {
					include($basepath.'/templates/template.content_item_photo.php');
				}
			}
			else {
				if($isMobile) {
					include($basepath.'/templates/mobile.content_item.php');
				}
				else {
					include($basepath.'/templates/template.content_item.php');
				}
			}
		
		}
	}
} 
else {
	echo "Sorry, no videos were found.";
}
?>

</div>
<div class="bottom"></div>
</div>    
<?

if($isMobile) {
	include($basepath.'/templates/mobile.overall_footer.php');
}
else {
	include($basepath.'/templates/template.overall_footer.php');
}
?>