- Timestamp:
- 08/09/05 21:14:53 (7 years ago)
- Location:
- trunk/inc/communities
- Files:
-
- 5 modified
-
createEvent.inc.php (modified) (1 diff)
-
editEvent.inc.php (modified) (1 diff)
-
events.inc.php (modified) (1 diff)
-
forum.inc.php (modified) (2 diffs)
-
view.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/communities/createEvent.inc.php
r1 r14 32 32 if(in_array($community['info']['id_comm'], $_SESSION['my_communities_id'])) 33 33 { 34 /************* menu *******************/35 $leftmenu["/communities/view/".$community['info']['id_comm']] = 'Return to community';36 $leftmenu["/communities/forum/".$community['info']['id_comm']] = 'View forum';37 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events';34 /************* menu *******************/ 35 $leftmenu["/communities/view/".$community['info']['id_comm']] = 'Return to community'; 36 $leftmenu["/communities/forum/".$community['info']['id_comm']] = 'View forum'; 37 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 38 38 39 $smarty->assign('leftmenu',$leftmenu);40 /************************************/39 $smarty->assign('leftmenu',$leftmenu); 40 /************************************/ 41 41 42 $smarty->assign('Title', 'Communities');43 $smarty->assign('community', $community);42 $smarty->assign('Title', 'Communities'); 43 $smarty->assign('community', $community); 44 44 } 45 45 else -
trunk/inc/communities/editEvent.inc.php
r1 r14 22 22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 include(INCLUDESPATH.'/countries_list.inc.php'); 24 25 25 26 if(is_numeric($token[2])) -
trunk/inc/communities/events.inc.php
r1 r14 40 40 if($_SESSION['my_id'] != $community['info']['id']) 41 41 if(in_array($community['info']['id_comm'], $_SESSION['my_communities_id']) ) 42 { 42 43 $leftmenu["/communities/unjoin/".$token[2]] = 'Unjoin'; 44 $_SMARTY['is_member'] = 1; 45 } 43 46 else 47 { 44 48 $leftmenu["/communities/join/".$token[2]] = 'Join'; 49 $_SMARTY['id_member'] = 0; 50 } 45 51 else 52 { 46 53 $leftmenu["/communities/edit/".$token[2]] = 'Edit'; 47 54 $_SMARTY['is_member'] = 1; 55 } 48 56 49 57 $leftmenu["/communities/forum/".$token[2]] = 'View forum'; 50 58 $leftmenu["/communities/invite/".$token[2]] = 'Invite friends'; 51 59 52 $smarty->assign('leftmenu',$leftmenu); 53 60 $_SMARTY['leftmenu'] = $leftmenu; 54 61 55 62 /************************************/ 56 63 57 64 65 $_SMARTY['Title'] = 'Community'; 58 66 59 $smarty->assign('Title', 'Community'); 67 if($_SMARTY['is_member']) 68 $db->query('UPDATE user_comm SET last_visit=? WHERE id=? AND id_comm=?', array(time(), $_SESSION['my_id'], $community['info']['id_comm'])); 60 69 61 if($_SESSION['my_communities_id']) 62 { 63 if( in_array($community['info']['id_comm'], $_SESSION['my_communities_id']) ) 64 { 65 $db->query('UPDATE user_comm SET last_visit=? WHERE id=? AND id_comm=?', array(time(), $_SESSION['my_id'], $community['info']['id_comm'])); 66 $smarty->assign('member', true); 67 } 68 } 69 70 71 $smarty->assign('community', $community); 70 $_SMARTY['community'] = $community; 72 71 } 73 72 else -
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 -
trunk/inc/communities/view.inc.php
r1 r14 121 121 } 122 122 else 123 { 124 $smarty->assign('is_member', 1); 123 125 $leftmenu["/communities/edit/".$token[2]] = 'Edit'; 126 } 124 127 125 128
