id == 0)
{
if($Auth->id == 160){
//print_r($_GET);
}
if(isset($_GET['user_id']) && strlen($_GET['user_id']) > 0)
{
print '
User Not Found ';
}
include('includes/manage/users.php');
}
else
{
if($section == 't' || $section == 'w' || $section == 'l' || $section == 'b' || $section == 'o' || $section == 'p'){
$nav_arrangement = 1;
}
elseif($section == 'd' || $section == 'f' || $section == 'n' || $section == 'x' || $section == 'a'){
$nav_arrangement = 3;
}
else{
$nav_arrangement = 2;
}
// main navigation links: tradeable, wishlist, library, blacklist
$nav_ul = '
';
$nav2_ul = '
';
$nav3_ul = '
';
if($nav_arrangement == 1){
$nav_main = $nav_ul;
$nav_extended = $nav2_ul.$nav3_ul;
}
elseif($nav_arrangement == 3){
$nav_main = $nav3_ul;
$nav_extended = $nav_ul.$nav2_ul;
}
else{
$nav_main = $nav2_ul;
$nav_extended = $nav_ul.$nav3_ul;
}
if($section_var !== 'x')
{
print '
';
}
if(($Auth->offers_completed <= 1 && $Auth->id == $User->id) || $Auth->id == 160 || $Auth->id == 907){
print '
Welcome to Barter! Start trading by following these steps:
';
print '✔ Claim Profile ';
print ''.(isset($collections_counts['wishlist']['count']) && $collections_counts['wishlist']['count'] > 0 ? '✔': '__').' Sync or Add Wishlist ';
print ''.(isset($collections_counts['tradeable']['count']) && $collections_counts['tradeable']['count'] > 0 ? '✔': '__').' Add Tradables ';
print ' Read Guide ';
print ''.(isset($users_offers[0]['count']) && $users_offers[0]['count'] > 0 ? '✔' : '__').' Send Offer
';
}
if($section != 'z'){
//$event_time = time_format(1593104400);
//print '
';
//print 'Steam sale started '.$event_time['text'];
//print 'Server Update Database had 0% free space due to a temp file, restarting DB fixed it. Sorry for downtime.';
//print ' Humble Choice #1 reveal';
//print 'Phishing Warning Steam users are losing their accounts and sending the phishing site to friends';
//print 'Steaming Saturday (impromptu event) Graveyard Keeper';
//print 'Event 51 Humble Monthly + Choice, CODE VEIN, Devil May Cry 5, Resident Evil 2 in '.$event_time['text'];
//print '
';
//$expiringGame = $Auth->item(78917, 1);
//$expiringItem = $Auth->item(95627, 1);
//$uplayVersion = $Auth->item(57922, 1);
//if(isset($expiringGame['tradeable']) || isset($expiringItem['tradeable'])){
// print '
⏰ Black Ops 4 and additional content have a December 31 activation deadline
';
// print '
';
//}
//$superhot = $Auth->item(19539, 1);
//$superhotMCD = $Auth->item(58451, 1);
//$release_time = time_format(1594918800);
//if(isset($superhot['tradeable']) || isset($superhot['wishlist']) || isset($superhotMCD['wishlist'])){
// print '
⏰ SUPERHOT owners will receive SUPERHOT: MIND CONTROL DELETE; release in '.$release_time['text'].'; FAQ
';
//}
//if(isset($userOnlists['tradeable'])){ print '
⏰ Activation Deadline for The Fall of the Dungeon Guardians '.$event_time['text'].'
'; }
//$event_time2 = time_format(1529600400);
// https://discord.gg/9tAeKEy
// $event_time2 = time_format(1608660000);
$event_time_unix = 1717869600;
$event_time = time_format($event_time_unix);
$display_after = $event_time_unix - (60 * 60 * 48); // display event link 30 hours before event start
$display_until = $event_time_unix + (60 * 105); // remove event link 105 minutes after event start
if($_SERVER['REQUEST_TIME'] < $display_until && $_SERVER['REQUEST_TIME'] > $display_after){
print '
#event Humble Choice, Another Crab\'s Treasure, Life is Strange Remastered Collection, Cosmic Wheel Sisterhood in '.$event_time['text'].'
';
}
else{
// print '
Groupees may shutdown (their domain expires 21 August).
';
}
//print '
🚧 Scheduled Maintenance in '.$event_time['text'].' - the site will be down during this maintenance. see #ontopic for updates
';
//print '
🚧 Scheduled Maintenance completed for now.
';
//$depressionGame = $Auth->item(73171, 1);
//if(isset($depressionGame['revoked'])){
//print '
Depression The Game : list of replacement options contact DG on Discord or Steam to select';
// developer update ; contact updates ; DG may contact you
';
//}
if($Auth->id == 0 || $Auth->offers_completed <= 1){
print '
Barter.vg helps to organize game collections and manage trades. This profile page belongs to a user, but it does not prove anyone\'s identity or credibility. Be wary of anyone that proposes trades off-site or through private messages. To use this site\'s dispute process, you must use the on-site offer system to propose or accept trades.
';
}
elseif($Auth->allow_ga == 1){
//print '
Your Javascript preference is set to On (without third-party). This preference was mistakenly merged with Off. Everyone with Off was changed to On (without third-party). Unless you wanted this set to Off, you do no need to change it.
';
}
print '
';
print (isset($User->steam_img) && strlen($User->steam_img) > 1 ? ' ':' ');
$user_name_changes = $User->viewNameChanges();
$user_name_changes_count = count($user_name_changes);
if(isset($user_name_changes) && $user_name_changes_count > 0)
{
$user_name_change_ago = time_format($user_name_changes[1]['added']);
print '🕵 ';
}
if(strlen($collection_owner) > 0)
{
print 'claimed == 0 || $User->is_active == -1 ? ' class="lowlight"' : ($User->is_active == -1 ? ' style="color:red;"':'')).'>'.$collection_owner.' ';
}
elseif($User->claimed > $_SERVER['REQUEST_TIME'] - 60 * 60 * 10){ print '[ Adding Profile... ]'; }
else{ print '[ Missing Profile ]'; }
if($Auth->id == $User->id && $section_name == 'Profile')
{
//print 'OpenID Problems ';
print ' [x] Sign out ';
}
print ' ';
if($User->id > 0)
{
if($User->claimed == 0)
{
print '
';
}
elseif(isset($User->close_requested) && $User->close_requested > 0){
$close_requested_at = time_format($User->close_requested);
print '
';
if($Auth->id == 160 || $Auth->id == 907 || $Auth->id == 1063){
if(isset($_POST['open_profile'])){
$closed = $Auth->closeProfile($User->id, 0);
if($closed >= 1){
$Feed = new Feed();
$feed_data = array();
$feed_data[1] = array('type' => 1, 'var1' => dechex($Auth->id), 'text' => $User->steam_persona);
$feed_data[2] = array('type' => 4, 'var1' => dechex($Auth->id), 'var2' => $section, 'text' => $User->hexid);
$Feed->activity(63, $feed_data);
$Feed->connect('user', $User->id, 63);
print '
Profile Re-Opened The profile will be visible again.';
}
}
print '
';
}
}
else
{
$last_active = time_format($User->active);
//$offer_stats = $User->offer_stats_cached();
print '
';
print '
'.($User->is_active == 1 ? 'Active' : ($User->available == -1 ? '⛔ Unavailable' : '⚪ Inactive')).' ';
if($Auth->id == 0 && $User->show_inactivity == 1)
{
print '
- ';
}
else
{
if($last_active['difference'] > 60 * 60 * 48){ print $last_active['text']; }
elseif($last_active['difference'] > 60 * 60 * 24){ print 'a day ago'; }
else{ print 'Today'; }
}
if($User->disable_signin == 1){
print '.
This user is not able to trade on this site. ';
}
elseif($User->disable_offers_until > $_SERVER['REQUEST_TIME']){
print '.
This user is not able to send new offers on this site. ';
}
else{
print '.
'.$User->offers_completed.' Trade'.($User->offers_completed != 1 ? 's':'').' ;
'.$User->offers_unique.' Unique ;
'.$User->offers_failed.' offers_failed > 0 ? ' style="color:#d00;"':'').'>Disputed .';
}
if(isset($User->steam_id) && isset($User->steam_img) && strlen($User->steam_img) > 1)
{
$region = array(1=>'🌍 CIS', 2=>'🌎 SA', 3=>'🌏 SEA', 4=>'🌍 TR', 0=>'🌐 ROW', 5=>'🌐 ROW:EU', 6=>'🌐 ROW:NA');
$region_desc = array(1=>'Commonwealth of Independent States includes Armenia, Azerbaijan, Belarus, Georgia, Kyrgyzstan, Kazakhstan, Republic of Moldova, Russian Federation, Tajikistan, Turkmenistan, Ukraine, and Uzbekistan', 2=>'South America includes Argentina, Bolivia, Brazil, Bahamas, Belize, Chile, Colombia, Costa Rica, Ecuador, Guatemala, Guyana, Honduras, Mexico, Nicaragua, Panama, Peru, Paraguay, Suriname, El Salvador, Uruguay, and Venezuela', 3=>'Southeast Asia includes Indonesia, Malaysia, Philippines, Singapore, and Thailand', 4=>'Turkey', 0=>'Rest of World: Countries not included in the other four regions', 5=>'Europe includes Åland Islands, Albania, Andorra, Austria, Belgium, Bosnia & Herzegovina, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Faroe Islands, Finland, France, Germany, Gibraltar, Greece, Guernsey, Hungary, Iceland, Ireland, Italy, Jersey, Latvia, Liechtenstein, Lithuania, Luxembourg, Macedonia, Malta, Moldova, Monaco, Montenegro, Netherlands, Poland, Portugal, Romania, San Marino, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, and United Kingdom',6=>'Canada, and United States',-1=>'');
$countries = $User->countries();
print '
';
if(isset($User->steamtrades_negative) && $User->steamtrades_negative > 0){
print ' -'.$User->steamtrades_negative.' ';
}
elseif(!isset($User->steamtrades_negative)){
print ' Removed 🛇 ';
}
print ' 💻 ';
print (isset($User->region) && $User->region >= 0 ? '
'.$region[$User->region].' ' : '');
print (isset($User->country_id) && $User->country_id > 0 ? '
'.$countries[$User->country_id]['code'].' ' : '');
}
print '
';
print '';
if($User->offers_failed > 0)
{
$disputed_offers_reasons = $User->failed_offers();
if(isset($disputed_offers_reasons) && count($disputed_offers_reasons) > 0)
{
print '
';
$semicolon = '';
foreach($disputed_offers_reasons as $dispute_id => $dispute)
{
$dispute_time = time_format($dispute['updated']);
if($dispute['status'] == -1)
{
print $semicolon.'
X Dispute ('.$dispute['reason'].') '.$dispute_time['text'].' ';
}
else
{
print $semicolon.'
🕵 Pending Review '.$dispute_time['text'].' ';
}
$semicolon = '; ';
}
print '
';
}
}
}
}
}
if($User->disable_signin == 1){
print '
PROFILE SUSPENDED ';
}
if(isset($User->close_requested) && $User->close_requested > 0 && $Auth->id != 160){
print '';
}
elseif($section == 't' || $section == 'i' || $section == 'w' || $section == 'h' || $section == 'l' || $section == 'b' || $section == 'f' || $section == 'd' || $section == 'r' || $section == 'v' || $section == 'c' || $section == 'n' || $section == 'x')
{
flush();
include('includes/manage/sections.php');
}
elseif($section == 'o')
{
include('includes/manage/offers.php');
}
elseif($section == 'a')
{
include('includes/manage/activity.php');
}
elseif($section == 's')
{
include('includes/manage/start.php');
}
elseif($section == 'z')
{
include('includes/manage/newstart.php');
}
else
{
include('includes/manage/profile.php');
}
}
?>