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

  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 4376 2009-06-03 21:56:15Z RyanGordon $

 * $Id: management.php 4770 2010-02-05 12:10:08Z Huji $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 88Zeile 88
				$errors[] = $lang->error_new_forum_needs_name;
}


				$errors[] = $lang->error_new_forum_needs_name;
}


			if($mybb->input['pid'] == 0 && $mybb->input['type'] == 'f')

			if($mybb->input['pid'] == -1 && $mybb->input['type'] == 'f')

			{

			{

				$errors[] = $lang->error_forum_noparent;

				$errors[] = $lang->error_no_parent;

			}

if(!$errors)

			}

if(!$errors)

Zeile 1071Zeile 1071
		{
$errors[] = $lang->error_no_parent;
}

		{
$errors[] = $lang->error_no_parent;
}

 
		
if($type == 'c' && $forum_data['type'] == 'f')
{
$query = $db->simple_select('threads', 'COUNT(tid) as num_threads', "fid = '{$fid}'");
if($db->fetch_field($query, "num_threads") > 0)
{
$errors[] = $lang->error_not_empty;
}
}

		
if(!$errors)
{

		
if(!$errors)
{

Zeile 1120Zeile 1129
				{
case "sqlite3":
case "sqlite2":

				{
case "sqlite3":
case "sqlite2":

 
					case "pgsql":

						$query = $db->simple_select("forums", "fid", "','||parentlist||',' LIKE '%,$fid,%'");
break;
default:

						$query = $db->simple_select("forums", "fid", "','||parentlist||',' LIKE '%,$fid,%'");
break;
default:

Zeile 1150Zeile 1160
			}

$cache->update_forums();

			}

$cache->update_forums();

			

			

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

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

Zeile 1196Zeile 1206
	while($existing = $db->fetch_array($query))
{
$existing_permissions[$existing['gid']] = $existing;

	while($existing = $db->fetch_array($query))
{
$existing_permissions[$existing['gid']] = $existing;

	}

	}

	
$types = array(
'f' => $lang->forum,

	
$types = array(
'f' => $lang->forum,

Zeile 1425Zeile 1435
				}

if($mybb->input['permissions'][$usergroup['gid']][$forum_permission])

				}

if($mybb->input['permissions'][$usergroup['gid']][$forum_permission])

				{
$perms_checked[$forum_permission] = 1;
}
else
{
$perms_checked[$forum_permission] = 0;
}
}
else
{
if($perms[$forum_permission] != 1)
{
$all_checked = false;
}
if($perms[$forum_permission] == 1)
{
$perms_checked[$forum_permission] = 1;
}
else
{
$perms_checked[$forum_permission] = 0;

				{
$perms_checked[$forum_permission] = 1;
}
else
{
$perms_checked[$forum_permission] = 0;
}
}
else
{
if($perms[$forum_permission] != 1)
{
$all_checked = false;
}
if($perms[$forum_permission] == 1)
{
$perms_checked[$forum_permission] = 1;
}
else
{
$perms_checked[$forum_permission] = 0;

				}
}
$all_check .= "\$('permissions_{$usergroup['gid']}_{$forum_permission}').checked = \$('permissions_{$usergroup['gid']}_all').checked;\n";

				}
}
$all_check .= "\$('permissions_{$usergroup['gid']}_{$forum_permission}').checked = \$('permissions_{$usergroup['gid']}_all').checked;\n";

Zeile 1818Zeile 1828
	build_admincp_forums_list($form_container, $fid);

$submit_options = array();

	build_admincp_forums_list($form_container, $fid);

$submit_options = array();

	

	

	if($form_container->num_rows() == 0)
{
$form_container->output_cell($lang->no_forums, array('colspan' => 3));

	if($form_container->num_rows() == 0)
{
$form_container->output_cell($lang->no_forums, array('colspan' => 3));

Zeile 1830Zeile 1840
	
$buttons[] = $form->generate_submit_button($lang->update_forum_orders, $submit_options);
$buttons[] = $form->generate_reset_button($lang->reset);

	
$buttons[] = $form->generate_submit_button($lang->update_forum_orders, $submit_options);
$buttons[] = $form->generate_reset_button($lang->reset);

	

	

	$form->output_submit_wrapper($buttons);

if(!$fid)

	$form->output_submit_wrapper($buttons);

if(!$fid)

	{

	{

		$form->end();
}


		$form->end();
}


Zeile 1895Zeile 1905
						$perms = $cached_forum_perms[$forum_data['pid']][$usergroup['gid']];
$default_checked = true;
}

						$perms = $cached_forum_perms[$forum_data['pid']][$usergroup['gid']];
$default_checked = true;
}

				}


				}


				if(!$perms)

				if(!$perms)

				{

				{

					$perms = $usergroup;
$default_checked = true;

					$perms = $usergroup;
$default_checked = true;

				}

				}

			}
else
{

			}
else
{

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

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

				}
elseif($cached_forum_perms[$forum_data['fid']][$usergroup['gid']])
{

				}
elseif($cached_forum_perms[$forum_data['fid']][$usergroup['gid']])
{

					$perms = $cached_forum_perms[$forum_data['fid']][$usergroup['gid']];
$default_checked = true;
}

					$perms = $cached_forum_perms[$forum_data['fid']][$usergroup['gid']];
$default_checked = true;
}

Zeile 1942Zeile 1952
					$value = "false";
}
if($perms[$forum_permission] != 1)

					$value = "false";
}
if($perms[$forum_permission] != 1)

				{

				{

					$all_checked = false;
}
if($perms[$forum_permission] == 1)

					$all_checked = false;
}
if($perms[$forum_permission] == 1)

Zeile 2066Zeile 2076
	{
foreach($children as $forum)
{

	{
foreach($children as $forum)
{

			$forum['name'] = htmlspecialchars_uni($forum['name']);


			$forum['name'] = preg_replace("#&(?!\#[0-9]+;)#si", "&", $forum['name']);


			if($forum['active'] == 0)
{
$forum['name'] = "<em>".$forum['name']."</em>";

			if($forum['active'] == 0)
{
$forum['name'] = "<em>".$forum['name']."</em>";