Vergleich usercp2.php - 1.6.1 - 1.6.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: usercp2.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'usercp2.php');
define("ALLOWABLE_PAGE", "removesubscription,removesubscriptions");


 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'usercp2.php');
define("ALLOWABLE_PAGE", "removesubscription,removesubscriptions");


$templatelist = 'usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_nav';

$templatelist = 'usercp_nav_messenger,usercp_nav_changename,usercp_nav_profile,usercp_nav_misc,usercp_nav,usercp_addsubscription_thread,usercp_nav_messenger_tracking,usercp_nav_editsignature';


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_user.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_user.php";

Zeile 42Zeile 42
			error($lang->error_invalidthread);
}
$forumpermissions = forum_permissions($thread['fid']);

			error($lang->error_invalidthread);
}
$forumpermissions = forum_permissions($thread['fid']);

		if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)

		if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || ($forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))

		{
error_no_permission();
}

		{
error_no_permission();
}

Zeile 62Zeile 62
if($mybb->input['action'] == "addsubscription")
{
if($mybb->input['type'] == "forum")

if($mybb->input['action'] == "addsubscription")
{
if($mybb->input['type'] == "forum")

	{

	{

		$forum = get_forum($mybb->input['fid']);
if(!$forum['fid'])
{

		$forum = get_forum($mybb->input['fid']);
if(!$forum['fid'])
{

Zeile 75Zeile 75
		}
add_subscribed_forum($forum['fid']);
if($server_http_referer)

		}
add_subscribed_forum($forum['fid']);
if($server_http_referer)

		{

		{

			$url = $server_http_referer;

			$url = $server_http_referer;

		}

		}

		else
{
$url = "index.php";

		else
{
$url = "index.php";

		}

		}

		redirect($url, $lang->redirect_forumsubscriptionadded);
}
else

		redirect($url, $lang->redirect_forumsubscriptionadded);
}
else

Zeile 95Zeile 95
		add_breadcrumb($lang->nav_addsubscription);

$forumpermissions = forum_permissions($thread['fid']);

		add_breadcrumb($lang->nav_addsubscription);

$forumpermissions = forum_permissions($thread['fid']);

		if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)

		if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || ($forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))

		{
error_no_permission();
}

		{
error_no_permission();
}