| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/penpaleurope.com/backup/app/ |
Upload File : |
<?php
include "general.php";
include 'sendmailclient.php';
$myMessage="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <meta name='viewport' content='width=device-width, initial-scale=1' /> <title>Penpal Africa - Forgot Password</title> <style type='text/css' media='screen'> /* Force Hotmail to display emails at full width */ .ExternalClass { display: block !important; width: 100%; } /* Force Hotmail to display normal line spacing */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; } body, p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; } body, p, td { font-family: Arial, Helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 1.5em; } h1 { font-size: 24px; font-weight: normal; line-height: 24px; } body, p { margin-bottom: 0; -webkit-text-size-adjust: none; -ms-text-size-adjust: none; } img { outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; } a img { border: none; } .background { background-color: #1ddced; } table.background { margin: 0; padding: 0; width: 100% !important; } .block-img { display: block; line-height: 0; } a { color: white; text-decoration: none; } a, a:link { color: #2A5DB0; text-decoration: underline; } table td { border-collapse: collapse; } td { vertical-align: top; text-align: left; } .wrap { width: 600px; } .wrap-cell { padding-top: 30px; padding-bottom: 30px; } .header-cell, .body-cell, .footer-cell { padding-left: 20px; padding-right: 20px; } .header-cell { background-color: #eeeeee; font-size: 24px; color: #ffffff; } .body-cell { background-color: #ffffff; padding-top: 30px; padding-bottom: 34px; } .footer-cell { background-color: #eeeeee; text-align: center; font-size: 13px; padding-top: 30px; padding-bottom: 30px; } .card { width: 400px; margin: 0 auto; } .data-heading { text-align: right; padding: 10px; background-color: #ffffff; font-weight: bold; } .data-value { text-align: left; padding: 10px; background-color: #ffffff; } .force-full-width { width: 100% !important; } .body-cell1 { padding-left: 20px; padding-right: 20px; } .footer-cell1 { padding-left: 20px; padding-right: 20px; } </style> <style type='text/css' media='only screen and (max-width: 600px)'> @media only screen and (max-width: 600px) { body[class*='background'], table[class*='background'], td[class*='background'] { background: #eeeeee !important; } table[class='card'] { width: auto !important; } td[class='data-heading'], td[class='data-value'] { display: block !important; } td[class='data-heading'] { text-align: left !important; padding: 10px 10px 0; } table[class='wrap'] { width: 100% !important; } td[class='wrap-cell'] { padding-top: 0 !important; padding-bottom: 0 !important; } } </style> </head> <body leftmargin='0' marginwidth='0' topmargin='0' marginheight='0' offset='0' bgcolor='' class='background'> <table align='center' border='0' cellpadding='0' cellspacing='0' height='100%' width='100%' class='background'> <tr> <td align='center' valign='top' width='100%' class='background'> <center> <table cellpadding='0' cellspacing='0' width='600' class='wrap'> <tr> <td valign='top' class='wrap-cell' style='padding-top:30px; padding-bottom:30px;'> <table cellpadding='0' cellspacing='0' class='force-full-width'> <tr> <td height='60' valign='top' class='header-cell'><img width='196' height='60' src='http://www.penpalafrica.com/api/penpallogo.png' alt='logo' /></td> </tr> <tr> <td valign='top' class='body-cell'> <table cellpadding='0' cellspacing='0' width='100%' bgcolor='#ffffff'> <tr> <td valign='top' style='padding-bottom:15px; background-color:#ffffff;'> <h1>Penpal Africa - Password Changed</h1> </td> </tr> <tr> <td valign='top' style='padding-bottom:20px; background-color:#ffffff;'> Dear <b>##username##</b><br><br /> You just did password reset to your account with ##domain##.<br><br> If you have not requested this change, please contact support. </td> </tr> <tr> <td> <table cellspacing='0' cellpadding='0' width='100%' bgcolor='#ffffff'> <tr> <td style='width:200px;background:#008000;'> <div><!--[if mso]> <v:rect xmlns:v='urn:schemas-microsoft-com:vml' xmlns:w='urn:schemas-microsoft-com:office:word' href='#' style='height:40px;v-text-anchor:middle;width:200px;' stroke='f' fillcolor='#008000'> <w:anchorlock/> <center> <![endif]--> <a href='http://www.penpalafrica.com/login.php' style='background-color:#008000;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;line-height:40px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;'>Login To PenpalAfrica</a><!--[if mso]> </center> </v:rect> <![endif]--></div> </td> <td width='360' style='background-color:#ffffff; font-size:0; line-height:0;'> </td> </tr> </table> </td> </tr> <tr> <td style='padding-top:20px;background-color:#ffffff;'> Thanks for your interest in our service.<br> <b>Support @ PenpalAfrica</b> </td> </tr> </table> </tr> <tr> <td valign='top' class='footer-cell'> <b>Penpal Africa</b><br> Powered By Swift Alliance Ltd </td> </tr> </table> </td> </tr> </table> </center> </td> </tr> </table> </body> </html>";
$newpass =$_REQUEST["npass"];
$cnewpass =$_REQUEST["cnpass"];
// $newpass =$_REQUEST["newpass"];
// $confirmpass =$_REQUEST["confirmpass"];
//echo $currentPassword;
//exit();
if ($newpass !=$cnewpass)
{
header('Location: npass.php?err=1');
exit();
}
if (strlen($newpass) < 6)
{
header('Location: npass.php?err=2');
exit();
}
if (is_numeric($newpass))
{
header('Location: npass.php?err=3');
exit();
}
$palid = $_SESSION['palid'];
$id = $_SESSION['id'];
$email= $_SESSION['email'];
$query = "Select nickname from penpalsubscriber where email ='$email' and domain ='$domain' and palid ='$palid'";
$response =getQuery1($query);
$username= $response;
//$response = changepass($username,$domain,$newpass);
$query=" Update penpalsubscriber set pass= password('$newpass') where palid='". $palid ."' and domain='".$domain."'";
$queryresponse=updateQuery($query);
if($queryresponse=="0"){
$query=" Update fgotpass set status='1' where username='". $palid ."' and domain='".$domain."' and emailcode ='".$id."'";
$queryresponse=updateQuery($query);
$mysub = "Password changed - " . $domain;
//$myMessage ="Dear <b>". $username. "</b>,<br><br>";
//$myMessage .= "Use the below link to reset your password<br><br>";
//$myMessage .= "Thanks for your interest in our service. " . "<br>";
//$myMessage .= "<b>Support " . $domain."</b>";
//$mysub = "Forgot Password " . $domain;
//$myMessage2 ="Dear ". $username. ",\n\n";
//$myMessage2 .= "Use the below link to reset your password\n\n";
//$myMessage2 .= "http://www.".$domain."/npass.php?email=".$email."&id=" . $emailcode . "\n\n";
//$myMessage2 .= "Thanks for your interest in our service. " . "\n";
//$myMessage2 .= "Support " . $domain;
$myMessage2 =$myMessage;
$myMessage =str_replace("##username##",$username,$myMessage);
$myMessage =str_replace("##domain##",$domain,$myMessage);
//$gate="2";
$mymail = sendmailtoclient($email,$myMessage,$myMmessage2,$mysub,$mfrom,$mfromname,$gate);
header('Location: login.php?err=25');
exit();
}else
{
header('Location: login.php?err=15');
exit();
}
?>