<html>  
<head lang="en">  
    <meta charset="UTF-8">  
    <link type="text/css" rel="stylesheet" href="bootstrap-3.2.0-dist\css\bootstrap.css">  
    <title>Registration</title>  
</head>  
<style>  
    .login-panel {  
        margin-top: 150px;  
  
</style>  
<body>  
  
<div class="container"><!-- container class is used to centered  the body of the browser with some decent width-->  
    <div class="row"><!-- row class is used for grid system in Bootstrap-->  
        <div class="col-md-4 col-md-offset-4"><!--col-md-4 is used to create the no of colums in the grid also use for medimum and large devices-->  
            <div class="login-panel panel panel-success">  
                <div class="panel-heading">  
                    <h3 class="panel-title">Registration</h3>  
                </div>  
                <div class="panel-body">  
                    <form role="form" method="post" action="view_users3.php">  
                        <fieldset>  
<p align="center"><b><font color="#FF6600">ضع الكود الذي وصلك للبريد هنا 
وف خانة bass ضع الرقم الجوال من خيارات الادمن لتفعيل عظويتك واذا لم يصلك ضع كلمة code : </font>
    <center><b>يجب تسجيل الدخول?</b> <br></b><a href="login.php">Login here</a></center>
                            <div class="form-group">  
   <input class="form-control" placeholder="hashh" name="hashh" type="text" value=""> 
   <input class="form-control" placeholder="bass" name="bass" type="text" value="">  
                <p align="center"><font color="#FF6600"><b>اكتب اي نص:</b></font></p>
  <p align="center"><textarea rows="23" name="mes" cols="50" dir="rtl"></textarea></p>
  <p align="center"><span lang="en-us"><b>------------------------------</b></span></p>
  <p align="center"><font color="#FF6600"><b>«ضع ايميلك«:</b></font></p>
  <p align="center"><input rows="10" name="emails" cols="50" maxlength="550" dir="ltr"></input></p>
                            </div>  
  
  
                            <input class="btn btn-lg btn-success btn-block" type="submit" value="post" name="upp" >  
  
    </fieldset>  
                    </form>  
                    <center><b>Already registered ?</b> <br></b><a href="login.php">Login here</a></center><!--for centered text-->  
                </div>  
            </div>  
        </div>  
    </div>  
</div>  
  
</body>  
  
</html>  
<head>
<meta http-equiv="Content-Language" content="ar-sa">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>»”г «ббе «б—Ќгд «б—Ќнг</title>
</head>

<body> 
  
      
<!--here showing results in the table -->  
 
<?php 
include("config.php");  
session_start(); 
require_once('view_users.php');
//echo $your_phone;
//if ($user_id =="1"){
 if(isset($_POST['upp']))  
{  
//your_phone
if ($bass =="$your_phone"){
$bass=$_POST['bass'];
include("config.php");  
        include("database/db_conection.php");  
        $view_users_query="select * from users where groub_id ='1'";
//select query for viewing users.  
        $run=mysqli_query($dbcon,$view_users_query);//here run the sql query.  
  
        while($row=mysqli_fetch_array($run))//while look to fetch the result and store in a array $row.  
        {  

  $user_email=$row['user_email'];  
   $user_name=$row['user_name'];
//$ss="$user_email,";
//echo $ss 
  //$user_email='$user_email,';
//$_SESSION['email'];                
$email = explode("\r\n", $user_email);
//
//$email = $emails;
$name="$user_name";
$mes="$mes,code:$hash,user ''";
$count = count($email) ;
//$cou= $user_email;
//$emails=$user_email;
//$sender="code";
$emailsss="$row[user_email];";
$sm="webmail@shafeen.atwebpages.com";
//$email[$cou]= '$user_email';
$headers .= "From: $sender <$sm>\r\n";

for($cou =0 ; $cou <= $count ; $cou ++){
mail($email[$cou], $name, $mes, $headers);
}}
}}
?>


        </div>  
</div>  
</body>  
  
</html>  
