[svn r19054] logic changes - allow paginate results - (partial FS#3878)

skala
Isaac Flores 16 years ago
parent ae6842c56f
commit 9e926837d0
  1. 7
      main/inc/lib/message.lib.php
  2. 6
      main/messages/inbox.php
  3. 6
      main/messages/outbox.php

@ -32,14 +32,14 @@ function inbox_display() {
if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true') {
$success= get_lang('SelectedMessagesDeleted').
"&nbsp
<br><a href=\"".
<br/><a href=\"".
"../social/index.php?$redirect\">".
get_lang('BackToInbox').
"</a>";
} else {
$success= get_lang('SelectedMessagesDeleted').
"&nbsp
<br><a href=\"".
<br/><a href=\"".
"../social/index.php?$redirect\">".
get_lang('BackToInbox').
"</a>";
@ -48,8 +48,7 @@ function inbox_display() {
} else {
$success= get_lang('SelectedMessagesDeleted').
"&nbsp
</b>".
"<br><a href=\"".
<br/><a href=\"".
"inbox.php\">".
get_lang('BackToOutbox').
"</a>";

@ -35,6 +35,11 @@ include_once ('../inc/global.inc.php');
require_once '../messages/message.class.php';
include_once(api_get_path(LIBRARY_PATH).'/message.lib.php');
api_block_anonymous_users();
if (isset($_GET['messages_page_nr'])) {
if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true') {
header('Location:../social/index.php?pager="'.$_GET['messages_page_nr'].'"&remote=2#remote-tab-2');
}
}
if (api_get_setting('allow_message_tool')!='true'){
api_not_allowed();
}
@ -64,7 +69,6 @@ function deselect_all(formita)
//-->
</script>';
/*
==============================================================================
MAIN CODE

@ -35,7 +35,11 @@ include_once ('../inc/global.inc.php');
require_once '../messages/message.class.php';
require_once (api_get_path(LIBRARY_PATH).'message.lib.php');
api_block_anonymous_users();
if (isset($_GET['messages_page_nr'])) {
if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true') {
header('Location:../social/index.php?pager="'.$_GET['messages_page_nr'].'"&remote=3#remote-tab-3');
}
}
if (api_get_setting('allow_message_tool')!='true'){
api_not_allowed();
}

Loading…
Cancel
Save