<?php require_once "strip.inc"; require_once "validate.inc"; require_once "page-yatt.inc.php"; $aid = $user->aid; $user = new AccountUser(); $user->find_by_aid((int) $aid); $user->req(); $tpl->set_file("edit", "account/edit.tpl"); $tpl->set_block("edit", "error"); $tpl->set_block("edit", "name"); $tpl->set_block("edit", "email"); $tpl->set_block("edit", "password"); unset($update_email); $error = ""; /* $_page set by main.php from _REQUEST */ $tpl->set_var("PAGE", $_page); if (isset($_POST['name'])) { $name = $_POST['name']; } else { $name = ""; } if (isset($_POST['email'])) { $email = $_POST['email']; } else { $email = ""; } if (isset($_POST['password1'])) { $password1 = $_POST['password1']; } else {