Changeset 14 for trunk/inc/communities/forum.inc.php
- Timestamp:
- 08/09/05 21:14:53 (7 years ago)
- Files:
-
- 1 modified
-
trunk/inc/communities/forum.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/communities/forum.inc.php
r1 r14 39 39 if($_SESSION['my_id'] != $community['info']['id']) 40 40 if(in_array($community['info']['id_comm'], $_SESSION['my_communities_id']) ) 41 { 41 42 $leftmenu["/communities/unjoin/".$token[2]] = 'Unjoin'; 43 $_SMARTY['is_member'] = 1; 44 } 42 45 else 46 { 43 47 $leftmenu["/communities/join/".$token[2]] = 'Join'; 48 $_SMARTY['is_member'] = 0; 49 } 44 50 else 51 { 45 52 $leftmenu["/communities/edit/".$token[2]] = 'Edit'; 46 53 $_SMARTY['is_member'] = 1; 54 } 47 55 48 56 $leftmenu["/communities/events/".$token[2]] = 'View events'; 49 57 $leftmenu["/communities/invite/".$token[2]] = 'Invite friends'; 50 58 51 $ smarty->assign('leftmenu',$leftmenu);59 $_SMARTY['leftmenu'] = $leftmenu; 52 60 53 61 … … 56 64 57 65 58 $smarty->assign('Title', 'Community'); 66 $_SMARTY['Title'] = 'Community'; 67 59 68 60 if($_SESSION['my_communities_id']) 61 { 62 if( in_array($community['info']['id_comm'], $_SESSION['my_communities_id']) ) 63 { 64 $db->query('UPDATE user_comm SET last_visit=? WHERE id=? AND id_comm=?', array(time(), $_SESSION['my_id'], $community['info']['id_comm'])); 65 $smarty->assign('member', true); 66 } 67 } 69 if($_SMARTY['is_member']) 70 $db->query('UPDATE user_comm SET last_visit=? WHERE id=? AND id_comm=?', array(time(), $_SESSION['my_id'], $community['info']['id_comm'])); 68 71 69 70 $smarty->assign('community', $community); 72 $_SMARTY['community'] = $community; 71 73 } 72 74 else
