Current Path : /var/www/html/
Upload File :
Current File : /var/www/html/login.php

<?php @session_start(); 
include_once('searching_files/FrontController.php'); 
include_once('social/__dashboardconfig/class.function.php');
 	   if(isset($_POST['login']))
       {  //print_r($_REQUEST); die;
	    if($_POST['username']!=''){
       	$login = new CentralizeLogin(); 
		$Err =  $login->check_users_new($_POST['username'],$_POST['password']);
	     }
	  else {  $Err =  'Please fill your login details.';}
    }
    
    
?>
<div id="div-regForm" >
  <table>
    <tbody>
      <tr>
        <td>
        	<div class="form-sub-title" style="margin-top:3.5px;">Login Here:</div>
        	<form id="login" action="" method="post">
            	<table height="129" cellpadding="1">
                  <tbody>
                    <tr>
                      <td colspan="2" align="center"></td>
                    </tr>
                     <tr>
                      <td><label for="label">User Id:</label></td>
                      <td><div class="input-container">
                          <input name="username" id="username" type="text" value="<?php if(isset($_POST['username'])){ echo $_POST['username'];}?>">
                        </div></td>
                    </tr>
                    <tr>
                      <td><label for="lname">Password:</label></td>
                      <td><div class="input-container">
                          <input name="password" id="password" type="password">
                        </div></td>
                    </tr>
                    
                    <tr>
                    <td colspan="2" align="center">
                     <?php if(isset($Err)){echo '<font color="#D40000">'.$Err.'</font>';}?>
                     </td>
                     </tr>
                    
                    <tr>
                      <td>&nbsp;</td>
                      <td><input type="submit" name="login" class="greenButton" value="Login"></td>
                    </tr>
                    
                    <tr>
                      <td>&nbsp;</td>
                      <td>
                      </td>
                    </tr>
                   </tbody>
                </table>
			</form>
        </td>
    
        </td>
      </tr>
    </tbody>
  </table>
  <div id="error"><?=$Err?> &nbsp; </div>
</div>



,