<?php require ("header.php")?>
    
    <div class="header bg-gradient-success py-7 py-lg-8">
      <div class="separator separator-bottom separator-skew zindex-100">
        <svg x="0" y="0" viewBox="0 0 2560 100" preserveAspectRatio="none" version="1.1" xmlns="http://www.w3.org/2000/svg">
          <polygon class="fill-default" points="2560 0 2560 100 0 100"></polygon>
        </svg>
      </div>
    </div>
    
    
    
    <!-- Page content -->
    <div class="container mt--8 pb-5">
  <div class="row justify-content-center">
    <div class="col-lg-5 col-md-7">
      <div class="card bg-secondary shadow border-0">
        <div class="card-body px-lg-5 py-lg-5">
          <div class="text-center text-muted mb-4">
            <small>Sign up with your credentials</small>
          </div>
         
         
         
         
         
         
         
         
         
          <img src="../img/LOGO.png" class="img-responsive" style="float:left;width:100%;height:100%;"> 
              
                      
        <p class="login-box-msg"><strong>1DH Wallet | Create Account</strong></p>
        
             <!-- Register Form Starts -->
                        <?php
                        if(isset($error4)){
                            echo $error4;
                        }elseif(isset($error3)){
                            echo $error3;
                        }elseif(isset($error)){
                            echo $error;
                        }elseif(isset($success)){
                            echo $success;
                        }
                        ?>  
        
        <form method="POST" action="" role="form"> 
               
               
              
          
                        
                             <div class="form-group mb-3">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-user-circle"></i></span>
                </div>
                <select class="form-control" name="sex" required>
                 <option value="">Select Your Gender</option>
                <option value="1">MALE</option>
                <option value="2">FEMALE</option>
            </select>
              </div>
            </div>
            
            
            
            
            <div class="form-group">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-user-circle"></i></span>
                </div>
                 <input type="text" class="form-control" placeholder="First Name"  name="firstname">
              </div>
            </div>
            
            
            
            
            <div class="form-group">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-user-circle"></i></span>
                </div>
                 <input type="text" class="form-control" placeholder="Last Name"  name="lastname">
              </div>
            </div>
            
            
             <div class="form-group">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-user-circle"></i></span>
                </div>
                 <input type="text" class="form-control" placeholder="User Name"  name="username">
              </div>
            </div>
            
            
            <div class="form-group">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-envelope"></i></span>
                </div>
                 <input type="email" class="form-control" placeholder="Email Address"  name="email">
              </div>
            </div>
            
            
           <input class="form-control border-primary"
                           type="hidden"
                           name="date" 
     value="<?php
echo(date("jS F Y g.iA"));
?>" readonly>


<input name="ip" value=" <?php
			function getUserIpAddr(){
    if(!empty($_SERVER['HTTP_CLIENT_IP'])){
        //ip from share internet
        $ip = $_SERVER['HTTP_CLIENT_IP'];
    }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
        //ip pass from proxy
        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
    }else{
        $ip = $_SERVER['REMOTE_ADDR'];
    }
    return $ip;
}

echo ' '.getUserIpAddr();
?> " type="hidden" required="">


            <input name="date" type="hidden" 
 value="<?php
echo(date("jS F Y g.iA"));
?> ">  
      
      
 
  <?php
$pin = rand(1000,10000);
?>
 <input name="pin" type="hidden" value="<?php echo $pin; ?>">  
 
 
     
        
        
         <?php
$wallet_id = rand(10000000000,100000000000);
?>
 <input name="wallet_id" type="hidden" value="<?php echo $wallet_id; ?>">  
                  
                  
            
            
              <div class="form-group">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-phone"></i></span>
                </div>
                 <input type="text" class="form-control" placeholder="Contact Phone Number"  name="phone">
              </div>
            </div>
            
            
            
            
              <div class="form-group">
              <div class="input-group input-group-alternative">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="ni ni-lock-circle-open"></i></span>
                </div>
                <input type="password" class="form-control" placeholder="Password"  name="password">
              </div>
            </div>
            
            
            
       
      <?php
  $orderssql = "SELECT id, email2,  phone, city, state, domain_name, copyright, country from settings  ORDER BY id DESC";
    $ordersres = mysql_query($orderssql);
    $numrows = mysql_num_rows($ordersres);
   

 while($row = mysql_fetch_assoc($ordersres))
     {


echo"<input type='hidden' class='form-control' name='cname' id='details'  value='".$row['domain_name']."'>

<input type='hidden' class='form-control' name='cemail' id='details'  value='".$row['email2']."'>

<input type='hidden' class='form-control' name='cphone' id='details'  value='".$row['phone']."'>

<input type='hidden' class='form-control' name='caddress' id='details'  value='".$row['address']."'>

<input type='hidden' class='form-control' name='copyright' id='details'  value='".$row['copyright']."'>
      
      
       
";

}
?>        
            
            
          
            
            
            <div class="text-center">
             <button type="submit" name="action"  class="btn btn-danger btn-block btn-flat">Sign Up</button>
              
              
              
             
             
              
            </div>
          </form>
          
          <hr>
           <div class="col-12 text-right">
         
           <a href="login.php" row="button" class="btn btn-danger btn-block btn-flat" >Login as a Customer !!!</a>
         
         
        </div>
          
          
          
          
          
          
        </div>
      </div>
      
      
      <div class="row mt-3">
       
        
        
        
      </div>
    </div>
  </div>
</div>
  </div>
  
  
  
  
  
  
  
  
  <!-- Footer -->
  <!--<footer class="py-5">-->
  <!--  <div class="container">-->
  <!--    <div class="row align-items-center justify-content-xl-between">-->
  <!--      <div class="col-xl-6">-->
  <!--        <div class="copyright text-center text-xl-left text-muted">-->
  <!--         <?php echo $copyright ?>-->
  <!--        </div>-->
  <!--      </div>-->
  <!--      <div class="col-xl-6">-->
  <!--        <ul class="nav nav-footer justify-content-center justify-content-xl-end">-->
  <!--          <li class="nav-item">-->
  <!--            <a href="#" class="nav-link" target="_blank">About Us</a>-->
  <!--          </li>-->
  <!--          <li class="nav-item">-->
  <!--            <a #="default.html" class="nav-link" target="_blank">Privacy Policy</a>-->
  <!--          </li>-->
  <!--          <li class="nav-item">-->
  <!--            <a #="default.html" class="nav-link" target="_blank">Terms of Service</a>-->
  <!--          </li> -->
  <!--        </ul>-->
  <!--      </div>-->
  <!--    </div>-->
  <!--  </div>-->
  <!--</footer>-->
  <!-- Core -->
  <script data-cfasync="false" src="cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="ui/vendor/jquery/dist/jquery.min.js"></script>
  <script src="ui/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
  <!-- Argon JS -->
  <script src="ui/js/argone209.js?v=1.0.0"></script>
  </body>


<!-- Mirrored from demo.larapass.net/login by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 24 Oct 2020 18:25:18 GMT -->
</html>