Location: PHPKode > projects > Anantasoft Gazelle CMS > admin/adduser.php
<?php
$output = "";
if (!empty($_POST)) {
	$output = include("sql/insert.php");
}
$register = 1;
$permissions = include("scripts/listpermissions.php");

return $output."
<form id=\"frm\" method=\"post\" action=\"".$_SERVER['REQUEST_URI']."\">
	<fieldset>
		<label for=\"name\">Username: </label>
		<input type=\"text\" id=\"name\" name=\"name\" />
		<br />
		<br />
		<label for=\"pass\">Password: </label>
		<input type=\"password\" id=\"pass\" name=\"pass\" />
		<br />
		<br />
		<label for=\"controle\">Password (again): </label>
		<input type=\"password\" id=\"controle\" name=\"controle\" />
		<br />
		<br />
		<label for=\"email\">Email Address: </label>
		<input type=\"text\" id=\"email\" name=\"email\" />
		<br />
		<br />
		<label for=\"active\">Active: </label>
		<input type=\"checkbox\" id=\"active\" name=\"active\" />
		<br />
		<br />
		<label for=\"showemail\">Show Email Address: </label>
		<input type=\"checkbox\" id=\"showemail\" name=\"showemail\" />
		<br />
		<br />
		<label for=\"admin\">Admin: </label>
		<select multiple=\"multiple\" name=\"admin[]\" id=\"admin\" size=\"4\">
		".$permissions."
		</select>
		<br />
		<br />
		<input type=\"submit\" name=\"save\" value=\"Add\" class=\"button\" />
		<input type=\"hidden\" name=\"table\" value=\"users\" />
		<input type=\"hidden\" name=\"joindate\" value=\"".date('Y-m-d H:i:s')."\" />
	</fieldset>
</form>";
?>
Return current item: Anantasoft Gazelle CMS