Vergleich admin/usergroups.php - 1.02 - 1.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 14Zeile 14
// Load language packs for this section
global $lang;
$lang->load("usergroups");

// Load language packs for this section
global $lang;
$lang->load("usergroups");

 

$mybb->input['gid'] = intval($mybb->input['gid']);


if($mybb->input['action'] == "listusers")
{


if($mybb->input['action'] == "listusers")
{

Zeile 48Zeile 50
if($mybb->input['action'] == "do_add")
{
if($mybb->input['joinable'] == "yes")

if($mybb->input['action'] == "do_add")
{
if($mybb->input['joinable'] == "yes")

	{

	{

		if($mybb->input['moderate'] == "yes")
{
$mybb->input['type'] = "4";

		if($mybb->input['moderate'] == "yes")
{
$mybb->input['type'] = "4";

Zeile 72Zeile 74
		$mybb->input['ustars'] = 0;
}
$grouparray = array(

		$mybb->input['ustars'] = 0;
}
$grouparray = array(

		"type" => $mybb->input['type'],

		"type" => addslashes($mybb->input['type']),

		"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),
"namestyle" => addslashes($mybb->input['namestyle']),

		"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),
"namestyle" => addslashes($mybb->input['namestyle']),

Zeile 80Zeile 82
		"stars" => intval($mybb->input['ustars']),
"starimage" => addslashes($mybb->input['starimage']),
"image" => addslashes($mybb->input['image']),

		"stars" => intval($mybb->input['ustars']),
"starimage" => addslashes($mybb->input['starimage']),
"image" => addslashes($mybb->input['image']),

		"isbannedgroup" => $mybb->input['isbannedgroup'],
"canview" => $mybb->input['canview'],
"canviewprofiles" => $mybb->input['canviewprofiles'],
"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'],
"canusepms" => $mybb->input['canusepms'],
"cansendpms" => $mybb->input['cansendpms'],
"cantrackpms" => $mybb->input['cantrackpms'],
"candenypmreceipts" => $mybb->input['candenypmreceipts'],
"pmquota" => $mybb->input['pmquota'],
"cansendemail" => $mybb->input['cansendemail'],
"canviewmemberlist" => $mybb->input['canviewmemberlist'],
"canviewcalendar" => $mybb->input['canviewcalendar'],
"canaddpublicevents" => $mybb->input['canaddpublicevents'],
"canaddprivateevents" => $mybb->input['canaddprivateevents'],
"canviewonline" => $mybb->input['canviewonline'],
"canviewwolinvis" => $mybb->input['canviewwolinvis'],
"canviewonlineips" => $mybb->input['canviewonlineips'],
"cancp" => $mybb->input['cancp'],
"issupermod" => $mybb->input['issupermod'],
"cansearch" => $mybb->input['cansearch'],
"canusercp" => $mybb->input['canusercp'],
"canuploadavatars" => $mybb->input['canuploadavatars'],
"canratemembers" => $mybb->input['canratemembers'],
"canchangename" => $mybb->input['canchangename'],
"showforumteam" => $mybb->input['showforumteam'],
"usereputationsystem" => $mybb->input['usereputationsystem'],
"cangivereputations" => $mybb->input['cangivereputations'],
"reputationpower" => $mybb->input['reputationpower'],
"maxreputationsday" => $mybb->input['maxreputationsday'],
"candisplaygroup" => $mybb->input['candisplaygroup'],
"attachquota" => $mybb->input['attachquota'],
"cancustomtitle" => $mybb->input['cancustomtitle']

		"isbannedgroup" => addslashes($mybb->input['isbannedgroup']),
"canview" => addslashes($mybb->input['canview']),
"canviewprofiles" => addslashes($mybb->input['canviewprofiles']),
"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']),
"canusepms" => addslashes($mybb->input['canusepms']),
"cansendpms" => addslashes($mybb->input['cansendpms']),
"cantrackpms" => addslashes($mybb->input['cantrackpms']),
"candenypmreceipts" => addslashes($mybb->input['candenypmreceipts']),
"pmquota" => addslashes($mybb->input['pmquota']),
"cansendemail" => addslashes($mybb->input['cansendemail']),
"canviewmemberlist" => addslashes($mybb->input['canviewmemberlist']),
"canviewcalendar" => addslashes($mybb->input['canviewcalendar']),
"canaddpublicevents" => addslashes($mybb->input['canaddpublicevents']),
"canaddprivateevents" => addslashes($mybb->input['canaddprivateevents']),
"canviewonline" => addslashes($mybb->input['canviewonline']),
"canviewwolinvis" => addslashes($mybb->input['canviewwolinvis']),
"canviewonlineips" => addslashes($mybb->input['canviewonlineips']),
"cancp" => addslashes($mybb->input['cancp']),
"issupermod" => addslashes($mybb->input['issupermod']),
"cansearch" => addslashes($mybb->input['cansearch']),
"canusercp" => addslashes($mybb->input['canusercp']),
"canuploadavatars" => addslashes($mybb->input['canuploadavatars']),
"canratemembers" => addslashes($mybb->input['canratemembers']),
"canchangename" => addslashes($mybb->input['canchangename']),
"showforumteam" => addslashes($mybb->input['showforumteam']),
"usereputationsystem" => addslashes($mybb->input['usereputationsystem']),
"cangivereputations" => addslashes($mybb->input['cangivereputations']),
"reputationpower" => addslashes($mybb->input['reputationpower']),
"maxreputationsday" => addslashes($mybb->input['maxreputationsday']),
"candisplaygroup" => addslashes($mybb->input['candisplaygroup']),
"attachquota" => addslashes($mybb->input['attachquota']),
"cancustomtitle" => addslashes($mybb->input['cancustomtitle'])

		);

$db->insert_query(TABLE_PREFIX."usergroups", $grouparray);

		);

$db->insert_query(TABLE_PREFIX."usergroups", $grouparray);

 


	$cache->updateusergroups();
$cache->updateforumpermissions();
cpredirect("usergroups.php", $lang->group_added.$namenote);

	$cache->updateusergroups();
$cache->updateforumpermissions();
cpredirect("usergroups.php", $lang->group_added.$namenote);

Zeile 207Zeile 210
		$mybb->input['ustars'] = 0;
}
$grouparray = array(

		$mybb->input['ustars'] = 0;
}
$grouparray = array(

		"type" => $mybb->input['type'],

		"type" => addslashes($mybb->input['type']),

		"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),
"namestyle" => addslashes($mybb->input['namestyle']),

		"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),
"namestyle" => addslashes($mybb->input['namestyle']),

Zeile 215Zeile 218
		"stars" => intval($mybb->input['ustars']),
"starimage" => addslashes($mybb->input['starimage']),
"image" => addslashes($mybb->input['image']),

		"stars" => intval($mybb->input['ustars']),
"starimage" => addslashes($mybb->input['starimage']),
"image" => addslashes($mybb->input['image']),

		"isbannedgroup" => $mybb->input['isbannedgroup'],
"canview" => $mybb->input['canview'],
"canviewprofiles" => $mybb->input['canviewprofiles'],
"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'],
"canusepms" => $mybb->input['canusepms'],
"cansendpms" => $mybb->input['cansendpms'],
"cantrackpms" => $mybb->input['cantrackpms'],
"candenypmreceipts" => $mybb->input['candenypmreceipts'],
"pmquota" => $mybb->input['pmquota'],
"cansendemail" => $mybb->input['cansendemail'],
"canviewmemberlist" => $mybb->input['canviewmemberlist'],
"canviewcalendar" => $mybb->input['canviewcalendar'],
"canaddpublicevents" => $mybb->input['canaddpublicevents'],
"canaddprivateevents" => $mybb->input['canaddprivateevents'],
"canviewonline" => $mybb->input['canviewonline'],
"canviewwolinvis" => $mybb->input['canviewwolinvis'],
"canviewonlineips" => $mybb->input['canviewonlineips'],
"cancp" => $mybb->input['cancp'],
"issupermod" => $mybb->input['issupermod'],
"cansearch" => $mybb->input['cansearch'],
"canusercp" => $mybb->input['canusercp'],
"canuploadavatars" => $mybb->input['canuploadavatars'],
"canratemembers" => $mybb->input['canratemembers'],
"canchangename" => $mybb->input['canchangename'],
"showforumteam" => $mybb->input['showforumteam'],
"usereputationsystem" => $mybb->input['usereputationsystem'],
"cangivereputations" => $mybb->input['cangivereputations'],
"reputationpower" => $mybb->input['reputationpower'],
"maxreputationsday" => $mybb->input['maxreputationsday'],
"candisplaygroup" => $mybb->input['candisplaygroup'],
"attachquota" => $mybb->input['attachquota'],
"cancustomtitle" => $mybb->input['cancustomtitle']

		"isbannedgroup" => addslashes($mybb->input['isbannedgroup']),
"canview" => addslashes($mybb->input['canview']),
"canviewprofiles" => addslashes($mybb->input['canviewprofiles']),
"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']),
"canusepms" => addslashes($mybb->input['canusepms']),
"cansendpms" => addslashes($mybb->input['cansendpms']),
"cantrackpms" => addslashes($mybb->input['cantrackpms']),
"candenypmreceipts" => addslashes($mybb->input['candenypmreceipts']),
"pmquota" => addslashes($mybb->input['pmquota']),
"cansendemail" => addslashes($mybb->input['cansendemail']),
"canviewmemberlist" => addslashes($mybb->input['canviewmemberlist']),
"canviewcalendar" => addslashes($mybb->input['canviewcalendar']),
"canaddpublicevents" => addslashes($mybb->input['canaddpublicevents']),
"canaddprivateevents" => addslashes($mybb->input['canaddprivateevents']),
"canviewonline" => addslashes($mybb->input['canviewonline']),
"canviewwolinvis" => addslashes($mybb->input['canviewwolinvis']),
"canviewonlineips" => addslashes($mybb->input['canviewonlineips']),
"cancp" => addslashes($mybb->input['cancp']),
"issupermod" => addslashes($mybb->input['issupermod']),
"cansearch" => addslashes($mybb->input['cansearch']),
"canusercp" => addslashes($mybb->input['canusercp']),
"canuploadavatars" => addslashes($mybb->input['canuploadavatars']),
"canratemembers" => addslashes($mybb->input['canratemembers']),
"canchangename" => addslashes($mybb->input['canchangename']),
"showforumteam" => addslashes($mybb->input['showforumteam']),
"usereputationsystem" => addslashes($mybb->input['usereputationsystem']),
"cangivereputations" => addslashes($mybb->input['cangivereputations']),
"reputationpower" => addslashes($mybb->input['reputationpower']),
"maxreputationsday" => addslashes($mybb->input['maxreputationsday']),
"candisplaygroup" => addslashes($mybb->input['candisplaygroup']),
"attachquota" => addslashes($mybb->input['attachquota']),
"cancustomtitle" => addslashes($mybb->input['cancustomtitle'])

		);


		);


	$db->update_query(TABLE_PREFIX."usergroups", $grouparray, "gid='".$mybb->input['gid']."'");	

	$db->update_query(TABLE_PREFIX."usergroups", $grouparray, "gid='".$mybb->input['gid']."'");

	$cache->updateusergroups();
$cache->updateforumpermissions();
cpredirect("usergroups.php", $lang->group_updated.$namenote);

	$cache->updateusergroups();
$cache->updateforumpermissions();
cpredirect("usergroups.php", $lang->group_updated.$namenote);