getSessionId(), $privs->getUserId()); $layout = new spudCore(0, 0); $privs->logOut(); if ($email != "") { $userCheckQuery = "SELECT user_name, email, password FROM spud_user WHERE email = '$email'"; $userCheck = new dbInterface($DB_NAME, $DB_USER, $DB_PASS, $userCheckQuery); $isUser = $userCheck->getRow(); if (($isUser["user_name"] != "")) { $decodedPass = base64_decode($isUser["password"]); $mailResult = mail($isUser["email"], "Your long lost password", "Here is your user info\n\n\tUser Name: ".$isUser["user_name"]."\n\tPassword: ".$decodedPass."\n\nRemember to use your powers for good and not evil.\n\n- The Staff", "From: $mail_list_from\nReply-To: $mail_list_from"); } else { $mailResult = mail($email, "Your password request", "Hey there,\n\nBad news buddy. Your info didn't match what was in our system.\nYou can either take it up with our system guys or reregister at:\n\n\t".$SITEURL."admin/register.phtml\n\nWe'd love to have you as a member.\n\n- The Staff", "From: $mail_list_from\nReply-To: $mail_list_from"); } header("Location: $url\n\n"); exit; } eval($layout->getLayout('Header', 'Standard')); ?>

Email:
getLayout('Footer', 'Standard')); ?>