| 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/sms4real.com/wwwroot/topold/dashboard/ |
Upload File : |
<?php
include "general2.php";
include "connect.php";
include 'sendmailclient.php';
function rand_string( $length ) {
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
$smscode = $_SESSION["smscode"];
$clientsmscode =$_REQUEST["clientsmscode"];
// $newpass =$_REQUEST["newpass"];
// $confirmpass =$_REQUEST["confirmpass"];
//echo $currentPassword;
//exit();
if ($smscode !=$clientsmscode)
{
header('Location: cphonefinal.php?err=1');
exit();
}
$username = $_SESSION["username"];
$newphone = $_SESSION['newphone'];
$response = changephone($username,$domain,$newphone);
if ($response =="0")
{
//send an email
$email =$_SESSION['email'];
$mysub = "Phonenumber Change " . $domain;
$myMessage ="Dear <b>". $username. "</b>,<br><br>";
$myMessage .= "You just changed your registered phonenumber on ". $domain .".<br><br>";
$myMessage .= "If you have not requested this change, please contact your Account Manager.</b><br><br>";
$myMessage .= "Thanks for your doing business with us. " . "<br>";
$myMessage .= "<b>Support " . $domain."</b>";
$mysub = "Phonenumber Change " . $domain;
$myMessage2 ="Dear <b>". $username. "</b>\n\n";
$myMessage2 .= "You just changed your registered phonenumber on ". $domain .".\n\n";
$myMessage2 .= "If you have not requested this change, please contact your Account Manager.</b>\n\n";
$myMessage2 .= "Thanks for your doing business with us. " . "\n";
$myMessage2 .= "<b>Support " . $domain."\n";
$mymail = sendmailtoclient($email,$myMessage,$myMmessage2,$mysub,$mfrom,$mfromname);
//
header('Location: preferences.php?err=8');
exit();
}else
{
header('Location: preferences.php?err=6');
exit();
}
?>