From 29422fa55379aa61a61019b832c83dab6d450264 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sat, 3 Oct 2009 14:00:33 +0000 Subject: move files to new locations git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@386 b3834d28-1941-0410-a4f8-b48e95affb8f --- password.php | 78 ------------------------------------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 password.php (limited to 'password.php') diff --git a/password.php b/password.php deleted file mode 100644 index ba7be8d..0000000 --- a/password.php +++ /dev/null @@ -1,78 +0,0 @@ -e-mail address.'); - - // USERNAME AND E-MAIL - } else { - - // NO MATCH - $userinfo = $userservice->getObjectUserByUsername(POST_USERNAME); - if ($userinfo == NULL) { - $tplVars['error'] = T_('No matches found for that username.'); - - } elseif (POST_EMAIL != $userinfo->getEmail()) { - $tplVars['error'] = T_('No matches found for that combination of username and e-mail address.'); - - // MATCH - } else { - - // GENERATE AND STORE PASSWORD - $password = $userservice->generatePassword($userinfo->getId()); - if (!($password = $userservice->generatePassword($userinfo->getId()))) { - $tplVars['error'] = T_('There was an error while generating your new password. Please try again.'); - - } else { - // SEND E-MAIL - $message = T_('Your new password is:') ."\n". $password ."\n\n". T_('To keep your bookmarks secure, you should change this password in your profile the next time you log in.'); - $message = wordwrap($message, 70); - $headers = 'From: '. $adminemail; - $mail = mail(POST_EMAIL, sprintf(T_('%s Account Information'), $sitename), $message); - - $tplVars['msg'] = sprintf(T_('New password generated and sent to %s'), POST_EMAIL); - } - } - } -} - -$templatename = 'password.tpl'; -$tplVars['subtitle'] = T_('Forgotten Password'); -$tplVars['formaction'] = createURL('password'); -$templateservice->loadTemplate($templatename, $tplVars); -?> -- cgit v1.2.3-54-g00ecf