-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile_left.php
32 lines (29 loc) · 1.27 KB
/
profile_left.php
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
<?php
/******************************************************************************
Etano
===============================================================================
File: profile_left.php
$Revision$
Software by: DateMill (http://www.datemill.com)
Copyright by: DateMill (http://www.datemill.com)
Support at: http://www.datemill.com/forum
*******************************************************************************
* See the "docs/licenses/etano.txt" file for license. *
******************************************************************************/
$conn_net=array();
if (isset($output['uid'])) {
$uid=$output['uid'];
unset($output);
$output['uid']=$uid;
if (!empty($_SESSION[_LICENSE_KEY_]['user']['user_id'])) {
if (is_network_member($_SESSION[_LICENSE_KEY_]['user']['user_id'],$output['uid'],NET_BLOCK)) {
$output['unblock_user']=true;
}
$conn_net=is_network_member($_SESSION[_LICENSE_KEY_]['user']['user_id'],$output['uid'],0,array(NET_BLOCK));
}
}
$tpl->set_file('left_content','profile_left.html');
$tpl->set_loop('conn_net',$conn_net);
$tpl->set_var('output',$output);
$tpl->set_var('tplvars',$tplvars);
$tpl->process('left_content','left_content',TPL_LOOP | TPL_OPTIONAL);