Przeglądaj źródła

[svn r14614] search the forum

Patrick Cool 17 lat temu
rodzic
commit
9dbeaa3b5f
1 zmienionych plików z 86 dodań i 0 usunięć
  1. 86 0
      main/forum/forumsearch.php

+ 86 - 0
main/forum/forumsearch.php

@@ -0,0 +1,86 @@
+<?php 
+/*
+==============================================================================
+	Dokeos - elearning and course management software
+
+	Copyright (c) 2006 Dokeos S.A.
+	Copyright (c) 2006 Ghent University (UGent)
+
+	For a full list of contributors, see "credits.txt".
+	The full license can be read in "license.txt".
+
+	This program is free software; you can redistribute it and/or
+	modify it under the terms of the GNU General Public License
+	as published by the Free Software Foundation; either version 2
+	of the License, or (at your option) any later version.
+
+	See the GNU General Public License for more details.
+
+	Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
+	Mail: info@dokeos.com
+==============================================================================
+*/
+
+/**
+*	These files are a complete rework of the forum. The database structure is
+*	based on phpBB but all the code is rewritten. A lot of new functionalities
+*	are added:
+* 	- forum categories and forums can be sorted up or down, locked or made invisible
+*	- consistent and integrated forum administration
+* 	- forum options: 	are students allowed to edit their post?
+* 						moderation of posts (approval)
+* 						reply only forums (students cannot create new threads)
+* 						multiple forums per group
+*	- sticky messages
+* 	- new view option: nested view
+* 	- quoting a message
+*
+*	@Author Patrick Cool <patrick.cool@UGent.be>, Ghent University
+*	@Copyright Ghent University
+*	@Copyright Patrick Cool
+*
+* 	@package dokeos.forum
+*/
+
+// name of the language file that needs to be included
+$language_file = 'forum';
+
+// including the global dokeos file
+require ('../inc/global.inc.php');
+
+// the section (tabs)
+$this_section=SECTION_COURSES;
+
+// including additional library scripts
+require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
+include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php');
+include(api_get_path(LIBRARY_PATH).'events.lib.inc.php');
+include('forumfunction.inc.php');
+include('forumconfig.inc.php');
+
+
+// name of the tool
+$nameTools=get_lang('Forum');
+
+// breadcrumbs
+$interbreadcrumb[]=array('url' => 'index.php','name' => $nameTools);
+$interbreadcrumb[]=array('url' => 'forumsearch.php','name' => get_lang('ForumSearch'));
+
+// Display the header
+Display :: display_header();
+
+// Display the tool title
+api_display_tool_title($nameTools);
+
+// tool introduction
+Display::display_introduction_section(TOOL_FORUM);
+
+// tracking
+event_access_tool(TOOL_FORUM);
+
+// forum search
+forum_search();
+
+// footer
+Display::display_footer();
+?>