display('header.tpl'); $users =& new DataObject_Users(); $users->id = intval($_GET['uid']); $users->hash = mysqli_real_escape_string($_SESSION['_config']['mysqli'], $_GET['hash']); if($users->count() <= 0) { $smarty->assign('errmsg', _("This account has already been registered, or the hash value was incorrect.")); } else { $users->hash = ""; $users->created = gmdate("Y-m-d H:i:s"); $users->update(); } $smarty->display('verify.tpl'); $smarty->display('footer.tpl'); ?>