From 5026842d9517ccdcdca83a27a6030e18969cfb3b Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 24 May 2010 15:07:24 +0200 Subject: [PATCH] Cleaning files --- main/forum/download.php | 23 ++++++----------- main/forum/editpost.php | 46 +++++++++------------------------- main/forum/forumconfig.inc.php | 6 ----- 3 files changed, 20 insertions(+), 55 deletions(-) diff --git a/main/forum/download.php b/main/forum/download.php index e1dcb8afee..0610e5f50d 100755 --- a/main/forum/download.php +++ b/main/forum/download.php @@ -1,29 +1,25 @@ - @@ -86,14 +79,10 @@ $htmlHeadXtra[] = ''; /* -============================================================================== MAIN DISPLAY SECTION -============================================================================== */ /* ------------------------------------------------------------ Retrieving forum and forum categorie information ------------------------------------------------------------ */ // we are getting all the information about the current forum and forum category. // note pcool: I tried to use only one sql statement (and function) for this @@ -103,9 +92,7 @@ $current_forum=get_forum_information($_GET['forum']); // note: this has to be va $current_forum_category=get_forumcategory_information($current_forum['forum_category']); $current_post=get_post_information($_GET['post']); /* ------------------------------------------------------------ Header and Breadcrumbs ------------------------------------------------------------ */ if (isset($_SESSION['gradebook'])){ $gradebook= $_SESSION['gradebook']; @@ -136,9 +123,7 @@ if (!empty($_SESSION['toolgroup'])) { $interbreadcrumb[]=array("url" => "javascript: void (0);","name" => get_lang('EditPost')); } /* ------------------------------------------------------------ Resource Linker ------------------------------------------------------------ */ if (isset($_POST['add_resources']) AND $_POST['add_resources']==get_lang('Resources')) { $_SESSION['formelements']=$_POST; @@ -148,9 +133,7 @@ if (isset($_POST['add_resources']) AND $_POST['add_resources']==get_lang('Resour } $table_link = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINK); /* ------------------------------------------------------------ Header ------------------------------------------------------------ */ //are we in a lp ? $origin = ''; @@ -166,9 +149,7 @@ if ($origin=='learnpath') { } //echo ''; /* ------------------------------------------------------------ Is the user allowed here? ------------------------------------------------------------ */ // the user is not allowed here if // 1. the forumcategory, forum or thread is invisible (visibility==0) @@ -214,9 +195,7 @@ if ($origin!='learnpath') { } /* ------------------------------------------------------------ Display Forum Category and the Forum information ------------------------------------------------------------ */ echo "\n"; // the forum category @@ -249,9 +228,8 @@ if (!empty($values) and isset($_POST['SubmitPost'])) { } } - } // footer if ($origin!='learnpath') { Display :: display_footer(); -} +} \ No newline at end of file diff --git a/main/forum/forumconfig.inc.php b/main/forum/forumconfig.inc.php index f350883ee4..56637ef375 100755 --- a/main/forum/forumconfig.inc.php +++ b/main/forum/forumconfig.inc.php @@ -12,9 +12,7 @@ /* ------------------------------------------------------------ Database Variables ------------------------------------------------------------ */ $table_categories = Database :: get_course_table(TABLE_FORUM_CATEGORY); $table_forums = Database :: get_course_table(TABLE_FORUM); @@ -29,9 +27,7 @@ $table_item_property = Database :: get_course_table(TABLE_ITEM_PROPERTY); $table_users = Database :: get_main_table(TABLE_MAIN_USER); /* ------------------------------------------------------------ Constants ------------------------------------------------------------ */ define('TOOL_FORUM_CATEGORY','forum_category'); //define('TOOL_FORUM','forum'); defined in main_api @@ -40,10 +36,8 @@ define('TOOL_FORUM_POST','forum_post'); define('TOOL_FORUM_ATTACH','forum_attachment'); define('TOOL_FORUM_THREAD_QUALIFY','forum_thread_qualify'); /* ------------------------------------------------------------ Some configuration settings (these can go to the dokeos config settings afterwards) ------------------------------------------------------------ */ // if this setting is true then an I-frame will be displayed when replying $forum_setting['show_thread_iframe_on_reply']=true;