Vergleich private.php - 1.2.10 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: private.php 3520 2007-12-01 00:43:25Z Tikitiki $

 * $Id: private.php 3596 2008-01-20 08:27:39Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 120Zeile 120
	{
error_no_permission();
}

	{
error_no_permission();
}

 
	
// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


$plugins->run_hooks("private_send_do_send");



$plugins->run_hooks("private_send_do_send");


Zeile 462Zeile 465
}
if($mybb->input['action'] == "do_tracking" && $mybb->request_method == "post")
{

}
if($mybb->input['action'] == "do_tracking" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("private_do_tracking_start");
if($mybb->input['stoptracking'])
{

	$plugins->run_hooks("private_do_tracking_start");
if($mybb->input['stoptracking'])
{

Zeile 555Zeile 561

if($mybb->input['action'] == "do_folders" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_folders" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("private_do_folders_start");
$highestid = 2;
$folders = '';

	$plugins->run_hooks("private_do_folders_start");
$highestid = 2;
$folders = '';

Zeile 579Zeile 588
				{
case 1:
if($val == $lang->folder_inbox)

				{
case 1:
if($val == $lang->folder_inbox)

						{
$val = '';
}

						{
$val = '';
}

						break;
case 2:
if($val == $lang->folder_sent_items)

						break;
case 2:
if($val == $lang->folder_sent_items)

						{
$val = '';
}

						{
$val = '';
}

						break;
case 3:
if($val == $lang->folder_drafts)

						break;
case 3:
if($val == $lang->folder_drafts)

Zeile 604Zeile 613
				}
}
if($val != '' || ($key >= 1 && $key <= 4))

				}
}
if($val != '' || ($key >= 1 && $key <= 4))

			{

			{

				$foldername = $val;
$foldername = $db->escape_string(htmlspecialchars_uni($foldername));
if(strpos($foldername, "$%%$") === false)

				$foldername = $val;
$foldername = $db->escape_string(htmlspecialchars_uni($foldername));
if(strpos($foldername, "$%%$") === false)

Zeile 621Zeile 630
				}
}
else

				}
}
else

			{
$db->delete_query(TABLE_PREFIX."privatemessages", "folder='$fid' AND uid='".$mybb->user['uid']."'");
}
}
}


			{
$db->delete_query(TABLE_PREFIX."privatemessages", "folder='$fid' AND uid='".$mybb->user['uid']."'");
}
}
}


	$sql_array = array(
"pmfolders" => $folders
);

	$sql_array = array(
"pmfolders" => $folders
);

Zeile 658Zeile 667
}

if($mybb->input['action'] == "do_empty" && $mybb->request_method == "post")

}

if($mybb->input['action'] == "do_empty" && $mybb->request_method == "post")

{




{
// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("private_do_empty_start");
$emptyq = '';
if(is_array($mybb->input['empty']))

	$plugins->run_hooks("private_do_empty_start");
$emptyq = '';
if(is_array($mybb->input['empty']))

Zeile 693Zeile 705

if($mybb->input['action'] == "do_stuff" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_stuff" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("private_do_stuff");
if($mybb->input['hop'])
{

	$plugins->run_hooks("private_do_stuff");
if($mybb->input['hop'])
{

Zeile 708Zeile 723
					"folder" => intval($mybb->input['fid'])
);
$db->update_query(TABLE_PREFIX."privatemessages", $sql_array, "pmid='".intval($key)."' AND uid='".$mybb->user['uid']."'");

					"folder" => intval($mybb->input['fid'])
);
$db->update_query(TABLE_PREFIX."privatemessages", $sql_array, "pmid='".intval($key)."' AND uid='".$mybb->user['uid']."'");

			}
}
// Update PM count
update_pm_count();

			}
}
// Update PM count
update_pm_count();


redirect("private.php?fid=".$mybb->input['fid'], $lang->redirect_pmsmoved);
}


redirect("private.php?fid=".$mybb->input['fid'], $lang->redirect_pmsmoved);
}

Zeile 732Zeile 747
			while($delpm = $db->fetch_array($query))
{
$deletepms[$delpm['pmid']] = 1;

			while($delpm = $db->fetch_array($query))
{
$deletepms[$delpm['pmid']] = 1;

			}

			}

			reset($mybb->input['check']);
foreach($mybb->input['check'] as $key => $val)
{

			reset($mybb->input['check']);
foreach($mybb->input['check'] as $key => $val)
{

Zeile 759Zeile 774

if($mybb->input['action'] == "delete")
{


if($mybb->input['action'] == "delete")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("private_delete_start");

$sql_array = array(

	$plugins->run_hooks("private_delete_start");

$sql_array = array(

Zeile 774Zeile 792
}

if($mybb->input['action'] == "export")

}

if($mybb->input['action'] == "export")

{

{

	$plugins->run_hooks("private_export_start");
$folderlist = "<select name=\"exportfolders[]\" multiple>\n";
$folderlist .= "<option value=\"all\" selected>$lang->all_folders</option>";

	$plugins->run_hooks("private_export_start");
$folderlist = "<select name=\"exportfolders[]\" multiple>\n";
$folderlist .= "<option value=\"all\" selected>$lang->all_folders</option>";

Zeile 793Zeile 811

if($mybb->input['action'] == "do_export" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_export" && $mybb->request_method == "post")
{

	if($mybb->input['exporttype'] != "csv" && $mybb->input['exporttype'] != "text" && $mybb->input['exporttype'] != "html")

	if($mybb->input['exporttype'] != "csv" && $mybb->input['exporttype'] != "txt" && $mybb->input['exporttype'] != "html")

	{
exit;
}

	{
exit;
}

 
	
// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


$plugins->run_hooks("private_do_export_start");
$lang->private_messages_for = sprintf($lang->private_messages_for, $mybb->user['username']);


$plugins->run_hooks("private_do_export_start");
$lang->private_messages_for = sprintf($lang->private_messages_for, $mybb->user['username']);