|
|
|
@ -109,26 +109,26 @@ function handle_forum_and_forumcategories() |
|
|
|
|
if ($_GET['action']=='delete' AND isset($_GET['content']) AND isset($_GET['id'])) |
|
|
|
|
{ |
|
|
|
|
$return_message=delete_forum_forumcategory_thread($_GET['content'],$_GET['id']);// note: this has to be cleaned first |
|
|
|
|
Display :: display_normal_message($return_message,false); |
|
|
|
|
Display :: display_confirmation_message($return_message,false); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// Change visibility of a forum or a forum category |
|
|
|
|
if (($_GET['action']=='invisible' OR $_GET['action']=='visible') AND isset($_GET['content']) AND isset($_GET['id'])) |
|
|
|
|
{ |
|
|
|
|
$return_message=change_visibility($_GET['content'], $_GET['id'],$_GET['action']);// note: this has to be cleaned first |
|
|
|
|
Display :: display_normal_message($return_message,false); |
|
|
|
|
Display :: display_confirmation_message($return_message,false); |
|
|
|
|
} |
|
|
|
|
// Change lock status of a forum or a forum category |
|
|
|
|
if (($_GET['action']=='lock' OR $_GET['action']=='unlock') AND isset($_GET['content']) AND isset($_GET['id'])) |
|
|
|
|
{ |
|
|
|
|
$return_message=change_lock_status($_GET['content'], $_GET['id'],$_GET['action']);// note: this has to be cleaned first |
|
|
|
|
Display :: display_normal_message($return_message,false); |
|
|
|
|
Display :: display_confirmation_message($return_message,false); |
|
|
|
|
} |
|
|
|
|
// Move a forum or a forum category |
|
|
|
|
if ($_GET['action']=='move' AND isset($_GET['content']) AND isset($_GET['id']) AND isset($_GET['direction'])) |
|
|
|
|
{ |
|
|
|
|
$return_message=move_up_down($_GET['content'], $_GET['direction'], $_GET['id']);// note: this has to be cleaned first |
|
|
|
|
Display :: display_normal_message($return_message,false); |
|
|
|
|
Display :: display_confirmation_message($return_message,false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -236,7 +236,7 @@ function show_add_forum_form($inputvalues=array()) |
|
|
|
|
$group=''; |
|
|
|
|
$group[] =& HTML_QuickForm::createElement('radio', 'approval_direct',null,get_lang('Approval'),1); |
|
|
|
|
$group[] =& HTML_QuickForm::createElement('radio', 'approval_direct',null,get_lang('Direct'),0); |
|
|
|
|
$form->addGroup($group, 'approval_direct_group', get_lang('ApprovalDirect'), ' '); |
|
|
|
|
//$form->addGroup($group, 'approval_direct_group', get_lang('ApprovalDirect'), ' '); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// This is for vertical |
|
|
|
@ -246,7 +246,7 @@ function show_add_forum_form($inputvalues=array()) |
|
|
|
|
$group=''; |
|
|
|
|
$group[] =& HTML_QuickForm::createElement('radio', 'allow_attachments',null,get_lang('Yes'),1); |
|
|
|
|
$group[] =& HTML_QuickForm::createElement('radio', 'allow_attachments',null,get_lang('No'),0); |
|
|
|
|
$form->addGroup($group, 'allow_attachments_group', get_lang('AllowAttachments'), ' '); |
|
|
|
|
//$form->addGroup($group, 'allow_attachments_group', get_lang('AllowAttachments'), ' '); |
|
|
|
|
|
|
|
|
|
// This is for vertical |
|
|
|
|
//$form->addElement('radio', 'allow_new_threads', get_lang('AllowNewThreads'), 1, get_lang('Yes')); |
|
|
|
@ -488,7 +488,7 @@ function store_forum($values) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Display :: display_normal_message($return_message); |
|
|
|
|
Display :: display_confirmation_message($return_message); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -1593,7 +1593,7 @@ function store_thread($values) |
|
|
|
|
session_unregister('addedresource'); |
|
|
|
|
session_unregister('addedresourceid'); |
|
|
|
|
|
|
|
|
|
Display :: display_normal_message($message,false); |
|
|
|
|
Display :: display_confirmation_message($message,false); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* This function displays the form that is used to add a post. This can be a new thread or a reply. |
|
|
|
@ -1765,7 +1765,7 @@ function store_reply($values) |
|
|
|
|
session_unregister('addedresource'); |
|
|
|
|
session_unregister('addedresourceid'); |
|
|
|
|
|
|
|
|
|
Display :: display_normal_message($message,false); |
|
|
|
|
Display :: display_confirmation_message($message,false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1897,7 +1897,7 @@ function store_edit_post($values) |
|
|
|
|
session_unregister('addedresource'); |
|
|
|
|
session_unregister('addedresourceid'); |
|
|
|
|
|
|
|
|
|
Display :: display_normal_message($message,false); |
|
|
|
|
Display :: display_confirmation_message($message,false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|