All pastes #834848 Raw Edit

Untitled

public text v1 · immutable
#834848 ·published 2007-12-28 14:49 UTC
rendered paste body
    function getAuthorizedUsers(){
	if(!array_key_exists("forums", $this->db->conns)){
	    $this->init_forum_connection();
	}
	
	$this->db->runQuery(array(
	    "name" => "get-authorized-users",
	    "sql" => "SELECT id, members_display_name as name, email FROM ibf_members WHERE acp_access = 1",
	    "conn" => "forums"
	));
	
	return($this->db->getArray("get-authorized-users"));
    }

		    while($acp->getAuthorizedUsers()){
echo <<<EOF
<option value='{$users["id"]}'>{$users["name"]}</option>\n
EOF;
		    }