. For more information, visit http://sourceforge.net/projects/ipreg, or contact me at wietsew@users.sourceforge.net *****************************************************************************/ // includes include("includes.php"); // get vars $userclass_id = $_POST['userclass_id']; // check authorisation $auth = auth("userclassauthadd", $config_auth_userclassauthadd, 0); // start output include("header.php"); // set template $tp = new Template("tpl/userclassauthadditem.tpl"); // set language variables $tp->setvars($lang); // get userclass info $result = mysql_query("SELECT userclass_name FROM userclass WHERE userclass_id='$userclass_id'") or die(mysql_error()); $row = mysql_fetch_object($result); $tp->set("userclass_id", $userclass_id); $tp->set("userclass_name", $row->userclass_name); // loop authitem array to display items foreach($authitems AS $authitem => $authitem_name) { $tp->set("authitem", $authitem); $tp->set("authitem_name", $authitem_name['name']); $tp->parse("itemrow"); } $tp->parse("item"); // output $tp->parse(); $tp->spit(); include("footer.php"); ?>