47 require_once realpath(dirname(__FILE__).
"/../../include/config.inc");
48 require_once realpath(dirname(__FILE__).
"/../../datamodel/site_user.inc");
49 require_once realpath(dirname(__FILE__).
"/../../include/permissions.inc");
50 require_once realpath(dirname(__FILE__)).
"/../../framework/auto_form.inc";
52 $reset = checkNumeric($_GET[
"reset"]);
56 $profile->filter =
new ExclusionFilter(
"role",
"title",
"activt");
58 $form->passwordEncryptor = hashPassword;
60 $form->submitLabel =
"Update Profile";
62 $form->required(
"l_name",
"f_name");
63 $form->unique(
"email",
"An account already exists with that email address.");
67 $form->getRenderer(
"password")->forceReset =
true;
73 redirect(
"/admin/index");
78 $form->msg =
"You must reset your password. You will not be able to login with your token again.";
80 $form->msg = "Profile Updated.";
84 $script .= "<link type='text/css' rel='stylesheet' href='/css/tree.css'/>";
86 require_once realpath(dirname(__FILE__)."/../../templates/begin_page.inc");
90 require_once realpath(dirname(__FILE__)."/../../templates/end_page.inc");
104 redirect(
"/components/login/myprofile.php?reset=2");
$method
Pull out a simple reference to the request method.