Changeset 15
- Timestamp:
- 08/09/05 22:30:14 (6 years ago)
- Location:
- trunk
- Files:
-
- 93 modified
-
inc/ReportBogus.inc.php (modified) (1 diff)
-
inc/_profile/all.inc.php (modified) (2 diffs)
-
inc/album.inc.php (modified) (4 diffs)
-
inc/blog.inc.php (modified) (4 diffs)
-
inc/blog/edit.inc.php (modified) (2 diffs)
-
inc/blog/rss.inc.php (modified) (2 diffs)
-
inc/blog/view.inc.php (modified) (2 diffs)
-
inc/bookmarks.inc.php (modified) (3 diffs)
-
inc/communities/category.inc.php (modified) (4 diffs)
-
inc/communities/create.inc.php (modified) (2 diffs)
-
inc/communities/createEvent.inc.php (modified) (1 diff)
-
inc/communities/createTopic.inc.php (modified) (1 diff)
-
inc/communities/edit.inc.php (modified) (2 diffs)
-
inc/communities/editEvent.inc.php (modified) (1 diff)
-
inc/communities/editPost.inc.php (modified) (1 diff)
-
inc/communities/invite.inc.php (modified) (1 diff)
-
inc/communities/join.inc.php (modified) (2 diffs)
-
inc/communities/last.inc.php (modified) (2 diffs)
-
inc/communities/members.inc.php (modified) (2 diffs)
-
inc/communities/mine.inc.php (modified) (2 diffs)
-
inc/communities/replyTopic.inc.php (modified) (1 diff)
-
inc/communities/search.inc.php (modified) (2 diffs)
-
inc/communities/view.inc.php (modified) (4 diffs)
-
inc/communities/viewEvent.inc.php (modified) (1 diff)
-
inc/communities/viewTopic.inc.php (modified) (2 diffs)
-
inc/friends/fans.inc.php (modified) (2 diffs)
-
inc/friends/invitation.inc.php (modified) (2 diffs)
-
inc/friends/join.inc.php (modified) (2 diffs)
-
inc/friends/karma.inc.php (modified) (2 diffs)
-
inc/friends/list.inc.php (modified) (2 diffs)
-
inc/friends/search.inc.php (modified) (2 diffs)
-
inc/help.inc.php (modified) (2 diffs)
-
inc/help/about/promote.inc.php (modified) (1 diff)
-
inc/index.inc.php (modified) (1 diff)
-
inc/irc.inc.php (modified) (1 diff)
-
inc/messages/forward.inc.php (modified) (2 diffs)
-
inc/messages/inbox.inc.php (modified) (3 diffs)
-
inc/messages/saved.inc.php (modified) (3 diffs)
-
inc/messages/sent.inc.php (modified) (3 diffs)
-
inc/messages/write.inc.php (modified) (2 diffs)
-
inc/my.inc.php (modified) (2 diffs)
-
inc/my/album.inc.php (modified) (2 diffs)
-
inc/my/album/edit.inc.php (modified) (2 diffs)
-
inc/my/album/view.inc.php (modified) (2 diffs)
-
inc/my/blog.inc.php (modified) (2 diffs)
-
inc/my/blog/add.inc.php (modified) (2 diffs)
-
inc/my/blog/categorie.inc.php (modified) (2 diffs)
-
inc/my/blog/edit.inc.php (modified) (2 diffs)
-
inc/my/blog/view.inc.php (modified) (2 diffs)
-
inc/my/bookmarks.inc.php (modified) (2 diffs)
-
inc/my/bookmarks/edit.inc.php (modified) (2 diffs)
-
inc/my/password.inc.php (modified) (1 diff)
-
inc/my/profile/contact.inc.php (modified) (2 diffs)
-
inc/my/profile/contact/edit.inc.php (modified) (2 diffs)
-
inc/my/profile/general.inc.php (modified) (2 diffs)
-
inc/my/profile/general/edit.inc.php (modified) (2 diffs)
-
inc/my/profile/interests.inc.php (modified) (2 diffs)
-
inc/my/profile/interests/edit.inc.php (modified) (2 diffs)
-
inc/my/profile/personal.inc.php (modified) (2 diffs)
-
inc/my/profile/personal/edit.inc.php (modified) (2 diffs)
-
inc/my/profile/photo.inc.php (modified) (1 diff)
-
inc/my/profile/professional.inc.php (modified) (2 diffs)
-
inc/my/profile/professional/edit.inc.php (modified) (2 diffs)
-
inc/my/profile/schools.inc.php (modified) (2 diffs)
-
inc/my/profile/schools/add.inc.php (modified) (1 diff)
-
inc/my/profile/schools/edit.inc.php (modified) (2 diffs)
-
inc/my/settings.inc.php (modified) (2 diffs)
-
inc/new.inc.php (modified) (2 diffs)
-
inc/new/profile.inc.php (modified) (2 diffs)
-
inc/news.inc.php (modified) (2 diffs)
-
inc/news/blog.inc.php (modified) (2 diffs)
-
inc/news/statistics.inc.php (modified) (1 diff)
-
inc/profile.inc.php (modified) (2 diffs)
-
inc/profile/communities.inc.php (modified) (4 diffs)
-
inc/pub.inc.php (modified) (1 diff)
-
inc/pub/help.inc.php (modified) (2 diffs)
-
inc/pub/join.inc.php (modified) (2 diffs)
-
inc/search.inc.php (modified) (3 diffs)
-
inc/test.inc.php (modified) (1 diff)
-
inc_dntp/history.inc.php (modified) (1 diff)
-
inc_dntp/language.inc.php (modified) (1 diff)
-
inc_dntp/my.inc.php (modified) (4 diffs)
-
inc_dntp/translate.inc.php (modified) (1 diff)
-
inc_hp/album.inc.php (modified) (1 diff)
-
inc_hp/blog.inc.php (modified) (2 diffs)
-
inc_hp/blog/view.inc.php (modified) (1 diff)
-
inc_hp/bookmarks.inc.php (modified) (1 diff)
-
inc_hp/friends.inc.php (modified) (1 diff)
-
inc_hp/index.inc.php (modified) (3 diffs)
-
inc_xml/rdf/communities.rdf.inc.php (modified) (1 diff)
-
inc_xml/rdf/friends.rdf.inc.php (modified) (1 diff)
-
includes/functions.inc.php (modified) (2 diffs)
-
smarty/templates/communities/viewTopic.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/ReportBogus.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Send Bogus Report');25 $_SMARTY['Title'] = 'Send Bogus Report'; 26 26 ?> -
trunk/inc/_profile/all.inc.php
r1 r15 28 28 { 29 29 $ticket = $db->getRow('SELECT id_ticket, title, description, link, date, description, content FROM rss_blog_ticket WHERE id=? ORDER BY date DESC LIMIT 1', array($url_id)); 30 $ smarty->assign('blog_rss',$ticket);30 $_SMARTY['blog_rss'] = $ticket; 31 31 } 32 32 else 33 33 { 34 34 $blog = $db->getRow('SELECT blog.id as id, id_blog, blog.id_cat,title, chapeau, ticket, date, status, blog_categorie.name as categorie, nb_comments FROM blog LEFT JOIN blog_categorie USING (id,id_cat) WHERE blog.id=? AND blog.status=? ORDER BY date DESC LIMIT 1', array($url_id, 'online') ); 35 $ smarty->assign('blog',$blog);35 $_SMARTY['blog'] = $blog; 36 36 } 37 37 38 38 #$blog = $db->getRow('SELECT id_blog, title, chapeau, ticket, nb_comments FROM blog WHERE id=? AND status=? ORDER BY date DESC LIMIT 0,1', array($url_id, 'online')); 39 #$ smarty->assign('blog', $blog);39 #$_SMARTY['blog'] = $blog; 40 40 41 41 $bookmarks_r = $db->query('SELECT link, comment FROM bookmarks WHERE id=? ORDER BY date DESC LIMIT 0,4', array($url_id)); 42 42 while($bookmark = $bookmarks_r->fetchRow()) 43 43 $bookmarks[] = $bookmark; 44 $ smarty->assign('bookmarks',$bookmarks);44 $_SMARTY['bookmarks'] = $bookmarks; 45 45 46 46 $albums_r = $db->query('SELECT caption,id_image, width, height FROM album WHERE id=? ORDER BY date DESC LIMIT 0,3', array($url_id)); … … 50 50 $albums[] = $photo; 51 51 } 52 $ smarty->assign('albums',$albums);52 $_SMARTY['albums'] = $albums; 53 53 54 54 -
trunk/inc/album.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Album');25 $_SMARTY['Title'] = 'Album'; 26 26 27 27 if($token[1] != 'view' || !is_numeric($token[2]) ) … … 52 52 } 53 53 54 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL);54 $pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 55 55 56 $ smarty->assign('pagination', $pagination);56 $_SMARTY['pagination'] = $pagination; 57 57 /******************************/ 58 58 … … 85 85 elseif(is_numeric($token[2]) ) 86 86 { 87 $ smarty->assign('Title','Photo');87 $_SMARTY['Title'] = 'Photo'; 88 88 89 89 $image = $db->getRow('SELECT id_image, width, height, format, caption FROM album WHERE id=? ORDER BY date DESC LIMIT !,1', array($url_id, $token[2]-1) ); … … 106 106 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 107 107 108 $ smarty->assign('leftmenu',$leftmenu);108 $_SMARTY['leftmenu'] = $leftmenu; 109 109 110 110 111 111 /************************************/ 112 112 113 $ smarty->assign('user',$user);114 $ smarty->assign('album',$album);113 $_SMARTY['user'] = $user; 114 $_SMARTY['album'] = $album; 115 115 116 116 -
trunk/inc/blog.inc.php
r1 r15 24 24 25 25 26 $ smarty->assign('Title','Blog');26 $_SMARTY['Title'] = 'Blog'; 27 27 28 28 $user['info'] = get_cache_user_info($url_id); … … 34 34 $rss_blog['item'][$ticket['link']] = $ticket; 35 35 36 $ smarty->assign('rss_blog',$rss_blog);36 $_SMARTY['rss_blog'] = $rss_blog; 37 37 } 38 38 else … … 46 46 $blog[$ticket['id_blog']] = $ticket; 47 47 48 $ smarty->assign('blog',$blog);48 $_SMARTY['blog'] = $blog; 49 49 } 50 50 … … 65 65 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 66 66 67 $ smarty->assign('leftmenu',$leftmenu);67 $_SMARTY['leftmenu'] = $leftmenu; 68 68 69 69 70 70 /************************************/ 71 71 72 $ smarty->assign('user',$user);72 $_SMARTY['user'] = $user; 73 73 74 74 -
trunk/inc/blog/edit.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Blog');25 $_SMARTY['Title'] = 'Blog'; 26 26 27 27 $_id_blog = $token[2]; … … 47 47 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 48 48 49 $ smarty->assign('leftmenu',$leftmenu);49 $_SMARTY['leftmenu'] = $leftmenu; 50 50 51 51 52 52 /************************************/ 53 53 54 $ smarty->assign('user',$user);55 $ smarty->assign('comment',$comment);54 $_SMARTY['user'] = $user; 55 $_SMARTY['comment'] = $comment; 56 56 } 57 57 else -
trunk/inc/blog/rss.inc.php
r1 r15 24 24 25 25 26 $ smarty->assign('Title','Blog');26 $_SMARTY['Title'] = 'Blog'; 27 27 28 28 $user['info'] = get_cache_user_info($url_id); … … 50 50 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 51 51 52 $ smarty->assign('leftmenu',$leftmenu);52 $_SMARTY['leftmenu'] = $leftmenu; 53 53 54 54 55 55 /************************************/ 56 56 57 $ smarty->assign('user',$user);58 $ smarty->assign('blog',$blog);57 $_SMARTY['user'] = $user; 58 $_SMARTY['blog'] = $blog; 59 59 60 60 -
trunk/inc/blog/view.inc.php
r1 r15 24 24 25 25 26 $ smarty->assign('Title','Blog');26 $_SMARTY['Title'] = 'Blog'; 27 27 28 28 if(is_numeric($token[2]) ) … … 67 67 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 68 68 69 $ smarty->assign('leftmenu',$leftmenu);69 $_SMARTY['leftmenu'] = $leftmenu; 70 70 71 71 72 72 /************************************/ 73 73 74 $ smarty->assign('user',$user);75 $ smarty->assign('blog',$blog);74 $_SMARTY['user'] = $user; 75 $_SMARTY['blog'] = $blog; 76 76 } 77 77 else -
trunk/inc/bookmarks.inc.php
r1 r15 24 24 25 25 include(INCLUDESPATH.'/bookmarks.inc.php'); 26 $ smarty->assign('Title','Bookmarks');26 $_SMARTY['Title'] = 'Bookmarks'; 27 27 28 28 if($token[1]=='category' && is_numeric($token[2])) … … 58 58 59 59 $path = get_cat_path($token[2]); 60 $ smarty->assign('path',$path);60 $_SMARTY['path'] = $path; 61 61 } 62 62 $user['info'] = get_cache_user_info($url_id); … … 76 76 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 77 77 78 $ smarty->assign('leftmenu',$leftmenu);78 $_SMARTY['leftmenu'] = $leftmenu; 79 79 /*****************************************/ 80 80 81 $ smarty->assign('leftmenu',$leftmenu);82 $ smarty->assign('links',$links);83 $ smarty->assign('user',$user);81 $_SMARTY['leftmenu'] = $leftmenu; 82 $_SMARTY['links'] = $links; 83 $_SMARTY['user'] = $user; 84 84 85 85 -
trunk/inc/communities/category.inc.php
r1 r15 32 32 if(is_numeric($token[2])) 33 33 { 34 $ smarty->assign('Title', 'By category');34 $_SMARTY['Title'] = 'By category'; 35 35 36 36 if($token[3] == 'newer') … … 42 42 43 43 $nb_page = ceil($category['nb_communities']/20); 44 $pages = array_fill(1,$nb_page, NULL);44 $pages = @array_fill(1,$nb_page, NULL); 45 45 46 46 if($category['nb_communities']>20 && is_numeric($token[4]) && $token[4]<= $nb_page ) … … 56 56 } 57 57 58 $ smarty->assign('cat', $category);59 $ smarty->assign('pages', $pages);60 $ smarty->assign('communities', $communities);58 $_SMARTY['cat'] = $category; 59 $_SMARTY['pages'] = $pages; 60 $_SMARTY['communities'] = $communities; 61 61 } 62 62 else … … 77 77 } 78 78 79 $ smarty->assign('categories', $categories);79 $_SMARTY['categories'] = $categories; 80 80 81 81 array_unshift($categories_list, _('Everywhere')); 82 $ smarty->assign('categories_list', $categories_list);82 $_SMARTY['categories_list'] = $categories_list; 83 83 84 84 } -
trunk/inc/communities/create.inc.php
r1 r15 25 25 include(INCLUDESPATH.'/countries_list.inc.php'); 26 26 27 $ smarty->assign('Title', 'Communities');27 $_SMARTY['Title'] = 'Communities'; 28 28 29 29 $categories_r = $db->query('SELECT id_cat,name,nb_communities FROM community_cat'); … … 32 32 $categories[$categorie['id_cat']] = _($categorie['name']).' ('.$categorie['nb_communities'].')'; 33 33 34 $ smarty->assign('categories', $categories);34 $_SMARTY['categories'] = $categories; 35 35 ?> -
trunk/inc/communities/createEvent.inc.php
r14 r15 37 37 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 38 38 39 $ smarty->assign('leftmenu',$leftmenu);39 $_SMARTY['leftmenu'] = $leftmenu; 40 40 /************************************/ 41 41 42 $ smarty->assign('Title', 'Communities');43 $ smarty->assign('community', $community);42 $_SMARTY['Title'] = 'Communities'; 43 $_SMARTY['community'] = $community; 44 44 } 45 45 else -
trunk/inc/communities/createTopic.inc.php
r1 r15 35 35 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 36 36 37 $ smarty->assign('leftmenu',$leftmenu);37 $_SMARTY['leftmenu'] = $leftmenu; 38 38 /************************************/ 39 39 40 $ smarty->assign('Title', 'Communities');41 $ smarty->assign('community', $community);40 $_SMARTY['Title'] = 'Communities'; 41 $_SMARTY['community'] = $community; 42 42 } 43 43 else -
trunk/inc/communities/edit.inc.php
r1 r15 42 42 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 43 43 44 $ smarty->assign('leftmenu',$leftmenu);44 $_SMARTY['leftmenu'] = $leftmenu; 45 45 46 46 … … 48 48 49 49 50 $ smarty->assign('categories', $categories);50 $_SMARTY['categories'] = $categories; 51 51 52 52 53 $ smarty->assign('Title', 'Community');54 $ smarty->assign('community', $community);53 $_SMARTY['Title'] = 'Community'; 54 $_SMARTY['community'] = $community; 55 55 } 56 56 else -
trunk/inc/communities/editEvent.inc.php
r14 r15 43 43 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 44 44 45 $ smarty->assign('leftmenu',$leftmenu);45 $_SMARTY['leftmenu'] = $leftmenu; 46 46 /************************************/ 47 47 48 48 49 $ smarty->assign('community',$community);50 $ smarty->assign('event', $event);49 $_SMARTY['community'] = $community; 50 $_SMARTY['event'] = $event; 51 51 } 52 52 } -
trunk/inc/communities/editPost.inc.php
r1 r15 41 41 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 42 42 43 $ smarty->assign('leftmenu',$leftmenu);43 $_SMARTY['leftmenu'] = $leftmenu; 44 44 /************************************/ 45 45 46 46 47 $ smarty->assign('community',$community);48 $ smarty->assign('post', $post);47 $_SMARTY['community'] = $community; 48 $_SMARTY['post'] = $post; 49 49 } 50 50 } -
trunk/inc/communities/invite.inc.php
r1 r15 38 38 $leftmenu["/communities/events/".$token[2]] = 'View events'; 39 39 40 $ smarty->assign('leftmenu',$leftmenu);40 $_SMARTY['leftmenu'] = $leftmenu; 41 41 /************************************/ 42 42 43 $ smarty->assign('Title', $community['info']['name']);44 $ smarty->assign('friends', $friends);45 $ smarty->assign('community', $community);43 $_SMARTY['Title'] = $community['info']['name']; 44 $_SMARTY['friends'] = $friends; 45 $_SMARTY['community'] = $community; 46 46 } 47 47 else -
trunk/inc/communities/join.inc.php
r1 r15 34 34 $leftmenu["/communities/events/".$token[2]] = 'View events'; 35 35 36 $ smarty->assign('leftmenu',$leftmenu);36 $_SMARTY['leftmenu'] = $leftmenu; 37 37 38 38 … … 41 41 42 42 43 $ smarty->assign('Title', $community['info']['name']);44 $ smarty->assign('community', $community);43 $_SMARTY['Title'] = $community['info']['name']; 44 $_SMARTY['community'] = $community; 45 45 } 46 46 else -
trunk/inc/communities/last.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Communities');25 $_SMARTY['Title'] = 'Communities'; 26 26 27 27 $last_comm_r = $db->query('SELECT community.id as id, community.id_comm as id_comm, community.name as name, community.description as description, community.nb_members, community_cat.name as cat_name, community.date as date FROM community LEFT JOIN community_cat USING (id_cat) WHERE community.date > ? ORDER BY community.date DESC', array(time()-604800)); … … 44 44 45 45 46 $ smarty->assign('last_communities', $last_communities);46 $_SMARTY['last_communities'] = $last_communities; 47 47 ?> -
trunk/inc/communities/members.inc.php
r1 r15 25 25 if(is_numeric($token[2]) ) 26 26 { 27 $ smarty->assign('Title', 'Community members');27 $_SMARTY['Title'] = 'Community members'; 28 28 29 29 $community['info'] = $db->getRow('SELECT id_comm, id, community.name as name, community.description as description, moderated, country, date, nb_members, community_cat.name as category FROM community LEFT JOIN community_cat USING(id_cat) WHERE id_comm=?', array($token[2])); … … 53 53 $leftmenu["/communities/invite/".$token[2]] = 'Invite friends'; 54 54 55 $ smarty->assign('leftmenu',$leftmenu);55 $_SMARTY['leftmenu'] = $leftmenu; 56 56 57 57 58 58 /************************************/ 59 59 60 $ smarty->assign('community', $community);60 $_SMARTY['community'] = $community; 61 61 62 62 } -
trunk/inc/communities/mine.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'My communities');25 $_SMARTY['Title'] = 'My communities'; 26 26 27 27 $my_communities_r = $db->query('SELECT name, community.id_comm as id_comm, description, nb_members, last_post_date, community.id as id FROM community LEFT JOIN user_comm USING (id_comm) WHERE user_comm.id=? AND user_comm.status=? ORDER BY last_post_date DESC', array($_SESSION['my_id'], 'ok') ); … … 45 45 } 46 46 47 $ smarty->assign('my_communities', $my_communities);47 $_SMARTY['my_communities'] = $my_communities; 48 48 49 49 ?> -
trunk/inc/communities/replyTopic.inc.php
r1 r15 38 38 } 39 39 40 $ smarty->assign('community',$community);41 $ smarty->assign('topic', $topic);40 $_SMARTY['community'] = $community; 41 $_SMARTY['topic'] = $topic; 42 42 } 43 43 ?> -
trunk/inc/communities/search.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Community');25 $_SMARTY['Title'] = 'Community'; 26 26 27 27 $array = explode(' ', $_GET['q']); … … 68 68 69 69 array_unshift($categories_list, _('Everywhere')); 70 $ smarty->assign('categories_list', $categories_list);71 $ smarty->assign('comm', $comm);70 $_SMARTY['categories_list'] = $categories_list; 71 $_SMARTY['comm'] = $comm; 72 72 73 73 -
trunk/inc/communities/view.inc.php
r14 r15 25 25 if(is_numeric($token[2]) ) 26 26 { 27 $ smarty->assign('Title', 'Community');27 $_SMARTY['Title'] = 'Community'; 28 28 29 29 $community['info'] = $db->getRow('SELECT id_comm, id, community_cat.id_cat as id_cat, community.name as name, community.description as description, moderated, country, date, nb_members, community_cat.name as category FROM community LEFT JOIN community_cat USING(id_cat) WHERE id_comm=?', array($token[2])); … … 109 109 if($_SESSION['my_communities_id'] && in_array($community['info']['id_comm'], $_SESSION['my_communities_id']) ) 110 110 { 111 $ smarty->assign('is_member', 1);111 $_SMARTY['is_member'] = 1; 112 112 $leftmenu['/communities/unjoin/'.$token[2]] = 'Unjoin'; 113 113 } 114 114 else 115 115 { 116 $ smarty->assign('is_member', 0);116 $_SMARTY['is_member'] = 0; 117 117 if($community['info']['moderated'] == 'yes') 118 118 $leftmenu['/communities/join/'.$token[2].'/moderated'] = 'Join'; … … 122 122 else 123 123 { 124 $ smarty->assign('is_member', 1);124 $_SMARTY['is_member'] = 1; 125 125 $leftmenu["/communities/edit/".$token[2]] = 'Edit'; 126 126 } … … 131 131 $leftmenu['/communities/invite/'.$token[2]] = 'Invite friends'; 132 132 133 $ smarty->assign('leftmenu',$leftmenu);133 $_SMARTY['leftmenu'] = $leftmenu; 134 134 135 135 136 136 /************************************/ 137 137 138 $ smarty->assign('related_communities', $related_comm);139 $ smarty->assign('community', $community);138 $_SMARTY['related_communities'] = $related_comm; 139 $_SMARTY['community'] = $community; 140 140 } 141 141 else -
trunk/inc/communities/viewEvent.inc.php
r1 r15 36 36 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 37 37 38 $ smarty->assign('leftmenu',$leftmenu);38 $_SMARTY['leftmenu'] = $leftmenu; 39 39 /************************************/ 40 40 41 if($_SESSION['my_communities_id']) $smarty->assign('member', in_array($community['info']['id_comm'], $_SESSION['my_communities_id'])); 42 43 $smarty->assign('community',$community); 44 $smarty->assign('event', $event); 41 $_SMARTY['community'] = $community; 42 $_SMARTY['event'] = $event; 45 43 } 46 44 ?> -
trunk/inc/communities/viewTopic.inc.php
r1 r15 43 43 $leftmenu["/communities/events/".$community['info']['id_comm']] = 'View events'; 44 44 45 $ smarty->assign('leftmenu',$leftmenu);45 $_SMARTY['leftmenu'] = $leftmenu; 46 46 /************************************/ 47 47 … … 51 51 { 52 52 $db->query('UPDATE user_comm SET last_visit=? WHERE id=? AND id_comm=?', array(time(), $_SESSION['my_id'], $community['info']['id_comm'])); 53 $ smarty->assign('member', true);53 $_SMARTY['is_member'] = true; 54 54 } 55 55 } 56 56 57 $ smarty->assign('community',$community);58 $ smarty->assign('topic', $topic);57 $_SMARTY['community'] = $community; 58 $_SMARTY['topic'] = $topic; 59 59 } 60 60 ?> -
trunk/inc/friends/fans.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Fans');25 $_SMARTY['Title'] = 'Fans'; 26 26 27 27 $user['info'] = get_cache_user_info($url_id); … … 78 78 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 79 79 80 $ smarty->assign('leftmenu',$leftmenu);80 $_SMARTY['leftmenu'] = $leftmenu; 81 81 82 82 /************************************************/ 83 $ smarty->assign('tr_attr', array("class='odd' style='vertical-align:top'", "class='even' style='vertical-align:top'"));84 $ smarty->assign('user', $user);85 $ smarty->assign('fans', $fans);83 $_SMARTY['tr_attr'] = array("class='odd' style='vertical-align:top'", "class='even' style='vertical-align:top'"); 84 $_SMARTY['user'] = $user; 85 $_SMARTY['fans'] = $fans; 86 86 87 87 ?> -
trunk/inc/friends/invitation.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Friends');25 $_SMARTY['Title'] = 'Friends'; 26 26 27 27 $user['info'] = get_cache_user_info($url_id); … … 41 41 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 42 42 43 $ smarty->assign('leftmenu',$leftmenu);43 $_SMARTY['leftmenu'] = $leftmenu; 44 44 45 45 /************************************************/ 46 $ smarty->assign('user', $user);46 $_SMARTY['user'] = $user; 47 47 ?> -
trunk/inc/friends/join.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Invite your friends');25 $_SMARTY['Title'] = 'Invite your friends'; 26 26 $user['info'] = get_cache_user_info($url_id); 27 27 … … 33 33 } 34 34 35 $ smarty->assign('user', $user);36 $ smarty->assign('invitations', $invitations);35 $_SMARTY['user'] = $user; 36 $_SMARTY['invitations'] = $invitations; 37 37 38 38 -
trunk/inc/friends/karma.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Friends\'Karma');25 $_SMARTY['Title'] = 'Friends\'Karma'; 26 26 $relation_r = $db->query('SELECT id_friend , cool , fun , sexy , fan , `level`, `type` FROM relation WHERE id=?', array($_SESSION['my_id'])); 27 27 … … 45 45 46 46 47 $ smarty->assign('friends', $friends);47 $_SMARTY['friends'] = $friends; 48 48 ?> -
trunk/inc/friends/list.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Friends');25 $_SMARTY['Title'] = 'Friends'; 26 26 27 27 $user['info'] = get_cache_user_info($url_id); … … 69 69 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 70 70 71 $ smarty->assign('leftmenu',$leftmenu);71 $_SMARTY['leftmenu'] = $leftmenu; 72 72 73 73 /************************************************/ 74 $ smarty->assign('tr_attr', array("class='odd' style='vertical-align:top'", "class='even' style='vertical-align:top'"));75 $ smarty->assign('user', $user);76 $ smarty->assign('friends', $friends);74 $_SMARTY['tr_attr'] = array("class='odd' style='vertical-align:top'", "class='even' style='vertical-align:top'"); 75 $_SMARTY['user'] = $user; 76 $_SMARTY['friends'] = $friends; 77 77 ?> -
trunk/inc/friends/search.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Friend finder');25 $_SMARTY['Title'] = 'Friend finder'; 26 26 27 27 $user['info'] = get_cache_user_info($url_id); … … 153 153 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 154 154 155 $ smarty->assign('leftmenu',$leftmenu);155 $_SMARTY['leftmenu'] = $leftmenu; 156 156 157 157 /************************************************/ 158 $ smarty->assign('user', $user);159 if($result) $ smarty->assign('result',$result);158 $_SMARTY['user'] = $user; 159 if($result) $_SMARTY['result'] = $result; 160 160 ?> -
trunk/inc/help.inc.php
r1 r15 31 31 32 32 33 $ smarty->assign('Title', 'Help');33 $_SMARTY['Title'] = 'Help'; 34 34 35 35 $db_wiki =& DB::connect($dsn_wiki); … … 45 45 46 46 47 $ smarty->assign('page' , $page);47 $_SMARTY['page' ] = $page; 48 48 ?> -
trunk/inc/help/about/promote.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Promote .node');25 $_SMARTY['Title'] = 'Promote .node'; 26 26 ?> -
trunk/inc/index.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title',"Page not found");25 $_SMARTY['Title'] = "Page not found"; 26 26 ?> -
trunk/inc/irc.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'IRC');25 $_SMARTY['Title'] = 'IRC'; 26 26 ?> -
trunk/inc/messages/forward.inc.php
r1 r15 30 30 { 31 31 $message = $db->getRow('SELECT id_mess, id_from, from_str, type, dest, subject, message, flag, date FROM message WHERE id=? AND id_mess=?', array($_SESSION['my_id'],$token[3])); 32 $ smarty->assign('message', $message);32 $_SMARTY['message'] = $message; 33 33 } 34 34 35 $ smarty->assign('to', $to);35 $_SMARTY['to'] = $to; 36 36 } 37 37 if(is_numeric($token[2])) … … 46 46 $message = $db->getRow('SELECT id_mess, id_from, from_str, type, dest, subject, message, flag, date FROM message WHERE id=? AND id_mess=?', array($_SESSION['my_id'],$token[2])); 47 47 48 $ smarty->assign('message', $message);49 $ smarty->assign('friends',$friends);48 $_SMARTY['message'] = $message; 49 $_SMARTY['friends'] = $friends; 50 50 } 51 51 ?> -
trunk/inc/messages/inbox.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Messages');25 $_SMARTY['Title'] = 'Messages'; 26 26 27 27 /** Pagination ***************/ … … 43 43 } 44 44 45 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL);45 $pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 46 46 47 $ smarty->assign('pagination', $pagination);47 $_SMARTY['pagination'] = $pagination; 48 48 /******************************/ 49 49 … … 60 60 61 61 62 $ smarty->assign('messages', $messages);62 $_SMARTY['messages'] = $messages; 63 63 ?> -
trunk/inc/messages/saved.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Messages');25 $_SMARTY['Title'] = 'Messages'; 26 26 27 27 /** Pagination ***************/ … … 44 44 } 45 45 46 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL);46 $pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 47 47 48 $ smarty->assign('pagination', $pagination);48 $_SMARTY['pagination'] = $pagination; 49 49 /******************************/ 50 50 … … 58 58 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$messages_r->getUserInfo()); 59 59 60 $ smarty->assign('messages', $messages);60 $_SMARTY['messages'] = $messages; 61 61 62 62 ?> -
trunk/inc/messages/sent.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Messages');25 $_SMARTY['Title'] = 'Messages'; 26 26 27 27 /** Pagination ***************/ … … 43 43 } 44 44 45 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL);45 $pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 46 46 47 $ smarty->assign('pagination', $pagination);47 $_SMARTY['pagination'] = $pagination; 48 48 /******************************/ 49 49 … … 72 72 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$messages_r->getUserInfo()); 73 73 74 $ smarty->assign('messages', $messages);74 $_SMARTY['messages'] = $messages; 75 75 76 76 ?> -
trunk/inc/messages/write.inc.php
r1 r15 30 30 { 31 31 $message = $db->getRow('SELECT id_mess, id_from, from_str, type, dest, subject, message, flag, date FROM message WHERE id=? AND id_mess=?', array($_SESSION['my_id'],$token[3])); 32 $ smarty->assign('message', $message);32 $_SMARTY['message'] = $message; 33 33 } 34 34 35 $ smarty->assign('to', $to);35 $_SMARTY['to'] = $to; 36 36 } 37 37 else … … 43 43 while($friend = $friends_r->fetchRow()) 44 44 $friends[$friend['id']] = $friend['fname'].' '.$friend['lname']; 45 $ smarty->assign('friends',$friends);45 $_SMARTY['friends'] = $friends; 46 46 } 47 47 ?> -
trunk/inc/my.inc.php
r1 r15 30 30 exit(); 31 31 */ 32 $ smarty->assign('Title', 'Home');32 $_SMARTY['Title'] = 'Home'; 33 33 34 34 $idx = 0; … … 94 94 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 95 95 96 $ smarty->assign('leftmenu',$leftmenu);96 $_SMARTY['leftmenu'] = $leftmenu; 97 97 98 98 99 99 /************************************/ 100 100 101 $ smarty->assign('my',$my);101 $_SMARTY['my'] = $my; 102 102 103 103 ?> -
trunk/inc/my/album.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Album');25 $_SMARTY['Title'] = 'Album'; 26 26 27 27 $album_r = $db->query('SELECT id_image, width, height, format, caption FROM album WHERE id=? ORDER BY date DESC', $_SESSION['my_id'] ); … … 49 49 } 50 50 51 $ smarty->assign('my',$my);52 $ smarty->assign('album', $album);51 $_SMARTY['my'] = $my; 52 $_SMARTY['album'] = $album; 53 53 54 54 ?> -
trunk/inc/my/album/edit.inc.php
r1 r15 26 26 if( is_numeric($token[3]) ) 27 27 { 28 $ smarty->assign('Title','Album');28 $_SMARTY['Title'] = 'Album'; 29 29 30 30 $image =& $db->getRow('SELECT id_image, width, height, format, caption FROM album WHERE id=? ORDER BY date DESC LIMIT !,1' , array($_SESSION['my_id'], ($token[3]-1))); … … 49 49 $my['album']['thumb']['height'] = $thumb_height; 50 50 51 $ smarty->assign('my',$my);51 $_SMARTY['my'] = $my; 52 52 } 53 53 else -
trunk/inc/my/album/view.inc.php
r1 r15 26 26 if( is_numeric($token[3]) ) 27 27 { 28 $ smarty->assign('Title','Album');28 $_SMARTY['Title'] = 'Album'; 29 29 30 30 $image = $db->getRow('SELECT id_image, width, height, format, caption FROM album WHERE id=? ORDER BY date DESC LIMIT !,1', array($_SESSION['my_id'], ($token[3]-1)) ); … … 33 33 $my['album']['image']['path'] = build_album_url($_SESSION['my_id'], $image['id_image'], $image['format']); 34 34 35 $ smarty->assign('my',$my);35 $_SMARTY['my'] = $my; 36 36 } 37 37 else -
trunk/inc/my/blog.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Blog');25 $_SMARTY['Title'] = 'Blog'; 26 26 27 27 $blogs = $db->query('SELECT id_blog, blog.id_cat,title, chapeau, ticket, date, status, blog_categorie.name as categorie, nb_comments FROM blog LEFT JOIN blog_categorie USING (id,id_cat) WHERE blog.id=? ORDER BY date DESC', $_SESSION['my_id'] ); … … 42 42 $my['blog_url'] = $db->getOne('SELECT rss FROM rss_blog WHERE id=?', array($_SESSION['my_id'])); 43 43 44 $ smarty->assign('my',$my);44 $_SMARTY['my'] = $my; 45 45 46 46 -
trunk/inc/my/blog/add.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Write a new ticket');25 $_SMARTY['Title'] = 'Write a new ticket'; 26 26 27 27 $cats = $db->query('SELECT id_cat, name, comment FROM blog_categorie WHERE id=?', $_SESSION['my_id'] ); … … 38 38 } 39 39 40 $ smarty->assign('my',$my);40 $_SMARTY['my'] = $my; 41 41 42 42 -
trunk/inc/my/blog/categorie.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title',"Manage blog's categories");25 $_SMARTY['Title'] = "Manage blog's categories"; 26 26 $cats = $db->query('SELECT id_cat, name, comment FROM blog_categorie WHERE id=?', $_SESSION['my_id'] ); 27 27 … … 33 33 $my['blog']['categorie'][$cat['id_cat']] = $cat; 34 34 35 $ smarty->assign('my', $my);35 $_SMARTY['my'] = $my; 36 36 ?> -
trunk/inc/my/blog/edit.inc.php
r1 r15 26 26 if( is_numeric($token[3]) ) 27 27 { 28 $ smarty->assign('Title','Edit Blog');28 $_SMARTY['Title'] = 'Edit Blog'; 29 29 30 30 $ticket =& $db->getRow('SELECT title,chapeau,ticket,id_cat,date,status FROM blog WHERE id=? ORDER BY date DESC LIMIT !,1', array($_SESSION['my_id'], ($token[3]-1)) ); … … 48 48 49 49 50 $ smarty->assign('my',$my);50 $_SMARTY['my'] = $my; 51 51 } 52 52 else -
trunk/inc/my/blog/view.inc.php
r1 r15 26 26 if( is_numeric($token[3]) ) 27 27 { 28 $ smarty->assign('Title','View blog');28 $_SMARTY['Title'] = 'View blog'; 29 29 30 30 $ticket =& $db->getRow('SELECT title,chapeau,ticket,date,`status` FROM blog LEFT JOIN blog_categorie USING (id,id_cat) WHERE blog.id=? ORDER BY date DESC LIMIT !,1', array($_SESSION['my_id'], ($token[3]-1)) ); … … 32 32 $my['blog']['ticket'] = $ticket; 33 33 34 $ smarty->assign('my',$my);34 $_SMARTY['my'] = $my; 35 35 } 36 36 else -
trunk/inc/my/bookmarks.inc.php
r1 r15 24 24 25 25 include(INCLUDESPATH.'/bookmarks.inc.php'); 26 $ smarty->assign('Title','Bookmarks');26 $_SMARTY['Title'] = 'Bookmarks'; 27 27 28 28 $links = $db->query('SELECT link, comment, id_cat FROM bookmarks WHERE id=?', array($_SESSION['my_id']) ); … … 47 47 $bookmarks_cat_parent = array('0'=>' - Root - '); 48 48 $bookmarks_cat_parent += $cats; 49 $ smarty->assign('my',$my);49 $_SMARTY['my'] = $my; 50 50 $smarty->assign_by_ref('bookmarks_cat',$bookmarks_cat); 51 51 $smarty->assign_by_ref('bookmarks_cat_parent',$bookmarks_cat_parent); -
trunk/inc/my/bookmarks/edit.inc.php
r1 r15 27 27 if( is_numeric($token[3]) ) 28 28 { 29 $ smarty->assign('Title','Bookmarks');29 $_SMARTY['Title'] = 'Bookmarks'; 30 30 31 31 $link =& $db->getRow('SELECT link, comment, id_cat FROM bookmarks WHERE id=? LIMIT !,1', array($_SESSION['my_id'], ($token[3]-1)) ); … … 50 50 51 51 52 $ smarty->assign('my',$my);52 $_SMARTY['my'] = $my; 53 53 } 54 54 else -
trunk/inc/my/password.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Password');25 $_SMARTY['Title'] = 'Password'; 26 26 ?> -
trunk/inc/my/profile/contact.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Contact Profile');25 $_SMARTY['Title'] = 'Contact Profile'; 26 26 27 27 $t_name = 'user_contact'; … … 63 63 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$user_contact->getUserInfo()); 64 64 65 $ smarty->assign('my',$my);65 $_SMARTY['my'] = $my; 66 66 67 67 -
trunk/inc/my/profile/contact/edit.inc.php
r1 r15 27 27 unset($labels['profile']['country']['(null)']); 28 28 29 $ smarty->assign('Title', "Edit my contact");29 $_SMARTY['Title'] = "Edit my contact"; 30 30 31 31 $t_name = 'user_contact'; … … 39 39 $access_list[$t_name] = get_access_list($_SESSION['my_id'], $t_name ); 40 40 41 $ smarty->assign('access_list',$access_list);41 $_SMARTY['access_list'] = $access_list; 42 42 43 $ smarty->assign('my', $my);43 $_SMARTY['my'] = $my; 44 44 45 45 ?> -
trunk/inc/my/profile/general.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','General Profile');25 $_SMARTY['Title'] = 'General Profile'; 26 26 27 27 if(!$_SESSION['my_photo']) … … 76 76 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$user_general->getUserInfo()); 77 77 78 $ smarty->assign('my',$my);78 $_SMARTY['my'] = $my; 79 79 80 80 -
trunk/inc/my/profile/general/edit.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', "Edit general profile");25 $_SMARTY['Title'] = "Edit general profile"; 26 26 27 27 $t_name = 'user_general'; … … 37 37 $access_list[$t_name] = get_access_list($_SESSION['my_id'], $t_name ); 38 38 39 $ smarty->assign('access_list',$access_list);40 $ smarty->assign('my', $my);39 $_SMARTY['access_list'] = $access_list; 40 $_SMARTY['my'] = $my; 41 41 42 42 ?> -
trunk/inc/my/profile/interests.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Interests Profile');25 $_SMARTY['Title'] = 'Interests Profile'; 26 26 27 27 /*if(!$_SESSION['my_profile_personal']) … … 64 64 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$user_interests->getUserInfo()); 65 65 66 $ smarty->assign('my',$my);66 $_SMARTY['my'] = $my; 67 67 68 68 -
trunk/inc/my/profile/interests/edit.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', "Edit interest profile");25 $_SMARTY['Title'] = "Edit interest profile"; 26 26 27 27 $t_name = 'user_interests'; … … 33 33 error_log($_SERVER['HTTP_HOST'].' | Erreyr SQL dans '.__FILE__.': '.$user_interests->getMessage()); 34 34 35 $ smarty->assign('my', $my);35 $_SMARTY['my'] = $my; 36 36 37 37 ?> -
trunk/inc/my/profile/personal.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Personal Profile');25 $_SMARTY['Title'] = 'Personal Profile'; 26 26 27 27 /*if(!$_SESSION['my_profile_interests']) … … 65 65 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$user_personal->getUserInfo()); 66 66 67 $ smarty->assign('my',$my);67 $_SMARTY['my'] = $my; 68 68 69 69 -
trunk/inc/my/profile/personal/edit.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', "Edit personal profile");25 $_SMARTY['Title'] = "Edit personal profile"; 26 26 27 27 $my['personal'] =& $db->getRow('SELECT headline ,notice ,size , eye ,hair ,body_art ,best_feature ,things_i_cant_live_without ,ideal_match FROM user_personal WHERE id=?', array($_SESSION['my_id'])); … … 31 31 error_log($_SERVER['HTTP_HOST'].' | Erreyr SQL dans '.__FILE__.': '.$user_personal->getMessage()); 32 32 33 $ smarty->assign('my', $my);33 $_SMARTY['my'] = $my; 34 34 35 35 ?> -
trunk/inc/my/profile/photo.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Photo');25 $_SMARTY['Title'] = 'Photo'; 26 26 ?> -
trunk/inc/my/profile/professional.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','Professional Profile');25 $_SMARTY['Title'] = 'Professional Profile'; 26 26 27 27 /*if(!$_SESSION['my_profile_general']) … … 65 65 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$user_professional->getUserInfo()); 66 66 67 $ smarty->assign('my',$my);67 $_SMARTY['my'] = $my; 68 68 69 69 -
trunk/inc/my/profile/professional/edit.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', "Edit professional profile");25 $_SMARTY['Title'] = "Edit professional profile"; 26 26 27 27 $t_name = 'user_professional'; … … 39 39 $access_list[$t_name] = get_access_list($_SESSION['my_id'], $t_name ); 40 40 41 $ smarty->assign('access_list',$access_list);42 $ smarty->assign('my', $my);41 $_SMARTY['access_list'] = $access_list; 42 $_SMARTY['my'] = $my; 43 43 44 44 ?> -
trunk/inc/my/profile/schools.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title','School course');25 $_SMARTY['Title'] = 'School course'; 26 26 27 27 /*if(!$_SESSION['my_profile_personal']) … … 68 68 error_log($_SERVER['HTTP_HOST'].' | '.__FILE__.' | '.$user_schools->getUserInfo()); 69 69 70 $ smarty->assign('my',$my);70 $_SMARTY['my'] = $my; 71 71 72 72 -
trunk/inc/my/profile/schools/add.inc.php
r1 r15 25 25 include(INCLUDESPATH.'/countries_list.inc.php'); 26 26 27 $ smarty->assign('Title', "Add a school");27 $_SMARTY['Title'] = "Add a school"; 28 28 ?> -
trunk/inc/my/profile/schools/edit.inc.php
r1 r15 25 25 include(INCLUDESPATH.'/countries_list.inc.php'); 26 26 27 $ smarty->assign('Title', "Edit a school");27 $_SMARTY['Title'] = "Edit a school"; 28 28 29 29 if( is_numeric($token[4]) ) … … 38 38 39 39 $my['schools']['year'] = $my['schools']['year']."-01-01"; 40 $ smarty->assign('my', $my);40 $_SMARTY['my'] = $my; 41 41 } 42 42 else -
trunk/inc/my/settings.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', "Edit my settings");25 $_SMARTY['Title'] = "Edit my settings"; 26 26 27 27 $t_name = 'settings'; … … 54 54 } 55 55 56 $ smarty->assign('my', $my);57 $ smarty->assign('css', $css);56 $_SMARTY['my'] = $my; 57 $_SMARTY['css'] = $css; 58 58 59 59 ?> -
trunk/inc/new.inc.php
r1 r15 30 30 } 31 31 32 $ smarty->assign('Title','Welcome');32 $_SMARTY['Title'] = 'Welcome'; 33 33 34 34 if(!$_SESSION['6nergies_login']) … … 37 37 $suggestion['login'] = $_SESSION['6nergies_login']; 38 38 39 $ smarty->assign('suggestion', $suggestion);39 $_SMARTY['suggestion'] = $suggestion; 40 40 ?> -
trunk/inc/new/profile.inc.php
r1 r15 41 41 42 42 43 $ smarty->assign('Title', 'Profile creation');43 $_SMARTY['Title'] = 'Profile creation'; 44 44 45 45 $step = array( … … 93 93 94 94 95 $ smarty->assign('access_list',$access_list);96 $ smarty->assign('my', $my);95 $_SMARTY['access_list'] = $access_list; 96 $_SMARTY['my'] = $my; 97 97 98 $ smarty->assign('step', $step);98 $_SMARTY['step'] = $step; 99 99 100 100 ?> -
trunk/inc/news.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'News');25 $_SMARTY['Title'] = 'News'; 26 26 27 27 $db_wiki =& DB::connect($dsn_wiki); … … 35 35 $db_wiki->disconnect(); 36 36 37 /* 38 $blog_r = $db->query(' 39 SELECT 40 blog.id, 41 cache_user.fname as fname, 42 cache_user.lname as lname, 43 id_blog, 44 title, 45 chapeau, 46 ticket, 47 date 48 FROM 49 blog,cache_user 50 WHERE 51 blog.id=cache_user.id AND 52 blog.status=? 53 ORDER BY date DESC 54 LIMIT 20 55 ', array('online')); 56 while($blog =& $blog_r->fetchRow()) 57 { 58 if(strlen($blog['ticket'])>100) 59 $blogs[$blog['date'].str_pad($blog['id_blog'],6,0)] =& $blog; 60 } 61 $blog_r = $db->query(' 62 SELECT 63 rss_blog_ticket.id, 64 cache_user.fname as fname, 65 cache_user.lname as lname, 66 id_blog, 67 title, 68 description as chapeau, 69 link, 70 date 71 FROM 72 rss_blog_ticket,cache_user 73 WHERE 74 rss_blog_ticket.id=cache_user.id AND 75 rss_blog_ticket.date<? 76 ORDER BY date DESC 77 LIMIT 20 78 ', array(time())); 79 while($blog =& $blog_r->fetchRow()) 80 { 81 if(strlen($blog['chapeau'])>100) 82 $blogs[$blog['date'].str_pad($blog['id_blog'],6,0)] =& $blog; 83 } 84 krsort($blogs); 85 86 $smarty->assign('blogs' , array_slice($blogs,0,15)); 87 88 */ 89 $smarty->assign('page' , $page); 37 $_SMARTY['page' ] = $page; 90 38 ?> -
trunk/inc/news/blog.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Last blog\'s tickets');25 $_SMARTY['Title'] = 'Last blog\'s tickets'; 26 26 27 27 if($token[2] == 'friends') … … 108 108 } 109 109 110 $ smarty->assign('blogs' , $blogs);110 $_SMARTY['blogs' ] = $blogs; 111 111 112 112 ?> -
trunk/inc/news/statistics.inc.php
r1 r15 64 64 } 65 65 66 $ smarty->assign('stats', $stats);66 $_SMARTY['stats'] = $stats; 67 67 ?> -
trunk/inc/profile.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Profile');25 $_SMARTY['Title'] = 'Profile'; 26 26 27 27 $user['info'] =& get_cache_user_info($url_id, NULL, true); … … 106 106 107 107 108 $ smarty->assign('leftmenu',$leftmenu);108 $_SMARTY['leftmenu'] = $leftmenu; 109 109 110 $ smarty->assign('user',$user);110 $_SMARTY['user'] = $user; 111 111 112 112 ?> -
trunk/inc/profile/communities.inc.php
r1 r15 24 24 25 25 26 $ smarty->assign('Title', 'Communities list');26 $_SMARTY['Title'] = 'Communities list'; 27 27 $community_r = $db->query('SELECT community.id as id, user_comm.id_comm as id_comm, name, description, nb_members FROM user_comm LEFT JOIN community USING (id_comm) WHERE user_comm.id=? AND user_comm.status=?', array($url_id,'ok')); 28 28 while($community = $community_r->fetchRow()) … … 34 34 $user['info'] = get_cache_user_info($url_id); 35 35 $user['photo'] = build_image_url($url_id); 36 $ smarty->assign('user', $user);36 $_SMARTY['user'] = $user; 37 37 38 38 /************* menu *******************/ … … 48 48 $leftmenu["/bookmarks/$url_id"] = 'Bookmarks'; 49 49 50 $ smarty->assign('leftmenu',$leftmenu);50 $_SMARTY['leftmenu'] = $leftmenu; 51 51 52 52 … … 54 54 55 55 56 $ smarty->assign('communities',$communities);56 $_SMARTY['communities'] = $communities; 57 57 58 58 ?> -
trunk/inc/pub.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Social Network');25 $_SMARTY['Title'] = 'Social Network'; 26 26 ?> -
trunk/inc/pub/help.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Help');25 $_SMARTY['Title'] = 'Help'; 26 26 27 27 $db_wiki =& DB::connect($dsn_wiki); … … 37 37 38 38 39 $ smarty->assign('page' , $page);39 $_SMARTY['page' ] = $page; 40 40 41 41 -
trunk/inc/pub/join.inc.php
r1 r15 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 $ smarty->assign('Title', 'Join');25 $_SMARTY['Title'] = 'Join'; 26 26 27 27 $db_wiki =& DB::connect($dsn_wiki); … … 39 39 40 40 41 $ smarty->assign('page' , $page);41 $_SMARTY['page' ] = $page; 42 42 43 43 ?> -
trunk/inc/search.inc.php
r1 r15 25 25 include(INCLUDESPATH.'/countries_list.inc.php'); 26 26 $labels['profile']['country'] = $db->getAssoc('SELECT DISTINCT country, country FROM user_contact'); 27 $ smarty->assign('Title', 'Find your soul mate');27 $_SMARTY['Title'] = 'Find your soul mate'; 28 28 29 29 $pagination['elmt_by_page'] = 20; … … 95 95 $idx++; 96 96 } 97 $where[] = $field.' IN ('.implode(',', array_fill(0,count($_GET['search'][$field]), '?')).')';97 $where[] = $field.' IN ('.implode(',', @array_fill(0,count($_GET['search'][$field]), '?')).')'; 98 98 unset($temp); 99 99 } … … 137 137 $pagination['nb_pages'] = 1; 138 138 139 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL);139 $pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 140 140 141 $ smarty->assign('pagination', $pagination);142 $ smarty->assign('search', $search);143 $ smarty->assign('result', $result);141 $_SMARTY['pagination'] = $pagination; 142 $_SMARTY['search'] = $search; 143 $_SMARTY['result'] = $result; 144 144 145 145 if(!$_GET['do']) -
trunk/inc/test.inc.php
r1 r15 37 37 $cal->add(time()); 38 38 39 $ smarty->assign('cal', $cal);39 $_SMARTY['cal'] = $cal; 40 40 41 41 ?> -
trunk/inc_dntp/history.inc.php
r1 r15 54 54 unset($day); unset($last_day); 55 55 56 $ smarty->assign('msgid', $msgid);57 $ smarty->assign('historic', $historic);56 $_SMARTY['msgid'] = $msgid; 57 $_SMARTY['historic'] = $historic; 58 58 ?> -
trunk/inc_dntp/language.inc.php
r1 r15 34 34 $stats['to_complet'] = $stats['nb_msgstr']*100/$stats['nb_msgid']; 35 35 36 $ smarty->assign('admin_login', $admin_login);37 $ smarty->assign('translators', $translators);38 $ smarty->assign('verificators', $verificators);39 $ smarty->assign('stats', $stats);36 $_SMARTY['admin_login'] = $admin_login; 37 $_SMARTY['translators'] = $translators; 38 $_SMARTY['verificators'] = $verificators; 39 $_SMARTY['stats'] = $stats; 40 40 41 41 -
trunk/inc_dntp/my.inc.php
r1 r15 46 46 } 47 47 unset($day); unset($last_day); 48 $ smarty->assign('waiting_entries', $waiting_entries);48 $_SMARTY['waiting_entries'] = $waiting_entries; 49 49 50 50 $nb_msgid = $db->getOne('SELECT COUNT(id) FROM dntp_msgid WHERE status=?', array('ok')); … … 56 56 $avancement[$c_lang] = array('msgid' => $nb_msgid, 'msgstr' => $nb_msgstr, 'score' => $nb_msgstr*100/$nb_msgid); 57 57 } 58 $ smarty->assign('nb_msgid', $nb_msgid);59 $ smarty->assign('avancement', $avancement);58 $_SMARTY['nb_msgid'] = $nb_msgid; 59 $_SMARTY['avancement'] = $avancement; 60 60 break; 61 61 … … 67 67 $avancement[$c_lang] = array('msgid' => $nb_msgid, 'msgstr' => $nb_msgstr, 'score' => $nb_msgstr*100/$nb_msgid); 68 68 69 $ smarty->assign('nb_msgid', $nb_msgid);70 $ smarty->assign('avancement', $avancement);69 $_SMARTY['nb_msgid'] = $nb_msgid; 70 $_SMARTY['avancement'] = $avancement; 71 71 72 72 … … 141 141 142 142 unset($day); unset($last_day); 143 $ smarty->assign('last_modifs', $last_modifs);144 $ smarty->assign('new_entries', $new_entries);143 $_SMARTY['last_modifs'] = $last_modifs; 144 $_SMARTY['new_entries'] = $new_entries; 145 145 break; 146 146 } -
trunk/inc_dntp/translate.inc.php
r1 r15 37 37 38 38 39 $ smarty->assign('msgid', $msgid);40 $ smarty->assign('msgstr', $msgstr);39 $_SMARTY['msgid'] = $msgid; 40 $_SMARTY['msgstr'] = $msgstr; 41 41 ?> -
trunk/inc_hp/album.inc.php
r1 r15 31 31 } 32 32 33 $ smarty->assign('albums', $albums);33 $_SMARTY['albums'] = $albums; 34 34 ?> -
trunk/inc_hp/blog.inc.php
r1 r15 30 30 $rss_blog['item'][$ticket['link']] = $ticket; 31 31 32 $ smarty->assign('rss_blog',$rss_blog);32 $_SMARTY['rss_blog'] = $rss_blog; 33 33 } 34 34 else … … 43 43 } 44 44 45 $ smarty->assign('blogs', $blogs);45 $_SMARTY['blogs'] = $blogs; 46 46 } 47 47 ?> -
trunk/inc_hp/blog/view.inc.php
r1 r15 57 57 error_log($comments_r->getUserInfo()); 58 58 59 $ smarty->assign('profile', $user);60 $ smarty->assign('blog', $blog);59 $_SMARTY['profile'] = $user; 60 $_SMARTY['blog'] = $blog; 61 61 62 62 ?> -
trunk/inc_hp/bookmarks.inc.php
r1 r15 29 29 } 30 30 31 $ smarty->assign('bookmarks', $bookmarks);31 $_SMARTY['bookmarks'] = $bookmarks; 32 32 ?> -
trunk/inc_hp/friends.inc.php
r1 r15 26 26 $friends[$friend_id] = get_cache_user_info($friend_id, 'id, login, fname, lname, photo'); 27 27 28 $ smarty->assign('friends', $friends);28 $_SMARTY['friends'] = $friends; 29 29 ?> -
trunk/inc_hp/index.inc.php
r1 r15 36 36 $rss_blog['item'][$ticket['link']] = $ticket; 37 37 38 $ smarty->assign('rss_blog',$rss_blog);38 $_SMARTY['rss_blog'] = $rss_blog; 39 39 } 40 40 else … … 49 49 } 50 50 51 $ smarty->assign('blogs', $blogs);51 $_SMARTY['blogs'] = $blogs; 52 52 } 53 53 … … 83 83 84 84 85 $ smarty->assign('blogs', $blogs);86 $ smarty->assign('albums', $albums);87 $ smarty->assign('bookmarks', $bookmarks);88 $ smarty->assign('friends', $friends);85 $_SMARTY['blogs'] = $blogs; 86 $_SMARTY['albums'] = $albums; 87 $_SMARTY['bookmarks'] = $bookmarks; 88 $_SMARTY['friends'] = $friends; 89 89 90 90 -
trunk/inc_xml/rdf/communities.rdf.inc.php
r1 r15 27 27 $comms = $db->getAssoc('SELECT community.id_comm AS id, name, description FROM community,user_comm WHERE community.id_comm=user_comm.id_comm AND user_comm.id=?', true, array($_SESSION['my_id'])); 28 28 29 $ smarty->assign('communities',$comms);29 $_SMARTY['communities'] = $comms; 30 30 31 31 ?> -
trunk/inc_xml/rdf/friends.rdf.inc.php
r1 r15 27 27 $friends = $db->getAssoc('SELECT cache_user.id AS id, fname, lname, nick FROM cache_user,relation WHERE cache_user.id=relation.id_friend AND relation.id=?', true, array($_SESSION['my_id'])); 28 28 29 $ smarty->assign('friends',$friends);29 $_SMARTY['friends'] = $friends; 30 30 ?> -
trunk/includes/functions.inc.php
r14 r15 308 308 309 309 } 310 else 311 $info['friends_id'] = array(); 310 312 311 313 if(array_key_exists('communities_id', $info) && $info['communities_id'] != NULL) … … 314 316 else 315 317 $info['communities_id'] = array($info['communities_id']); 318 else 319 $info['communities_id'] = array(); 316 320 return $info; 317 321 } -
trunk/smarty/templates/communities/viewTopic.tpl
r1 r15 49 49 </tr> 50 50 {/foreach} 51 {if $ member}51 {if $is_member} 52 52 <tr class='{cycle name='topic' values='even,odd'}'> 53 53 <td align='right' colspan='2'><a class='button' href='/communities/replyTopic/{$token[2]}'>{t}Reply to topic{/t}</a></td>
