Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/
Upload File :
Current File : /home2/wtmwscom/public_html/email_verify_update.php

<?php session_start();
include 'connection.php';
include 'function_lib.php';

if(empty($_GET['id'])|| empty($_GET['token'])){
    redirect("index.php");
}

$uid=$_GET['id'];
$token=$_GET['token'];

//$result=  mysqli_query($connection, "SELECT login_id, name, email FROM `user` WHERE uid='$uid' AND token='$token'");
$result=  mysqli_query($connection, "SELECT login_id, name, email FROM `user` WHERE uid='$uid' ");

//if(isset($_SESSION['userid'])&&!empty($_SESSION['userid'])){redirect('member/index.php');};

?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> 
<!--<![endif]-->
<html lang="en"> 
<head>
  <meta charset="utf-8">
  <link href="imgs/favicon2.ico" type="image/ico" rel="Shortcut Icon">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Verify email account - GlobalAd</title>
  <link rel="stylesheet" href="css/login.css">
  <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
  <section class="container">
    <?php //echo getMessage();?>
    <div class="login">
      <h1>Verify account - GlobalAd</h1>
      <?php       
      if(mysqli_num_rows($result)>0){
          $row=  mysqli_fetch_object($result);
          $token1=  uniqid();
          mysqli_query($connection, "UPDATE user SET is_email_verify = '1', token = '$token1' WHERE uid='$uid' ");
          ?>
      <table>
       
          <tr>
              <td>Name:</td>
              <td><?=$row->name?></td>
              
          </tr>
          <tr>
              <td>Login Id:</td>
              <td><?=$row->login_id?></td>
          </tr>
          <tr>
              <td>Email Id:</td>
              <td><?=$row->email?></td>
          </tr>
          
      </table>
      <br/>
      <h4>Your email account has been verified. Thank you</h4>
      <h4><a href="./login.php">Click here to login.</a></h4>
      
     <?php }
     else{?>
      <h1>This link has been expired</h1>
    <?php }
?>
     
    </div>
    <div class="login-help">
      <p><a href="login.php">Click here to login</a></p>
    </div>
  </section>
</body>
</html>