group.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /* GNU FM -- a free network service for sharing your music listening habits
  3. Copyright (C) 2009 Free Software Foundation, Inc
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. require_once('database.php');
  16. require_once('templating.php');
  17. require_once('data/Group.php');
  18. require_once('data/TagCloud.php');
  19. require_once('data/Server.php');
  20. ?><h1>Groups are disabled</h1><?php
  21. // if (! $_GET['group'])
  22. // {
  23. // $smarty->assign('groups', Group::groupList());
  24. // $smarty->assign('extra_head_links', array(
  25. // array(
  26. // 'rel' => 'meta',
  27. // 'type' => 'application/rdf+xml' ,
  28. // 'title' => 'FOAF',
  29. // 'href' => $base_url.'/rdf.php?fmt=xml&page='.urlencode(str_replace($base_url, '', $_SERVER['REQUEST_URI']))
  30. // )
  31. // ));
  32. // try {
  33. // $aTagCloud = TagCloud::GenerateTagCloud(TagCloud::scrobblesTable(), 'artist');
  34. // $smarty->assign('tagcloud', $aTagCloud);
  35. // } catch (exception $e) {}
  36. // $smarty->display('group-list.tpl');
  37. // exit;
  38. // }
  39. // $group = new Group($_GET['group']);
  40. // if ($_GET['action'] && isset($this_user))
  41. // {
  42. // if ($_GET['action'] == 'join')
  43. // $group->memberJoin($this_user);
  44. // elseif ($_GET['action'] == 'leave')
  45. // $group->memberLeave($this_user);
  46. // header('Location: ' . $group->getURL());
  47. // exit;
  48. // }
  49. // if(isset($group->name)) {
  50. // $smarty->assign('id', $group->id);
  51. // $smarty->assign('group', $group->name);
  52. // $smarty->assign('fullname', $group->fullname);
  53. // $smarty->assign('bio', $group->bio);
  54. // $smarty->assign('homepage', $group->homepage);
  55. // $smarty->assign('avatar', $group->getAvatar());
  56. // try {
  57. // $aUserTagCloud = $group->tagCloudData();
  58. // $smarty->assign('group_tagcloud',$aUserTagCloud);
  59. // } catch (exception $e) {}
  60. // $smarty->assign('userlist', $group->getUsers());
  61. // $smarty->assign('ismember', $group->memberCheck($this_user));
  62. // $smarty->assign('isowner', ($group->owner->name==$this_user->name));
  63. // $smarty->assign('link_join', $group->getURLAction('join'));
  64. // $smarty->assign('link_leave', $group->getURLAction('leave'));
  65. // $smarty->assign('link_edit', $base_url.'/edit_group.php?group='.$group->name);
  66. // $smarty->assign('link', $group->getURL());
  67. // $smarty->assign('extra_head_links', array(
  68. // array(
  69. // 'rel' => 'meta',
  70. // 'type' => 'application/rdf+xml' ,
  71. // 'title' => 'FOAF',
  72. // 'href' => $base_url.'/rdf.php?fmt=xml&page='.urlencode(str_replace($base_url, '', $_SERVER['REQUEST_URI']))
  73. // )
  74. // ));
  75. // $smarty->assign('profile', true);
  76. // $smarty->display('group.tpl');
  77. // } else {
  78. // $smarty->assign('error', 'Group not found');
  79. // $smarty->assign('details', 'Shall I call in a missing peoples report?');
  80. // $smarty->display('error.tpl');
  81. // }