Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/viewProfile.php
<?php include_once('includes/static/configure.php'); include_once('includes/static/util.php'); include_once('includes/static/dbcon.php'); include_once('includes/static/gdimg.php'); include_once('includes/static/sessions.php'); include_once('includes/appTop.php'); $pg_name = basename($_SERVER['PHP_SELF']); include_once('includes/header.php'); include_once('includes/ads/468x60.php'); ?> <? $requser_id = 0; if(isset($_REQUEST['userId'])){ $requser_id = $_REQUEST['userId']; } $sql="SELECT COUNT(*) AS num_topics FROM 50mm_forum_topics WHERE user_id = '$requser_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); $num_topics = $row['num_topics']; $sql="SELECT COUNT(*) AS num_replies FROM 50mm_forum_replies WHERE user_id = '$requser_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); $num_replies = $row['num_replies']; $sql="SELECT username,profile,image,url,user_type,entry_time FROM 50mm_users WHERE user_id = '$requser_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $profile = ""; $row = $db->sql_fetchrow($result); $profile.='<div>'."\n"; if(isset($_SESSION['user_id'])){ if($_SESSION['user_id'] == $requser_id){ $profile.= '<a href="editProfile.php">Edit My Profile</a><br><br>'."\n"; } } $profile.= '<h2>'.$row['username'].'</h2>'."\n"; $unix = get_unix_time($row['entry_time']); $date = date("m.j.y",$unix); $profile.='Member since: '.$date.'<br>'; $profile.='Topics: '.$num_topics.'<br>'; $profile.='Replies: '.$num_replies.'<br>'; if( (!empty($row['url'])) && ($row['url'] != "http://")){ $profile.= 'Website: <a href="'.$row['url'].'">'.$row['url'].'</a><br>'."\n"; } $profile.= '<a href="galleryContributions.php?userId='.$requser_id.'"><img src="images/icon_gallery.gif" align="absmiddle" border="0" hspace=4 vspace=4>view gallery contributions</a><br>'."\n"; $profile.= '<a href="bookContributions.php?userId='.$requser_id.'"><img src="images/icon_blackbook.gif" align="absmiddle" border="0" hspace=4 vspace=4>view blackbook contributions</a><br><br>'."\n"; if(!empty($row['image'])){ $profile.='<br><img src="'.PROFILE_IMG_DIR.$row['image'].'"><br><br>'; } $profile.= $row['profile'].'<br><br>'; $profile.='</div>'."\n"; echo $profile; ?> <? include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>