"; $subject = $settings['site_title']." - Welcome!"; $body = "Hello,\n\n" ."Welcome! You've just registered at ".$settings['site_title'] ." with the following information:\n\n" ."Username: ".$user."\n" ."Password: ".$pass."\n\n" ."If you ever lose or forget your password, a new " ."password will be generated for you and sent to this " ."email address, if you would like to change your " ."email address you can do so by going to the " ."My Account page after signing in.\n\n" ."- ".$settings['site_title']; return mail($email,$subject,$body,$from); } function sendNewPass($user, $email, $pass){ global $settings; $from = "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">"; $subject = $settings['site_title']." - Your new password"; $body = "Hello,\n\n" ."We've generated a new password for you at your " ."request, you can use this new password with your " ."username to log in to ".$settings['site_title'].".\n\n" ."Username: ".$user."\n" ."New Password: ".$pass."\n\n" ."It is recommended that you change your password " ."to something that is easier to remember, which " ."can be done by going to the My Account page " ."after signing in.\n\n" ."- ".$settings['site_title']; return mail($email,$subject,$body,$from); } }; $mailer = new Mailer; ?> <? if (!empty($search)) { echo ucwords(str_replace('-', ' ', $search) . " " . $type . " - Page " . intval($_GET['page']) . " - "); } if (!empty($info_name)) { echo ucwords("Download " .$info_name. " - "); } if (!empty($vd_name)) { echo ucwords($vd_name. " - "); } if (!empty($lyric_name)) { echo ucwords($lyric_name. " - "); } if (!empty($notf)) { echo ucwords($notf . " - "); } if (!empty($tos)) { echo ucwords($tos . " - "); } if (!empty($regt)) { echo ucwords($regt . " - "); } if (!empty($mlog)) { echo ucwords($mlog . " - "); } if (!empty($fpss)) { echo ucwords($fpss . " - "); } if (!empty($eusr)) { echo ucwords($eusr . " - "); } if (!empty($uinf)) { echo ucwords($uinf . " - "); } if (!empty($artist)) { echo ucwords($artist . " - "); } if (!empty($plylt)) { echo ucwords($plylt . " - "); } echo $settings['site_title']; ?>