Vergleich admin/inc/functions.php - 1.4.0 - 1.4.3

  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: functions.php 3990 2008-07-06 01:01:20Z Tikitiki $

 * $Id: functions.php 4181 2008-09-07 17:19:49Z Tikitiki $

 */

/**

 */

/**

Zeile 233Zeile 233

$query = $db->simple_select("usergroups", "gid");
while($usergroup = $db->fetch_array($query))


$query = $db->simple_select("usergroups", "gid");
while($usergroup = $db->fetch_array($query))

	{




	{		
$query2 = $db->simple_select("forumpermissions", "canviewthreads,candlattachments,canratethreads,caneditposts,candeleteposts,candeletethreads,caneditattachments,canvotepolls,cansearch", "fid='{$fid}' AND gid='{$usergroup['gid']}'", array('limit' => 1));
$existing_permissions = $db->fetch_array($query2);


		// Delete existing permissions
$db->delete_query("forumpermissions", "fid='{$fid}' AND gid='{$usergroup['gid']}'");


		// Delete existing permissions
$db->delete_query("forumpermissions", "fid='{$fid}' AND gid='{$usergroup['gid']}'");


Zeile 298Zeile 301
				"fid" => $fid,
"gid" => $usergroup['gid'],
"canview" => $pview,

				"fid" => $fid,
"gid" => $usergroup['gid'],
"canview" => $pview,

				"canviewthreads" => $pview,
"candlattachments" => $pview,

				"canviewthreads" => $existing_permissions['canviewthreads'],
"candlattachments" => $existing_permissions['candlattachments'],

				"canpostthreads" => $pthreads,
"canpostreplys" => $preplies,
"canpostattachments" => $pattachments,

				"canpostthreads" => $pthreads,
"canpostreplys" => $preplies,
"canpostattachments" => $pattachments,

				"canratethreads" => $pview,
"caneditposts" => $ppost,
"candeleteposts" => $ppost,
"candeletethreads" => $pthreads,
"caneditattachments" => $pattachments,

				"canratethreads" => $existing_permissions['canratethreads'],
"caneditposts" => $existing_permissions['caneditposts'],
"candeleteposts" => $existing_permissions['candeleteposts'],
"candeletethreads" => $existing_permissions['candeletethreads'],
"caneditattachments" => $existing_permissions['caneditattachments'],

				"canpostpolls" => $ppolls,

				"canpostpolls" => $ppolls,

				"canvotepolls" => $pview,
"cansearch" => $pview

				"canvotepolls" => $existing_permissions['canvotepolls'],
"cansearch" => $existing_permissions['cansearch']

			);

$db->insert_query("forumpermissions", $insertquery);

			);

$db->insert_query("forumpermissions", $insertquery);