Guest User

Untitled

a guest
Aug 25th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 17.81 KB | None | 0 0
  1. <?php
  2. include('config.php');
  3.  
  4. class Packet
  5. {
  6.   private $buff = "";
  7.   private $len = 0;
  8.  
  9.   public function WriteS($text)
  10.   {
  11.     $count = strlen($text);
  12.     for($n=0;$n<$count;$n++)
  13.     {
  14.       $this->buff .= $text[$n];
  15.     }
  16.     $this->buff .= "\0";
  17.     $this->len += $count + 1;
  18.   }
  19.   public function WriteC($value)
  20.   {
  21.     $this->buff .= pack('c', $value);
  22.     $this->len += 1;
  23.   }
  24.   public function WriteD($value)
  25.   {
  26.     $this->buff .= pack('l', $value);
  27.     $this->len += 4;
  28.   }
  29.   public function GetBuff()
  30.   {
  31.     return $this->buff;
  32.   }
  33.   public function GetLen()
  34.   {
  35.     return $this->len;
  36.   }
  37.   public function SendTo($sock)
  38.   {
  39.     if($this->len > 0)
  40.     {
  41.       $totalLen = 2 + $this->len;
  42.       fwrite($sock, pack("s", $totalLen) . $this->buff);
  43.     }
  44.   }
  45. };
  46.  
  47. class PacketIn
  48. {
  49.   private $len = 0;
  50.   private $sock;
  51.   public function Init($socket)
  52.   {
  53.     $this->sock = $socket;
  54.     list(, $value) = unpack ( "v", fread ( $this->sock, 2 ) );
  55.     $this->len = $value;
  56.     if($this->len > 0)
  57.     {
  58.       return true;
  59.     }
  60.     return false;
  61.   }
  62.   public function GetLen()
  63.   {
  64.     return $this->len;
  65.   }
  66.   public function ReadC()
  67.   {
  68.     list(, $value) = unpack("c", fread($this->sock, 1));
  69.     return $value;
  70.   }
  71.   public function ReadD()
  72.   {
  73.     list(, $value) = unpack("l", fread($this->sock, 4));
  74.     return $value;
  75.   }
  76.   public function ReadS()
  77.   {
  78.     $str = "";
  79.     while(!feof($this->sock))
  80.     {
  81.       $str .= fread($this->sock, 1);
  82.     }
  83.     return $str;
  84.   }
  85. };
  86.  
  87. function ShowCaptcha()
  88. {
  89.     global $captchaType;
  90.    
  91.   $captchaId  = '1454';
  92.     if($captchaType == 1)
  93.     {
  94.         $captchaId = '1471';
  95.     }
  96.   $publicKey  = '27407abc-f6dc-4ec2-a960-8f97f0cde93d';
  97.   return GetCaptcha($captchaId, $publicKey);
  98. }
  99.  
  100. function IsValidCaptcha()
  101. {
  102.   global $captchaType;
  103.   if(isset($_POST['_type']))
  104.   {
  105.     $captchaId  = '1454';
  106.     $privateKey = '22f92520-9fc1-413a-94ff-21b52d805b0a';
  107.     if($captchaType == 1)
  108.     {
  109.       $captchaId = '1471';
  110.     }
  111.     $challengeValue = $_POST['adscaptcha_challenge_field'];
  112.     $responseValue  = $_POST['adscaptcha_response_field'];
  113.     $remoteAddress  = $_SERVER["REMOTE_ADDR"];
  114.  
  115.     if ("true" == ValidateCaptcha($captchaId, $privateKey, $challengeValue, $responseValue, $remoteAddress))
  116.     {
  117.       return TRUE;
  118.     }
  119.   }
  120.   return FALSE;
  121. }
  122.  
  123. function encrypt( $plain )
  124. {
  125.   $array_mul = array ( 0 => 213119, 1 => 213247, 2 => 213203, 3 => 213821 );
  126.   $array_add = array ( 0 => 2529077, 1 => 2529089, 2 => 2529589, 3 => 2529997 );
  127.   $dst = $key = array ( 0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 0 );
  128.  
  129.   for ( $i = 0; $i < strlen ( $plain ); $i++ ) {
  130.     $dst [ $i ] = $key [ $i ] = ord ( substr ( $plain, $i, 1 ) );
  131.   }
  132.  
  133.   for ( $i = 0; $i <= 3; $i++ ) {
  134.     $val [ $i ] = fmod ( ( $key [ $i * 4 + 0 ] + $key [ $i * 4 + 1 ] * 0x100 + $key [ $i * 4 + 2 ] * 0x10000 + $key [ $i * 4 + 3 ] * 0x1000000 ) * $array_mul [ $i ] + $array_add [ $i ], 4294967296 );
  135.   }
  136.  
  137.   for ( $i = 0; $i <= 3; $i++ ) {
  138.     $key [ $i * 4 + 0 ] = $val [ $i ] & 0xff;
  139.     $key [ $i * 4 + 1 ] = $val [ $i ] / 0x100 & 0xff;
  140.     $key [ $i * 4 + 2 ] = $val [ $i ] / 0x10000 & 0xff;
  141.     $key [ $i * 4 + 3 ] = $val [ $i ] / 0x1000000 & 0xff;
  142.   }
  143.  
  144.   $dst [ 0 ] = $dst [ 0 ] ^ $key [ 0 ];
  145.   for ( $i = 1; $i <= 15; $i++ ) {
  146.     $dst [ $i ] = $dst [ $i ] ^ $dst [ $i - 1 ] ^ $key [ $i ];
  147.   }
  148.  
  149.   for ( $i = 0; $i <= 15; $i++ ) {
  150.     if ( $dst [ $i ] == 0 ) {
  151.       $dst [ $i ] = 0x66;
  152.     }
  153.   }
  154.  
  155.   $encrypted = "0x";
  156.   for ( $i = 0; $i <= 15; $i++ ) {
  157.     if ( $dst [ $i ] < 16 ) {
  158.       $encrypted .= "0";
  159.     }
  160.     $encrypted .= /*strtoupper (*/ dechex ( $dst [ $i ] ) /*)*/;
  161.   }
  162.   return ( $encrypted );
  163. }
  164.  
  165. function DBGetAccountId($login)
  166. {
  167.   global $dbHost, $dbPort;
  168.   $sock = fsockopen($dbHost, $dbPort) or die('Cannot connect to: '.$dbHost);
  169.   $packet = new Packet();
  170.   $packet->WriteC(3);
  171.   $packet->WriteS($login);
  172.   $packet->SendTo($sock);
  173.   //GetReply
  174.   $pckIn = new PacketIn();
  175.   if($pckIn->Init($sock))
  176.   {
  177.       $pckIn->ReadC();  //OpCode
  178.       $accountId = $pckIn->ReadD(); //accountId
  179.       fclose($sock);
  180.       return $accountId;
  181.   }
  182.   fclose($sock);  
  183.   return 0;  
  184. }
  185.  
  186. //returns accountId if succeed
  187. //-1 - already exists
  188. // 0 - invalid params (login,pwd,email)
  189. //-2 - db error
  190. function DBCreateAccount($login, $password, $email)
  191. {
  192.   $accountId = 0;
  193.   global $dbHost, $dbPort;
  194.   $sock = fsockopen($dbHost, $dbPort) or die('Cannot connect to: '.$dbHost);
  195.   $packet = new Packet();
  196.   $packet->WriteC(0);
  197.   $packet->WriteS($login);
  198.   $packet->WriteS(encrypt($password));
  199.   $packet->WriteS($email);
  200.   $packet->SendTo($sock);
  201.  
  202.   $pckIn = new PacketIn();
  203.   if($pckIn->Init($sock))
  204.   {
  205.     $pckIn->ReadC();  //OpCode
  206.     $accountId = $pckIn->ReadD();
  207.     $message = $pckIn->ReadS();
  208.   }  
  209.   fclose($sock);
  210.   return $accountId;
  211. }
  212.  
  213. //returns accountId when succeed, 0 - invalid params (login, passwordd, email or newPassword)
  214. //-1 - email doesnt match
  215. //-2 - Password doesnt match
  216. //-3 - DB Error
  217. function DBChanePassword($login, $password, $newPassword, $email)
  218. {
  219.   $accountId = 0;
  220.   global $dbHost, $dbPort;
  221.   $sock = fsockopen($dbHost, $dbPort) or die('Cannot connect to: '.$dbHost);
  222.   $packet = new Packet();
  223.   $packet->WriteC(1);
  224.   $packet->WriteS($login);
  225.   $packet->WriteS(encrypt($password));
  226.   $packet->WriteS($email);
  227.   $packet->WriteS(encrypt($newPassword));
  228.   $packet->SendTo($sock);
  229.  
  230.   $pckIn = new PacketIn();
  231.   if($pckIn->Init($sock))
  232.   {
  233.     $pckIn->ReadC();  //OpCode
  234.     $accountId = $pckIn->ReadD();
  235.     $message = $pckIn->ReadS();
  236.   }  
  237.   fclose($sock);
  238.   return $accountId;
  239. }
  240.  
  241. //returns accountId if succeed
  242. // 0 - invalid params (login, email or newPassword)
  243. //-1 - email doesn't match
  244. //-2 - DB Error
  245. function DBResetPassword($login, $email, $newPassword)
  246. {
  247.   $accountId = 0;
  248.   global $dbHost, $dbPort;
  249.   $sock = fsockopen($dbHost, $dbPort) or die('Cannot connect to: '.$dbHost);
  250.   $packet = new Packet();
  251.   $packet->WriteC(2);
  252.   $packet->WriteS($login);
  253.   $packet->WriteS($email);
  254.   $packet->WriteS($newPassword);
  255.   $packet->WriteS(encrypt($newPassword));
  256.   $packet->SendTo($sock);
  257.  
  258.   $pckIn = new PacketIn();
  259.   if($pckIn->Init($sock))
  260.   {
  261.     $pckIn->ReadC();  //OpCode
  262.     $accountId = $pckIn->ReadD();
  263.     $message = $pckIn->ReadS();
  264.     if($message == 'Password has been changed!')
  265.     {
  266.             //mail the password
  267.             echo "Password has been changed!!!!!!!!!!!!!!!<br>";
  268.             echo $newPassword.'<br>';
  269.     }
  270.   }  
  271.  
  272.   return $accountId;
  273. }
  274.  
  275. function ShowMenu()
  276. {
  277.   $html = '<div class="login"><a href="index.php?page=1" id="apmenu">Create Account</a></div>
  278. <div class="login"><a href="index.php?page=2" id="apmenu">Change Password</a></div>
  279. <div class="login"><a href="index.php?page=3" id="apmenu">Reset Password</a></div>';
  280.   return $html;
  281. }
  282.  
  283.  
  284. function ShowCreateAccount()
  285. {
  286.  
  287.   $html = '<h2>Create Account</h2>
  288.          <form action="index.php" id="apform" method="POST" >
  289.          <h3>Account name</h3>
  290.          <input type="text" id="apinput" name="_login">
  291.          <h3>Password</h3>
  292.          <input type="password" id="apinput" name="_password">
  293.          <h3>Confirm password</h3>
  294.          <input type="password" id="apinput" name="_password2">
  295.          <h3>Email</h3>
  296.          <input type="text" id="apinput" name="_email" maxlength="30">
  297.          <input type="hidden" name="_type" value="1">
  298.          <h3>Captcha</h3>
  299.          <center><div class="g-recaptcha" data-sitekey="6LfBjwUTAAAAANlzDmHv7KyPr97IWhOKWLIOVsXr"></div><br></center>
  300.          <input type="submit" id="apsubmit" name="_submit" class="submit" value="Create">
  301.          </form>';
  302.          
  303.   return $html;
  304. }
  305.  
  306. function IsValidLogin($login)
  307. {
  308.   $loginRegex = "/^[a-zA-Z0-9]{4,14}+$/";
  309.   if(preg_match($loginRegex, $login))
  310.   {
  311.     return TRUE;
  312.   }
  313.   return FALSE;
  314. }
  315.  
  316. function IsValidPassword($password)
  317. {
  318.   $regex = "/^.{4,32}+$/";
  319.   if(preg_match($regex, $password))
  320.   {
  321.     return TRUE;
  322.   }
  323.   return FALSE;
  324. }
  325.  
  326. function IsValidEmail($email)
  327. {
  328.   $regex = "/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9-]+\.[a-zA-Z\.]{2,5}$/";
  329.  
  330.   if ($email.strlen() > 30)
  331.       return FALSE;
  332.  
  333.   if(preg_match($regex, $email))
  334.   {
  335.     return TRUE;
  336.   }
  337.   return FALSE;
  338. }
  339.  
  340. function RequestCreateAccount()
  341. {
  342.   $login = $_POST['_login'];
  343.   $password = $_POST['_password'];
  344.   $password2 = $_POST['_password2'];
  345.   $email = $_POST['_email'];
  346.   $login = htmlspecialchars($login);
  347.   $password = htmlspecialchars($password);
  348.   $password2 = htmlspecialchars($password2);
  349.   $email = htmlspecialchars($email);
  350.  
  351.  
  352.  
  353.   if(!IsValidLogin($login))
  354.   {
  355.     echo '<div style="color: red;"><center>Invalid account name!<br>Please try again.</center></div>';
  356.     echo ShowCreateAccount();
  357.     return FALSE;
  358.   }
  359.   if(!IsValidPassword($password))
  360.   {
  361.     echo '<div style="color: red;"><center>Invalid password!<br>Please try again.</center></div>';
  362.     echo ShowCreateAccount();
  363.     return FALSE;
  364.   }
  365.   if(!IsValidEmail($email))
  366.   {
  367.     echo '<div style="color: red;"><center>Invalid email!<br>Please try again.</center></div>';
  368.     echo ShowCreateAccount();
  369.     return FALSE;
  370.   }
  371.   if($password != $password2)
  372.   {
  373.     echo '<div style="color: red;"><center>Confirmed password doesn\'t match!<br>Please try again.</center></div>';
  374.     echo ShowCreateAccount();
  375.     return FALSE;
  376.   }
  377.  
  378.   if(isset($_POST['g-recaptcha-response'])){
  379.   $captcha=$_POST['g-recaptcha-response'];
  380.         }
  381.   if(!$captcha)
  382.   {
  383.     echo '<div style="color: red;"><center>Please click on a CAPTCHA box to verify you are human.</center></div>';
  384.     echo ShowCreateAccount();
  385.     return FALSE;
  386.   }
  387.  
  388.   $response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LfBjwUTAAAAAHi_AEuRzZQazsd3e79C0njRrAQk&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
  389.         if($response.success==false)
  390.         {
  391.           echo '<div style="color: red;"><center>Captcha doesn\'t match!<br>Nice try bot ;)</center></div>';
  392.           echo ShowCreateAccount();
  393.           return FALSE;
  394.         }
  395.  
  396.   $accountId = DBCreateAccount($login, $password, $email);
  397.   if($accountId > 0)
  398.   {
  399.     header("Location: ../46887726532232275293.php");
  400.     return TRUE;
  401.   }else if($accountId == -1)
  402.   {
  403.     echo '<div style="color: red;"><center>Account already exists!<br>Please try again.</center></div>';
  404.     echo ShowCreateAccount();
  405.     return FALSE;
  406.   }else
  407.   {
  408.     echo '<div style="color: red;"><center>Account Creation failed.<br>Please verify your email address.</center></div>';
  409.     return FALSE;
  410.   }
  411. }
  412.  
  413. function ShowChangePassword()
  414. {
  415.   global $captchaType;
  416.   $html = '<h2>Change Password</h2><br>
  417.          <form action="index.php" id="apform" method="POST" >
  418.          <h3>Account name</h3>
  419.          <input type="text" id="apinput" name="_login"><br><br>
  420.          <h3>Old password</h3>
  421.          <input type="password" id="apinput" name="_oldpassword"><br><br>
  422.          <h3>New password</h3>
  423.          <input type="password" id="apinput" name="_newpassword"><br><br>
  424.          <h3>Confirm new password</h3>
  425.          <input type="password" id="apinput" name="_newpassword2"><br><br>
  426.          <h3>Email</h3>
  427.          <input type="text" id="apinput" name="_email"><br><br>
  428.          <input type="hidden" name="_type" value="2">
  429.          <center><h3>Captcha</h3></center><br>
  430.           <center><div class="g-recaptcha" data-sitekey="6LfBjwUTAAAAANlzDmHv7KyPr97IWhOKWLIOVsXr"></div></center><br>
  431.          <input type="submit" id="apsubmit" name="_submit" class="submit" value="Change">
  432.          </form>';
  433.          
  434.   return $html;
  435. }
  436.  
  437. function RequestChangePassword()
  438. {
  439.   $login = $_POST['_login'];
  440.   $oldpassword = $_POST['_oldpassword'];
  441.   $newpassword = $_POST['_newpassword'];
  442.   $newpassword2 = $_POST['_newpassword2'];
  443.   $email = $_POST['_email'];
  444.   $login = htmlspecialchars($login);
  445.   $oldpassword = htmlspecialchars($oldpassword);
  446.   $newpassword = htmlspecialchars($newpassword);
  447.   $newpassword2 = htmlspecialchars($newpassword2);
  448.   $email = htmlspecialchars($email);
  449.  
  450.   if(!IsValidLogin($login))
  451.   {
  452.     echo '<div style="color: red;"><center>Invalid account name!<br>Please try again.</center></div>';
  453.     echo ShowChangePassword();
  454.     return FALSE;
  455.   }
  456.   if(!IsValidPassword($oldpassword))
  457.   {
  458.     echo '<div style="color: red;"><center>Invalid old password!<br>Please try again.</center></div>';
  459.     echo ShowChangePassword();
  460.     return FALSE;
  461.   }
  462.   if(!IsValidPassword($newpassword))
  463.   {
  464.     echo '<div style="color: red;"><center>Invalid new password!<br>Please try again.</center></div>';
  465.     echo ShowChangePassword();
  466.     return FALSE;
  467.   }
  468.   if(!IsValidEmail($email))
  469.   {
  470.     echo '<div style="color: red;"><center>Invalid email!<br>Please try again.</center></div>';
  471.     echo ShowChangePassword();
  472.     return FALSE;
  473.   }
  474.   if($newpassword != $newpassword2)
  475.   {
  476.     echo '<div style="color: red;"><center>Confirmed password doesn\'t match!<br>Please try again.</center></div>';
  477.     echo ShowChangePassword();
  478.     return FALSE;
  479.   }
  480.  
  481.   if(isset($_POST['g-recaptcha-response'])){
  482.   $captcha=$_POST['g-recaptcha-response'];
  483.         }
  484.   if(!$captcha)
  485.   {
  486.     echo '<div style="color: red;"><center>Please click on a CAPTCHA box to verify you are human.</center></div>';
  487.     echo ShowChangePassword();
  488.     return FALSE;
  489.   }
  490.  
  491.   $response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LfBjwUTAAAAAHi_AEuRzZQazsd3e79C0njRrAQk&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
  492.         if($response.success==false)
  493.         {
  494.           echo '<div style="color: red;"><center>Captcha doesn\'t match!<br>Nice try bot ;)</center></div>';
  495.           echo ShowChangePassword();
  496.           return FALSE;
  497.         }
  498.  
  499.   $accountId = DBGetAccountId($login);
  500.   if($accountId <= 0)
  501.   {
  502.     echo '<div style="color: red;"><center>Account doesn\'t exist!<br>Please try again.</center></div>';
  503.     echo ShowChangePassword();
  504.     return FALSE;
  505.   }
  506.  
  507.   $accountId = DBChanePassword($login, $oldpassword, $newpassword, $email);
  508.   if($accountId > 0)
  509.   {
  510.     echo '<center>Password has been changed!</center><br>';
  511.     return TRUE;
  512.   }else if($accountId == -1)
  513.   {
  514.     echo '<div style="color: red;"><center>Email doesn\'t match!<br>Please try again.</center></div>';
  515.     echo ShowChangePassword();
  516.     return FALSE;
  517.   }else if($accountId == -2)
  518.   {
  519.     echo '<div style="color: red;"><center>Password doesn\'t match!<br>Please try again.</center></div>';
  520.     echo ShowChangePassword();
  521.     return FALSE;
  522.   }else
  523.   {
  524.     echo '<div style="color: red;"><center>Something went wrong.<br>Please check your inserted information or contact the server administration.</center></div>';
  525.     return FALSE;
  526.   }
  527. }
  528.  
  529. function GeneratePassword()
  530. {
  531.   $length = 8;
  532.  
  533.   list($usec, $sec) = explode(' ', microtime());
  534.   $seed = (float) $sec + ((float) $usec * 100000);
  535.   srand($seed);
  536.   $alfa = "1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
  537.   $password = "";
  538.   for($i = 0; $i < $length; $i ++)
  539.   {
  540.     $password .= $alfa[rand(0, strlen($alfa))];
  541.   }
  542.  
  543.   return $password;
  544. }
  545.  
  546. function ShowResetPassword()
  547. {
  548.   global $captchaType;
  549.   $html = '<h2>Reset Password</h2><br>
  550.          <form action="index.php" id="apform" method="POST" >
  551.          <h3>Account name</h3>
  552.          <input type="text" id="apinput" name="_login"><br><br>
  553.            <h3>Email</h3>
  554.          <input type="text" id="apinput" name="_email"><br><br>
  555.          <input type="hidden" name="_type" value="3">
  556.          <h3>Captcha</h3><br>
  557.          <center><div class="g-recaptcha" data-sitekey="6LfBjwUTAAAAANlzDmHv7KyPr97IWhOKWLIOVsXr"></div></center><br>
  558.          <input type="submit" id="apsubmit" name="_submit" class="submit" value="Reset">
  559.          </form>';
  560.          
  561.   return $html;
  562. }
  563.  
  564. function RequestResetPassword()
  565. {
  566.   $login = $_POST['_login'];
  567.   $email = $_POST['_email'];
  568.   $login = htmlspecialchars($login);
  569.   $email = htmlspecialchars($email);
  570.  
  571.   if(!IsValidLogin($login))
  572.   {
  573.     echo '<div style="color: red;"><center>Invalid account name!<br>Please try again.</center></div>';
  574.     echo ShowResetPassword();
  575.     return FALSE;
  576.   }
  577.   if(!IsValidEmail($email))
  578.   {
  579.     echo '<div style="color: red;"><center>Invalid email!<br>Please try again.</center></div>';
  580.     echo ShowResetPassword();
  581.     return FALSE;
  582.   }
  583.  
  584.   if(isset($_POST['g-recaptcha-response'])){
  585.   $captcha=$_POST['g-recaptcha-response'];
  586.         }
  587.   if(!$captcha)
  588.   {
  589.     echo '<div style="color: red;"><center>Please click on a CAPTCHA box to verify you are human.</center></div>';
  590.     echo ShowResetPassword();
  591.     return FALSE;
  592.   }
  593.  
  594.   $response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LfBjwUTAAAAAHi_AEuRzZQazsd3e79C0njRrAQk&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
  595.         if($response.success==false)
  596.         {
  597.           echo '<div style="color: red;"><center>Captcha doesn\'t match!<br>Nice try bot ;)</center<</div>';
  598.           echo ShowResetPassword();
  599.           return FALSE;
  600.         }
  601.  
  602.   $accountId = DBGetAccountId($login);
  603.   if($accountId <= 0)
  604.   {
  605.     echo '<div style="color: red;"><center>Account doesn\'t exist!<br>Please try again.</center></div>';
  606.     echo ShowResetPassword();
  607.     return FALSE;
  608.   }
  609.  
  610.   $newPassword = GeneratePassword();
  611.   $accountId = DBResetPassword($login, $email, $newPassword);
  612.   if($accountId > 0)
  613.   {
  614.     echo '<center>Password has been reset!<br>Please check your email to see details.</center><br>';
  615.     return TRUE;
  616.   }else if($accountId == -1)
  617.   {
  618.     echo '<div style="color: red;"><center>Email doesn\'t match!<br>Please try again.</center></div>';
  619.     echo ShowResetPassword();
  620.     return FALSE;
  621.   }else
  622.   {
  623.     echo '<div style="color: red;"><center>There was an error in your request. Please check your data.<center></div>';
  624.     return FALSE;
  625.   }
  626. }
  627. ?>
Add Comment
Please, Sign In to add comment