group_space.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This script shows the group space for one specific group, possibly displaying
  5. * a list of users in the group, subscribe or unsubscribe option, tutors...
  6. *
  7. * @package chamilo.group
  8. * @todo Display error message if no group ID specified
  9. */
  10. require_once __DIR__.'/../inc/global.inc.php';
  11. $current_course_tool = TOOL_GROUP;
  12. // Notice for unauthorized people.
  13. api_protect_course_script(true);
  14. /* Libraries & config files */
  15. require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php';
  16. require_once api_get_path(SYS_CODE_PATH).'forum/forumconfig.inc.php';
  17. /* MAIN CODE */
  18. $group_id = api_get_group_id();
  19. $user_id = api_get_user_id();
  20. $current_group = GroupManager::get_group_properties($group_id);
  21. if (empty($current_group)) {
  22. api_not_allowed(true);
  23. }
  24. $this_section = SECTION_COURSES;
  25. $nameTools = get_lang('GroupSpace');
  26. $interbreadcrumb[] = array('url' => 'group.php?'.api_get_cidreq(), 'name' => get_lang('Groups'));
  27. /* Ensure all private groups // Juan Carlos Raña Trabado */
  28. $forums_of_groups = get_forums_of_group($current_group);
  29. if (!GroupManager::userHasAccessToBrowse($user_id, $current_group, api_get_session_id())) {
  30. api_not_allowed(true);
  31. }
  32. /* Actions and Action links */
  33. /*
  34. * User wants to register in this group
  35. */
  36. if (!empty($_GET['selfReg']) &&
  37. GroupManager :: is_self_registration_allowed($user_id, $current_group)
  38. ) {
  39. GroupManager :: subscribe_users($user_id, $current_group);
  40. Display::addFlash(Display::return_message(get_lang('GroupNowMember'), 'normal'));
  41. }
  42. /*
  43. * User wants to unregister from this group
  44. */
  45. if (!empty($_GET['selfUnReg']) &&
  46. GroupManager :: is_self_unregistration_allowed($user_id, $current_group)
  47. ) {
  48. GroupManager::unsubscribe_users($user_id, $current_group);
  49. Display::addFlash(
  50. Display::return_message(get_lang('StudentDeletesHimself'), 'normal')
  51. );
  52. }
  53. Display::display_header(
  54. $nameTools.' '.Security::remove_XSS($current_group['name']),
  55. 'Group'
  56. );
  57. /* Introduction section (editable by course admin) */
  58. Display::display_introduction_section(TOOL_GROUP);
  59. echo '<div class="actions">';
  60. echo '<a href="group.php">'.
  61. Display::return_icon('back.png', get_lang('BackToGroupList'), '', ICON_SIZE_MEDIUM).
  62. '</a>';
  63. /*
  64. * Register to group
  65. */
  66. $subscribe_group = '';
  67. if (GroupManager :: is_self_registration_allowed($user_id, $current_group)) {
  68. $subscribe_group = '<a class="btn btn-default" href="'.api_get_self().'?selfReg=1&group_id='.$current_group['id'].'" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."'".')) return false;">'.
  69. get_lang("RegIntoGroup").'</a>';
  70. }
  71. /*
  72. * Unregister from group
  73. */
  74. $unsubscribe_group = '';
  75. if (GroupManager :: is_self_unregistration_allowed($user_id, $current_group)) {
  76. $unsubscribe_group = '<a class="btn btn-default" href="'.api_get_self().'?selfUnReg=1" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."'".')) return false;">'.
  77. get_lang("StudentUnsubscribe").'</a>';
  78. }
  79. echo '&nbsp;</div>';
  80. /* Main Display Area */
  81. $edit_url = '';
  82. if (api_is_allowed_to_edit(false, true) ||
  83. GroupManager::is_tutor_of_group(api_get_user_id(), $current_group)
  84. ) {
  85. $edit_url = '<a href="'.api_get_path(WEB_CODE_PATH).'group/settings.php?'.api_get_cidreq().'">'.
  86. Display::return_icon('edit.png', get_lang('EditGroup'), '', ICON_SIZE_SMALL).'</a>';
  87. }
  88. echo Display::page_header(
  89. Security::remove_XSS($current_group['name']).' '.$edit_url.' '.$subscribe_group.' '.$unsubscribe_group
  90. );
  91. if (!empty($current_group['description'])) {
  92. echo '<p>'.Security::remove_XSS($current_group['description']).'</p>';
  93. }
  94. /*
  95. * Group Tools
  96. */
  97. // If the user is subscribed to the group or the user is a tutor of the group then
  98. if (api_is_allowed_to_edit(false, true) ||
  99. GroupManager::is_user_in_group(api_get_user_id(), $current_group)
  100. ) {
  101. $actions_array = array();
  102. // Link to the forum of this group
  103. $forums_of_groups = get_forums_of_group($current_group);
  104. if (is_array($forums_of_groups)) {
  105. if ($current_group['forum_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  106. foreach ($forums_of_groups as $key => $value) {
  107. if ($value['forum_group_public_private'] == 'public' ||
  108. ($value['forum_group_public_private'] == 'private') ||
  109. !empty($user_is_tutor) ||
  110. api_is_allowed_to_edit(false, true)
  111. ) {
  112. $actions_array[] = array(
  113. 'url' => api_get_path(WEB_CODE_PATH).'forum/viewforum.php?forum='.$value['forum_id'].'&'.api_get_cidreq().'&origin=group',
  114. 'content' => Display::return_icon(
  115. 'forum.png',
  116. get_lang('Forum').': '.$value['forum_title'],
  117. array(),
  118. 32
  119. ),
  120. );
  121. }
  122. }
  123. }
  124. }
  125. if ($current_group['doc_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  126. // Link to the documents area of this group
  127. $actions_array[] = array(
  128. 'url' => api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq(),
  129. 'content' => Display::return_icon('folder.png', get_lang('GroupDocument'), array(), 32)
  130. );
  131. }
  132. if ($current_group['calendar_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  133. $groupFilter = '';
  134. if (!empty($group_id)) {
  135. $groupFilter = "&type=course&user_id=GROUP:$group_id";
  136. }
  137. // Link to a group-specific part of agenda
  138. $actions_array[] = array(
  139. 'url' => api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?'.api_get_cidreq().$groupFilter,
  140. 'content' => Display::return_icon('agenda.png', get_lang('GroupCalendar'), array(), 32)
  141. );
  142. }
  143. if ($current_group['work_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  144. // Link to the works area of this group
  145. $actions_array[] = array(
  146. 'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
  147. 'content' => Display::return_icon('work.png', get_lang('GroupWork'), array(), 32)
  148. );
  149. }
  150. if ($current_group['announcements_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  151. // Link to a group-specific part of announcements
  152. $actions_array[] = array(
  153. 'url' => api_get_path(WEB_CODE_PATH).'announcements/announcements.php?'.api_get_cidreq(),
  154. 'content' => Display::return_icon('announce.png', get_lang('GroupAnnouncements'), array(), 32)
  155. );
  156. }
  157. if ($current_group['wiki_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  158. // Link to the wiki area of this group
  159. $actions_array[] = array(
  160. 'url' => api_get_path(WEB_CODE_PATH).'wiki/index.php?'.api_get_cidreq().'&action=show&title=index&session_id='.api_get_session_id().'&group_id='.$current_group['id'],
  161. 'content' => Display::return_icon('wiki.png', get_lang('GroupWiki'), array(), 32)
  162. );
  163. }
  164. if ($current_group['chat_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  165. // Link to the chat area of this group
  166. if (api_get_course_setting('allow_open_chat_window')) {
  167. $actions_array[] = array(
  168. 'url' => "javascript: void(0);",
  169. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32),
  170. 'url_attributes' => array(
  171. 'onclick' => " window.open('../chat/chat.php?".api_get_cidreq()."&toolgroup=".$current_group['id']."','window_chat_group_".api_get_course_id()."_".api_get_group_id()."','height=380, width=625, left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no')"
  172. )
  173. );
  174. } else {
  175. $actions_array[] = array(
  176. 'url' => api_get_path(WEB_CODE_PATH)."chat/chat.php?".api_get_cidreq()."&toolgroup=".$current_group['id'],
  177. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  178. );
  179. }
  180. }
  181. $enabled = api_get_plugin_setting('bbb', 'tool_enable');
  182. if ($enabled === 'true') {
  183. $bbb = new bbb();
  184. if ($bbb->hasGroupSupport()) {
  185. $actions_array[] = array(
  186. 'url' => api_get_path(WEB_PLUGIN_PATH)."bbb/start.php?".api_get_cidreq(),
  187. 'content' => Display::return_icon('bbb.png', get_lang('VideoConference'), array(), 32)
  188. );
  189. }
  190. }
  191. if (!empty($actions_array)) {
  192. echo Display::actions($actions_array);
  193. }
  194. } else {
  195. $actions_array = array();
  196. // Link to the forum of this group
  197. $forums_of_groups = get_forums_of_group($current_group);
  198. if (is_array($forums_of_groups)) {
  199. if ($current_group['forum_state'] == GroupManager::TOOL_PUBLIC) {
  200. foreach ($forums_of_groups as $key => $value) {
  201. if ($value['forum_group_public_private'] == 'public') {
  202. $actions_array[] = array(
  203. 'url' => api_get_path(WEB_CODE_PATH).'forum/viewforum.php?cidReq='.api_get_course_id().'&forum='.$value['forum_id'].'&gidReq='.Security::remove_XSS($current_group['id']).'&origin=group',
  204. 'content' => Display::return_icon('forum.png', get_lang('GroupForum'), array(), ICON_SIZE_MEDIUM)
  205. );
  206. }
  207. }
  208. }
  209. }
  210. if ($current_group['doc_state'] == GroupManager::TOOL_PUBLIC) {
  211. // Link to the documents area of this group
  212. $actions_array[] = array(
  213. 'url' => api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq(),
  214. 'content' => Display::return_icon('folder.png', get_lang('GroupDocument'), array(), ICON_SIZE_MEDIUM)
  215. );
  216. }
  217. if ($current_group['calendar_state'] == GroupManager::TOOL_PUBLIC) {
  218. $groupFilter = '';
  219. if (!empty($group_id)) {
  220. $groupFilter = "&type=course&user_id=GROUP:$group_id";
  221. }
  222. // Link to a group-specific part of agenda
  223. $actions_array[] = array(
  224. 'url' => api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?'.api_get_cidreq().$groupFilter,
  225. 'content' => Display::return_icon('agenda.png', get_lang('GroupCalendar'), array(), 32)
  226. );
  227. }
  228. if ($current_group['work_state'] == GroupManager::TOOL_PUBLIC) {
  229. // Link to the works area of this group
  230. $actions_array[] = array(
  231. 'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
  232. 'content' => Display::return_icon('work.png', get_lang('GroupWork'), array(), ICON_SIZE_MEDIUM)
  233. );
  234. }
  235. if ($current_group['announcements_state'] == GroupManager::TOOL_PUBLIC) {
  236. // Link to a group-specific part of announcements
  237. $actions_array[] = array(
  238. 'url' => api_get_path(WEB_CODE_PATH).'announcements/announcements.php?'.api_get_cidreq(),
  239. 'content' => Display::return_icon('announce.png', get_lang('GroupAnnouncements'), array(), ICON_SIZE_MEDIUM)
  240. );
  241. }
  242. if ($current_group['wiki_state'] == GroupManager::TOOL_PUBLIC) {
  243. // Link to the wiki area of this group
  244. $actions_array[] = array(
  245. 'url' => api_get_path(WEB_CODE_PATH).'wiki/index.php?'.api_get_cidreq().'&action=show&title=index&session_id='.api_get_session_id().'&group_id='.$current_group['id'],
  246. 'content' => Display::return_icon('wiki.png', get_lang('GroupWiki'), array(), 32)
  247. );
  248. }
  249. if ($current_group['chat_state'] == GroupManager::TOOL_PUBLIC) {
  250. // Link to the chat area of this group
  251. if (api_get_course_setting('allow_open_chat_window')) {
  252. $actions_array[] = array(
  253. 'url' => "javascript: void(0);\" onclick=\"window.open('../chat/chat.php?".api_get_cidreq()."&toolgroup=".$current_group['id']."','window_chat_group_".api_get_course_id()."_".api_get_group_id()."','height=380, width=625, left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no') \"",
  254. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  255. );
  256. } else {
  257. $actions_array[] = array(
  258. 'url' => api_get_path(WEB_CODE_PATH)."chat/chat.php?".api_get_cidreq()."&toolgroup=".$current_group['id'],
  259. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  260. );
  261. }
  262. }
  263. if (!empty($actions_array)) {
  264. echo Display::actions($actions_array);
  265. }
  266. }
  267. /*
  268. * List all the tutors of the current group
  269. */
  270. $tutors = GroupManager::get_subscribed_tutors($current_group);
  271. $tutor_info = '';
  272. if (count($tutors) == 0) {
  273. $tutor_info = get_lang('GroupNoneMasc');
  274. } else {
  275. $tutor_info .= '<ul class="thumbnails">';
  276. foreach ($tutors as $index => $tutor) {
  277. $userInfo = api_get_user_info($tutor['user_id']);
  278. $username = api_htmlentities(sprintf(get_lang('LoginX'), $userInfo['username']), ENT_QUOTES);
  279. $completeName = $userInfo['complete_name'];
  280. $photo = '<img src="'.$userInfo['avatar'].'" alt="'.$completeName.'" width="32" height="32" title="'.$completeName.'" />';
  281. $tutor_info .= '<li>';
  282. $tutor_info .= $userInfo['complete_name_with_message_link'];
  283. $tutor_info .= '</li>';
  284. }
  285. $tutor_info .= '</ul>';
  286. }
  287. echo Display::page_subheader(get_lang('GroupTutors'));
  288. if (!empty($tutor_info)) {
  289. echo $tutor_info;
  290. }
  291. echo '<br />';
  292. /*
  293. * List all the members of the current group
  294. */
  295. echo Display::page_subheader(get_lang('GroupMembers'));
  296. $table = new SortableTable(
  297. 'group_users',
  298. 'get_number_of_group_users',
  299. 'get_group_user_data',
  300. (api_is_western_name_order() xor api_sort_by_first_name()) ? 2 : 1
  301. );
  302. $origin = api_get_origin();
  303. $my_cidreq = isset($_GET['cidReq']) ? Security::remove_XSS($_GET['cidReq']) : '';
  304. $my_gidreq = isset($_GET['gidReq']) ? Security::remove_XSS($_GET['gidReq']) : '';
  305. $parameters = array('cidReq' => $my_cidreq, 'origin'=> $origin, 'gidReq' => $my_gidreq);
  306. $table->set_additional_parameters($parameters);
  307. $table->set_header(0, '');
  308. if (api_is_western_name_order()) {
  309. $table->set_header(1, get_lang('FirstName'));
  310. $table->set_header(2, get_lang('LastName'));
  311. } else {
  312. $table->set_header(1, get_lang('LastName'));
  313. $table->set_header(2, get_lang('FirstName'));
  314. }
  315. if (api_get_setting('show_email_addresses') == 'true') {
  316. $table->set_header(3, get_lang('Email'));
  317. $table->set_column_filter(3, 'email_filter');
  318. } else {
  319. if (api_is_allowed_to_edit() == 'true') {
  320. $table->set_header(3, get_lang('Email'));
  321. $table->set_column_filter(3, 'email_filter');
  322. }
  323. }
  324. //the order of these calls is important
  325. //$table->set_column_filter(1, 'user_name_filter');
  326. //$table->set_column_filter(2, 'user_name_filter');
  327. $table->set_column_filter(0, 'user_icon_filter');
  328. $table->display();
  329. /**
  330. * Get the number of subscribed users to the group
  331. *
  332. * @return integer
  333. *
  334. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium
  335. * @version April 2008
  336. */
  337. function get_number_of_group_users()
  338. {
  339. $groupInfo = GroupManager::get_group_properties(api_get_group_id());
  340. $course_id = api_get_course_int_id();
  341. if (empty($groupInfo) || empty($course_id)) {
  342. return 0;
  343. }
  344. // Database table definition
  345. $table = Database::get_course_table(TABLE_GROUP_USER);
  346. // Query
  347. $sql = "SELECT count(iid) AS number_of_users
  348. FROM $table
  349. WHERE
  350. c_id = $course_id AND
  351. group_id = '".intval($groupInfo['iid'])."'";
  352. $result = Database::query($sql);
  353. $return = Database::fetch_array($result, 'ASSOC');
  354. return $return['number_of_users'];
  355. }
  356. /**
  357. * Get the details of the users in a group
  358. *
  359. * @param integer $from starting row
  360. * @param integer $number_of_items number of items to be displayed
  361. * @param integer $column sorting colum
  362. * @param integer $direction sorting direction
  363. * @return array
  364. *
  365. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium
  366. * @version April 2008
  367. */
  368. function get_group_user_data($from, $number_of_items, $column, $direction)
  369. {
  370. $groupInfo = GroupManager::get_group_properties(api_get_group_id());
  371. $course_id = api_get_course_int_id();
  372. if (empty($groupInfo) || empty($course_id)) {
  373. return 0;
  374. }
  375. // Database table definition
  376. $table_group_user = Database::get_course_table(TABLE_GROUP_USER);
  377. $table_user = Database::get_main_table(TABLE_MAIN_USER);
  378. $tableGroup = Database::get_course_table(TABLE_GROUP);
  379. // Query
  380. if (api_get_setting('show_email_addresses') === 'true') {
  381. $sql = "SELECT user.id AS col0,
  382. ".(api_is_western_name_order() ?
  383. "user.firstname AS col1,
  384. user.lastname AS col2,"
  385. :
  386. "user.lastname AS col1,
  387. user.firstname AS col2,"
  388. )."
  389. user.email AS col3
  390. FROM $table_user user INNER JOIN
  391. $table_group_user group_rel_user
  392. ON (group_rel_user.user_id = user.id)
  393. INNER JOIN $tableGroup g
  394. ON (group_rel_user.group_id = g.id)
  395. WHERE
  396. group_rel_user.c_id = $course_id AND
  397. g.iid = '".$groupInfo['iid']."'
  398. ORDER BY col$column $direction
  399. LIMIT $from, $number_of_items";
  400. } else {
  401. if (api_is_allowed_to_edit()) {
  402. $sql = "SELECT DISTINCT
  403. u.id AS col0,
  404. ".(api_is_western_name_order() ?
  405. "u.firstname AS col1,
  406. u.lastname AS col2,"
  407. :
  408. "u.lastname AS col1,
  409. u.firstname AS col2,")."
  410. u.email AS col3
  411. FROM $table_user u
  412. INNER JOIN $table_group_user gu
  413. ON (gu.user_id = u.id)
  414. INNER JOIN $tableGroup g
  415. ON (gu.group_id = g.id)
  416. WHERE
  417. g.iid = '".$groupInfo['iid']."' AND
  418. gu.c_id = $course_id
  419. ORDER BY col$column $direction
  420. LIMIT $from, $number_of_items";
  421. } else {
  422. $sql = "SELECT DISTINCT
  423. user.id AS col0,
  424. ". (api_is_western_name_order() ?
  425. "user.firstname AS col1,
  426. user.lastname AS col2 "
  427. :
  428. "user.lastname AS col1,
  429. user.firstname AS col2 "
  430. )."
  431. FROM $table_user user
  432. INNER JOIN $table_group_user group_rel_user
  433. ON (group_rel_user.user_id = user.id)
  434. INNER JOIN $tableGroup g
  435. ON (group_rel_user.group_id = g.id)
  436. WHERE
  437. g.iid = '".$groupInfo['iid']."' AND
  438. group_rel_user.c_id = $course_id AND
  439. group_rel_user.user_id = user.id AND
  440. g.iid = '".$groupInfo['iid']."'
  441. ORDER BY col$column $direction
  442. LIMIT $from, $number_of_items";
  443. }
  444. }
  445. $return = array();
  446. $result = Database::query($sql);
  447. while ($row = Database::fetch_row($result)) {
  448. $return[] = $row;
  449. }
  450. return $return;
  451. }
  452. /**
  453. * Returns a mailto-link
  454. * @param string $email An email-address
  455. * @return string HTML-code with a mailto-link
  456. */
  457. function email_filter($email)
  458. {
  459. return Display :: encrypted_mailto_link($email, $email);
  460. }
  461. /**
  462. * Display a user icon that links to the user page
  463. *
  464. * @param integer $user_id the id of the user
  465. * @return string code
  466. *
  467. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium
  468. * @version April 2008
  469. */
  470. function user_icon_filter($user_id)
  471. {
  472. $userInfo = api_get_user_info($user_id);
  473. $photo = '<img src="'.$userInfo['avatar'].'" alt="'.$userInfo['complete_name'].'" width="22" height="22" title="'.$userInfo['complete_name'].'" />';
  474. return Display::url($photo, $userInfo['profile_url']);
  475. }
  476. /**
  477. * Return user profile link around the given user name.
  478. *
  479. * The parameters use a trick of the sorteable table, where the first param is
  480. * the original value of the column
  481. * @param string User name (value of the column at the time of calling)
  482. * @param string URL parameters
  483. * @param array Row of the "sortable table" as it is at the time of function call - we extract the user ID from there
  484. * @return string HTML link
  485. */
  486. function user_name_filter($name, $url_params, $row)
  487. {
  488. $userInfo = api_get_user_info($row[0]);
  489. return UserManager::getUserProfileLink($userInfo);
  490. }
  491. if ($origin != 'learnpath') {
  492. Display::display_footer();
  493. }