Vergleich admin/forumpermissions.php - 1.02 - 1.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 116Zeile 116
	else
{
$sqlarray = array(

	else
{
$sqlarray = array(

			"canview" => $mybb->input['canview'],
"candlattachments" => $mybb->input['candlattachments'],
"canpostthreads" => $mybb->input['canpostthreads'],
"canpostreplys" => $mybb->input['canpostreplys'],
"canpostattachments" => $mybb->input['canpostattachments'],
"canratethreads" => $mybb->input['canratethreads'],
"caneditposts" => $mybb->input['caneditposts'],
"candeleteposts" => $mybb->input['candeleteposts'],
"candeletethreads" => $mybb->input['candeletethreads'],
"caneditattachments" => $mybb->input['caneditattachments'],
"canpostpolls" => $mybb->input['canpostpolls'],
"canvotepolls" => $mybb->input['canvotepolls'],
"cansearch" => $mybb->input['cansearch'],

			"canview" => addslashes($mybb->input['canview']),
"candlattachments" => addslashes($mybb->input['candlattachments']),
"canpostthreads" => addslashes($mybb->input['canpostthreads']),
"canpostreplys" => addslashes($mybb->input['canpostreplys']),
"canpostattachments" => addslashes($mybb->input['canpostattachments']),
"canratethreads" => addslashes($mybb->input['canratethreads']),
"caneditposts" => addslashes($mybb->input['caneditposts']),
"candeleteposts" => addslashes($mybb->input['candeleteposts']),
"candeletethreads" => addslashes($mybb->input['candeletethreads']),
"caneditattachments" => addslashes($mybb->input['caneditattachments']),
"canpostpolls" => addslashes($mybb->input['canpostpolls']),
"canvotepolls" => addslashes($mybb->input['canvotepolls']),
"cansearch" => addslashes($mybb->input['cansearch']),

			);
if($fid)
{

			);
if($fid)
{

Zeile 164Zeile 164
		$query = $db->query("SELECT * FROM ".TABLE_PREFIX."forumpermissions WHERE fid='$fid' AND gid='$gid'");
}
$forumpermissions = $db->fetch_array($query);

		$query = $db->query("SELECT * FROM ".TABLE_PREFIX."forumpermissions WHERE fid='$fid' AND gid='$gid'");
}
$forumpermissions = $db->fetch_array($query);

	if(!$fid && !$gid) {
$fid = $forumpermissions['fid'];
$gid = $forumpermissions['gid'];
}





    if(!$fid)
{
$fid = $forumpermissions['fid'];
}
if(!$gid)
{
$gid = $forumpermissions['gid'];
}


$query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$gid'");
$usergroup = $db->fetch_array($query);


$query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$gid'");
$usergroup = $db->fetch_array($query);