Vergleich admin/modules/forum/management.php - 1.4.4 - 1.4.8

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: management.php 4249 2008-10-25 05:37:16Z Tikitiki $

 * $Id: management.php 4376 2009-06-03 21:56:15Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 890Zeile 890
		$usergroups[$usergroup['gid']] = $usergroup;
}


		$usergroups[$usergroup['gid']] = $usergroup;
}


 
	$cached_forum_perms = $cache->read("forumpermissions");

	$field_list = array('canview', 'canpostthreads', 'canpostreplys', 'canpostpolls', 'canpostattachments');

$form_container = new FormContainer($lang->forum_permissions);

	$field_list = array('canview', 'canpostthreads', 'canpostreplys', 'canpostpolls', 'canpostattachments');

$form_container = new FormContainer($lang->forum_permissions);

Zeile 916Zeile 917
				{
$perms = $cached_forum_perms[$mybb->input['pid']][$usergroup['gid']];
$default_checked = true;

				{
$perms = $cached_forum_perms[$mybb->input['pid']][$usergroup['gid']];
$default_checked = true;

				}
}

if(!$perms)
{
$perms = $usergroup;
$default_checked = true;

				}
}

if(!$perms)
{
$perms = $usergroup;
$default_checked = true;

			}
}
else

			}
}
else

Zeile 931Zeile 932
			{
$perms = $existing_permissions[$usergroup['gid']];
$default_checked = false;

			{
$perms = $existing_permissions[$usergroup['gid']];
$default_checked = false;

			}

			}

			else if(is_array($cached_forum_perms) && $cached_forum_perms[$mybb->input['pid']][$usergroup['gid']])
{
$perms = $cached_forum_perms[$mybb->input['pid']][$usergroup['gid']];

			else if(is_array($cached_forum_perms) && $cached_forum_perms[$mybb->input['pid']][$usergroup['gid']])
{
$perms = $cached_forum_perms[$mybb->input['pid']][$usergroup['gid']];

				$default_checked = true;

				$default_checked = true;

			}

if(!$perms)

			}

if(!$perms)

			{

			{

				$perms = $usergroup;
$default_checked = true;
}

				$perms = $usergroup;
$default_checked = true;
}

Zeile 953Zeile 954
			if($usergroup[$forum_permission] == 1)
{
$value = "true";

			if($usergroup[$forum_permission] == 1)
{
$value = "true";

			}
else
{

			}
else
{

				$value = "false";
}


				$value = "false";
}


Zeile 1021Zeile 1022
if($mybb->input['action'] == "edit")
{
$plugins->run_hooks("admin_forum_management_edit");

if($mybb->input['action'] == "edit")
{
$plugins->run_hooks("admin_forum_management_edit");

	

	

	if(!$mybb->input['fid'])
{
flash_message($lang->error_invalid_fid, 'error');

	if(!$mybb->input['fid'])
{
flash_message($lang->error_invalid_fid, 'error');

Zeile 1152Zeile 1153
			
$canview = $permissions['canview'];
$canpostthreads = $permissions['canpostthreads'];

			
$canview = $permissions['canview'];
$canpostthreads = $permissions['canpostthreads'];

			$canpostreplies = $permissions['canpostreplies'];

 
			$canpostpolls = $permissions['canpostpolls'];
$canpostattachments = $permissions['canpostattachments'];
$canpostreplies = $permissions['canpostreplys'];

			$canpostpolls = $permissions['canpostpolls'];
$canpostattachments = $permissions['canpostattachments'];
$canpostreplies = $permissions['canpostreplys'];

Zeile 1513Zeile 1513
		
$db->delete_query("moderators", "mid='{$mid}'");
$query = $db->simple_select("moderators", "*", "uid='{$mod['uid']}'");

		
$db->delete_query("moderators", "mid='{$mid}'");
$query = $db->simple_select("moderators", "*", "uid='{$mod['uid']}'");

		if($db->fetch_array($query))

		if($db->num_rows($query) == 0)

		{
$updatequery = array(
"usergroup" => "2"

		{
$updatequery = array(
"usergroup" => "2"

Zeile 1628Zeile 1628
		$db->delete_query("threads", "fid='{$fid}' {$delquery}");
$db->delete_query("posts", "fid='{$fid}' {$delquery}");
$db->delete_query("moderators", "fid='{$fid}' {$delquery}");

		$db->delete_query("threads", "fid='{$fid}' {$delquery}");
$db->delete_query("posts", "fid='{$fid}' {$delquery}");
$db->delete_query("moderators", "fid='{$fid}' {$delquery}");

 
		$db->delete_query("forumsubscriptions", "fid='{$fid}' {$delquery}");


$cache->update_forums();
$cache->update_moderators();


$cache->update_forums();
$cache->update_moderators();