
Updated : edit_account.php, Now when avatar is set it redirects to user profile Updated : EXIF Data url Updated : queryString function regex. Old one was removing complete query string Updated : display_manager_links(), now all variables except omo are removed from url Added : Make profile link for photos @startup.php Added : return_object_order in template_functions.php, This returns the order of provided omo value Updated : Order checking @manage_collections.php and @manage_photos.php. Now only return_object_order is used Updated : Updating of photo when it is uploaded Updated : photo.html, single_feed.html, single_feed_comment.html, photo_form.html, user.html, video.html, /view_channel/feed.html, manage_photos.html, view_channel.html Added : user_contacts.html, user_photos.html and user_videos.html Added : autoComplete parameter for photo tagging Updated : default.css, feeds.css and view_channel.css Updated : user_contacts.php Added : Next and Previous photos links @view_item.php Fixed : Avatar Delete Fixed : getProfileItem method of $userquery
78 lines
No EOL
2.3 KiB
PHP
78 lines
No EOL
2.3 KiB
PHP
<?php
|
|
/*
|
|
****************************************************************
|
|
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
|
| @ Author : ArslanHassan
|
|
| @ Software : ClipBucket , © PHPBucket.com
|
|
****************************************************************
|
|
*/
|
|
|
|
define("THIS_PAGE",'user_contacts');
|
|
define("PARENT_PAGE",'channels');
|
|
require 'includes/config.inc.php';
|
|
$pages->page_redir();
|
|
|
|
|
|
$u = $_GET['user'];
|
|
$u = $u ? $u : $_GET['userid'];
|
|
$u = $u ? $u : $_GET['username'];
|
|
$u = $u ? $u : $_GET['uid'];
|
|
$u = $u ? $u : $_GET['u'];
|
|
|
|
$udetails = $userquery->get_user_details($u);
|
|
$page = mysql_clean($_GET['page']);
|
|
$get_limit = create_query_limit($page,CLISTPP);
|
|
|
|
if($udetails)
|
|
{
|
|
assign("u",$udetails);
|
|
assign('p',$userquery->get_user_profile($udetails['userid']));
|
|
$mode = $_GET['mode'];
|
|
switch($mode)
|
|
{
|
|
case "contacts":
|
|
default:
|
|
{
|
|
//assign("u",$udetails);
|
|
assign('p',$userquery->get_user_profile($udetails['userid']));
|
|
assign('mode',$mode);
|
|
assign('friends',$userquery->get_contacts($udetails['userid'],0,"yes"));
|
|
subtitle(sprintf(lang("users_contacts"),$udetails['username']));
|
|
}
|
|
break;
|
|
|
|
case "subscriptions":
|
|
{
|
|
assign('mode',$mode);
|
|
assign('heading',sprintf(lang('user_subscriptions'),$udetails['username']));
|
|
assign('the_title',sprintf(lang('user_subscriptions'),$udetails['username']));
|
|
assign('userSubs',$userquery->get_user_subscriptions($udetails['userid'],NULL));
|
|
assign('no_subs_found', lang('User has no subscriptions') );
|
|
subtitle(sprintf(lang('user_subscriptions'),$udetails['username']));
|
|
}
|
|
break;
|
|
|
|
case "subscribers":
|
|
{
|
|
assign('mode',$mode);
|
|
assign('heading',sprintf(lang('users_subscribers'),$udetails['username']));
|
|
assign('the_title',sprintf(lang('users_subscribers'),$udetails['username']));
|
|
assign('userSubs',$userquery->get_user_subscribers_detail($udetails['userid'],NULL));
|
|
assign('no_subs_found', lang('User has no subscribers') );
|
|
subtitle(sprintf(lang('users_subscribers'),$udetails['username']));
|
|
}
|
|
break;
|
|
}
|
|
|
|
}else{
|
|
e(lang("usr_exist_err"));
|
|
$Cbucket->show_page = false;
|
|
}
|
|
|
|
|
|
|
|
if($Cbucket->show_page)
|
|
Template('user_contacts.html');
|
|
else
|
|
display_it();
|
|
?>
|