CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
rightspage_ad.php48 linesDownload Raw Back to classes
1<?php2/**3 * Class for display admin_rights_list with Active directory data 4 */5class RightsPage_AD extends RightsPage6{	7	/**8	 * Contructor9	 *10	 * @param array $params11	 * @return RightsPage_AD12	 */13	function __construct(&$params)14	{15		parent::__construct($params);	16	}17	18	function fillGroupsArr()19	{20		global $cman;21		$grConnection = $cman->getForUserGroups(); 		22		23		//	select groups list24		$this->groups[-2] = "<".##message AA_GROUP_DEFAULT##.">";25		$this->groups[-3] = "<".##message AA_GROUP_GUEST##.">";26		27		$sql = "select ". $grConnection->addFieldWrappers( "##@BUILDER.groups_groupid s##" ) .", "28			. $grConnection->addFieldWrappers( "##@BUILDER.groups_label s##" )29			." from ". $grConnection->addTableWrappers( "##@BUILDER.strUGGroups s##" ) 30			." order by ". $grConnection->addFieldWrappers( "##@BUILDER.groups_label s##" );31		32		$qResult = $grConnection->query( $sql );33		while( $tdata = $qResult->fetchNumeric() )34		{35			$this->groups[ $tdata[0] ] = $tdata[1];36		}37	}38	39	function commonAssign() 40	{41		parent::commonAssign();42		43		$this->xt->assign("menu_block",false);44		// hide Rename button45		$this->hideItemType("rights_rename_group");46	}47}48?>