-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_contacts.php
More file actions
72 lines (62 loc) · 1.82 KB
/
user_contacts.php
File metadata and controls
72 lines (62 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?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'];
$u = mysql_clean($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"));
}
break;
case "subscriptions":
{
assign('mode',$mode);
assign('heading',sprintf(lang('user_subscriptions'),$udetails['username']));
assign('userSubs',$userquery->get_user_subscriptions($udetails['userid'],NULL));
}
break;
case "subscribers":
{
assign('mode',$mode);
assign('heading',sprintf(lang('users_subscribers'),$udetails['username']));
assign('userSubs',$userquery->get_user_subscribers_detail($udetails['userid'],NULL));
}
break;
}
}else{
e(lang("usr_exist_err"));
$Cbucket->show_page = false;
}
subtitle(sprintf(lang("users_contacts"),$udetails['username']));
if($Cbucket->show_page)
Template('user_contacts.html');
else
display_it();
?>