PK

ADDRLIN : /home/anibklip/pcfcindia.com/dump/
FLL :
Current File : /home/anibklip/pcfcindia.com/dump/XXlogin.php

<?php
$_SESSION["user"]="$lickey";
session_start();
$errorMessage = '';
if (isset($_POST['lickey'])) {
    
mysql_connect("localhost","root","tree");
mysql_select_db("edusoft");
   $lkey = $_POST['lickey'];


   // check if the user id and password combination exist in database
   $sql = "SELECT lickey
           FROM configure
           WHERE lickey = '$lkey'";

   $result = mysql_query($sql)
             or die('Query failed. ' . mysql_error());

   if (mysql_num_rows($result) == 1) {
      // the user id and password match,
      // set the session
      $_SESSION['install'] = true;

      // after login we move to the main page
      header('Location: install.php');
      exit;
   } else {
      $errorMessage = 'Sorry, wrong licence key';
   }
}
?>


<?php
include "../path.php";
include "$path/html/brain.php";


?><br>
<br>


<div id="main">



<div id="middle_column">

<div id="mainContent">
<div class="section"> 
    <h2 id="icon_pick"></h2> 
<div class="section_rss_icon"> <a href="/rss/editors_pick.rss"><img src="/images/rss_icon.gif" alt="rss" /></a> </div>
<br>
<br>
<?php

if ($errorMessage != '')
 {
echo "<p align=center><strong><font color=#990000> $errorMessage</font></strong></p>";
}?>
<table width="760" align="center">
<tr>
	<td align="center"><font color="#FF0000"><h1>EDUSOFT</h1></font></td>
</tr>

<tr>
<td align="center"><strong>Plese enter the licence key</strong></td>
</tr>

<tr>
<td width="100%" align="center" valign="top">
<table>
<form  method="post" name="install" id="install">
<tr>
	<td align="center"><strong>Licence Key</strong>:</td>
	<td align="center"><input type="text" name="lickey"></td>
</tr>


<tr>
	<td align="center" colspan="2"><input type="submit" name="submit" value="validate key"></td>
</tr>

</form>


</table>
<br><br>
</td>
</table>
<br>

		</div>
</div>

</div><br>
<br>
<?php
include "$path/html/tail.php";
?>


PK 99