Vergleich admin/forums.php - 1.2.0 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

 * $Id: forums.php 2148 2006-08-27 04:10:33Z Tikitiki $

 * $Id: forums.php 3190 2007-07-06 16:47:37Z musicalmidget $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 78Zeile 78
	reset($iforumcache);
if(is_array($iforumcache[$pid]))
{

	reset($iforumcache);
if(is_array($iforumcache[$pid]))
{

 
		$comma = "";

		foreach($iforumcache[$pid] as $key => $main)
{

		foreach($iforumcache[$pid] as $key => $main)
{

			$comma = "";

 
			foreach($main as $key => $forum)
{
$forum['name'] = $forum['name'];

			foreach($main as $key => $forum)
{
$forum['name'] = $forum['name'];

Zeile 197Zeile 197
		cperror($lang->forum_noparent);
}
$sqlarray = array(

		cperror($lang->forum_noparent);
}
$sqlarray = array(

		"name" => htmlspecialchars_uni($db->escape_string($mybb->input['name'])),

		"name" => $db->escape_string($mybb->input['name']),

		"description" => $db->escape_string($mybb->input['description']),
"linkto" => $db->escape_string($mybb->input['linkto']),
"type" => $type,
"pid" => $pid,

		"description" => $db->escape_string($mybb->input['description']),
"linkto" => $db->escape_string($mybb->input['linkto']),
"type" => $type,
"pid" => $pid,

 
		"parentlist" => '',

		"disporder" => intval($mybb->input['disporder']),
"active" => $db->escape_string($mybb->input['isactive']),
"open" => $db->escape_string($mybb->input['isopen']),

		"disporder" => intval($mybb->input['disporder']),
"active" => $db->escape_string($mybb->input['isactive']),
"open" => $db->escape_string($mybb->input['isopen']),

Zeile 346Zeile 347
				$updatequery = array(
"usergroup" => "2"
);

				$updatequery = array(
"usergroup" => "2"
);

				$db->update_query(TABLE_PREFIX."usergroups", $updatequery, "uid IN ($mod_list) AND usergroup='6'");

				$db->update_query(TABLE_PREFIX."users", $updatequery, "uid IN ($mod_list) AND usergroup='6'");

			}
}
$db->delete_query(TABLE_PREFIX."forums", "CONCAT(',',parentlist,',') LIKE '%,$fid,%'");

			}
}
$db->delete_query(TABLE_PREFIX."forums", "CONCAT(',',parentlist,',') LIKE '%,$fid,%'");

Zeile 432Zeile 433
		}

$sqlarray = array(

		}

$sqlarray = array(

			"name" => htmlspecialchars_uni($db->escape_string($mybb->input['name'])),

			"name" => $db->escape_string($mybb->input['name']),

			"description" => $db->escape_string($mybb->input['description']),
"linkto" => $db->escape_string($mybb->input['linkto']),
"type" => $type,

			"description" => $db->escape_string($mybb->input['description']),
"linkto" => $db->escape_string($mybb->input['linkto']),
"type" => $type,

Zeile 867Zeile 868
		$new_forum['description'] = $db->escape_string($mybb->input['description']);
$new_forum['type'] = $type;
$new_forum['pid'] = intval($mybb->input['pid']);

		$new_forum['description'] = $db->escape_string($mybb->input['description']);
$new_forum['type'] = $type;
$new_forum['pid'] = intval($mybb->input['pid']);

 
		$new_forum['rulestitle'] = $db->escape_string($new_forum['rulestitle']);
$new_forum['rules'] = $db->escape_string($new_forum['rules']);

		
$db->insert_query(TABLE_PREFIX."forums", $new_forum);
$to = $db->insert_id();

		
$db->insert_query(TABLE_PREFIX."forums", $new_forum);
$to = $db->insert_id();

Zeile 894Zeile 897
		$new_forum['description'] = $db->escape_string($to_forum['description']);
$new_forum['pid'] = $db->escape_string($to_forum['pid']);
$new_forum['parentlist'] = $db->escape_string($to_forum['parentlist']);

		$new_forum['description'] = $db->escape_string($to_forum['description']);
$new_forum['pid'] = $db->escape_string($to_forum['pid']);
$new_forum['parentlist'] = $db->escape_string($to_forum['parentlist']);

 
		$new_forum['rulestitle'] = $db->escape_string($new_forum['rulestitle']);
$new_forum['rules'] = $db->escape_string($new_forum['rules']);


$db->update_query(TABLE_PREFIX."forums", $new_forum, "fid='{$to}'");
}


$db->update_query(TABLE_PREFIX."forums", $new_forum, "fid='{$to}'");
}

Zeile 1047Zeile 1052
		tableheader($lang->forum_moderators);
makelabelcode($lang->mods_colors_note, '', 2);
tablesubheader("<div align=\"right\"><input type=\"button\" value=\"$lang->add_mod\" onclick=\"hopto('forums.php?".SID."&amp;action=addmod&amp;fid=$fid');\" class=\"submitbutton\"></div>");

		tableheader($lang->forum_moderators);
makelabelcode($lang->mods_colors_note, '', 2);
tablesubheader("<div align=\"right\"><input type=\"button\" value=\"$lang->add_mod\" onclick=\"hopto('forums.php?".SID."&amp;action=addmod&amp;fid=$fid');\" class=\"submitbutton\"></div>");

		$parentlist = build_parent_list($fid, 'm.fid');



		$options = array(
"order_by" => "u.username"
);

		$options = array(
"order_by" => "u.username"
);

		$modquery = $db->simple_select(TABLE_PREFIX."moderators m LEFT JOIN ".TABLE_PREFIX."users u ON (m.uid=u.uid)", "m.mid, m.uid, m.fid, u.username", $parentlist, $options);

		$modquery = $db->simple_select(TABLE_PREFIX."moderators m LEFT JOIN ".TABLE_PREFIX."users u ON (m.uid=u.uid)", "m.mid, m.uid, m.fid, u.username", "m.fid = '{$fid}'", $options);

		$nummods = $db->num_rows($modquery);
if(!$nummods)
{

		$nummods = $db->num_rows($modquery);
if(!$nummods)
{