$email = $rawdb->rawQuery("select contactemail from {$tablename} where nname = '{$cgi_clientname}';"); if ($email && $cgi_email == $email[0]['contactemail']) { $rndstring = randomString(8); $pass = crypt($rndstring); $rawdb->rawQuery("update {$tablename} set password = '******' where nname = '{$cgi_clientname}'"); $mailto = $email[0]['contactemail']; $name = "{$cprogname}"; $email = "Admin"; $cc = ""; $subject = "{$cprogname} Password Reset Request"; $message = "\n\n\nYour password has been reset to the one below for your {$cprogname} login.\n"; $message .= "The Client IP address which requested the Reset: {$_SERVER['REMOTE_ADDR']}\n"; $message .= 'Username: '******'New Password: '******''; lx_mail(null, $mailto, $subject, $message); $ghtml->print_redirect("/login/?frm_smessage=password_sent"); } else { $ghtml->print_redirect("/login/?frm_emessage=nouser_email"); } } } // If existing, use a own footer for the login page else use the default. if (lxfile_exists("__path_program_htmlbase/lib/indexfooter_vendor.html")) { lreadfile("__path_program_htmlbase/lib/indexfooter_vendor.html"); } else { lreadfile("__path_program_htmlbase/lib/indexfooter.html"); } ?> </body> </html>
$email = $rawdb->rawQuery("select contactemail from {$tablename} where nname = '{$cgi_clientname}';"); if ($email && $cgi_email == $email[0]['contactemail']) { $rndstring = randomString(8); $pass = crypt($rndstring); $rawdb->rawQuery("update {$tablename} set password = '******' where nname = '{$cgi_clientname}'"); $mailto = $email[0]['contactemail']; $name = "{$cprogname}"; $email = "Admin"; $cc = ""; $subject = "{$cprogname} Password Reset Request"; $message = "\n\n\nYour password has been reset to the one below for your {$cprogname} login.\n"; $message .= "The Client IP address which requested the Reset: {$_SERVER['REMOTE_ADDR']}\n"; $message .= 'Username: '******'New Password: '******''; lx_mail(null, $mailto, $subject, $message); $ghtml->print_redirect("/login/?frm_smessage=password_sent"); } else { $ghtml->print_redirect("/login/?frm_emessage=nouser_email"); } } } // If existing, use a own footer for the login page else use the default. if (lxfile_exists("__path_program_htmlbase/login/login_footer_vendor.html")) { lreadfile("__path_program_htmlbase/lib/login_footer_vendor.html"); } else { lreadfile("__path_program_htmlbase/login/login_footer.html"); } ?> </body> </html>