Rev | Line | |
---|
[1] | 1 | <?php |
---|
| 2 | // Variables accessible by these texts... |
---|
| 3 | // $CFG->site_name |
---|
| 4 | // $CFG->site_email |
---|
| 5 | // $CFG->site_url |
---|
| 6 | // |
---|
| 7 | // $reason |
---|
| 8 | // {$user_data['username']} |
---|
| 9 | // $password |
---|
| 10 | |
---|
| 11 | // For depreciated systems. |
---|
| 12 | setDefault($password, $new_password); |
---|
| 13 | |
---|
| 14 | // Subject for email. Do not use double-quote marks inside. |
---|
| 15 | $email_subject = "$CFG->site_name password change"; |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | // Body for email. Do not touch lines with 'EOF'. |
---|
| 19 | $email_body = <<<EOF |
---|
| 20 | Hello {$user_data['username']}, |
---|
| 21 | |
---|
| 22 | Your password at $CFG->site_name has been reset. $reason |
---|
| 23 | Your new login information is: |
---|
| 24 | |
---|
| 25 | USERNAME: {$user_data['username']} |
---|
| 26 | PASSWORD: $password |
---|
| 27 | |
---|
| 28 | If you have any questions or concerns please reply to this email or go the the address below. |
---|
| 29 | |
---|
| 30 | Thank you, |
---|
| 31 | $CFG->site_name |
---|
| 32 | $CFG->site_url/ |
---|
| 33 | |
---|
| 34 | EOF; |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | // Don't touch this. |
---|
| 38 | $email_body = wordwrap($email_body); |
---|
| 39 | |
---|
| 40 | ?> |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.