Server : Apache System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 User : apache ( 48) PHP Version : 8.0.28 Disable Function : NONE Directory : /var/www/html/mmishra/indem/academic-feedback/login/ |
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("itesdb", $con);
$newentry = $_GET["element_1"];
$result = mysql_query("SELECT count(*) as total FROM users where userid='$newentry'")or die(mysql_error());
list($total) = mysql_fetch_row($result);
if ($total > 0)
{
echo "User Available";
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Welcome to IT/ITES</title>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td width="100%" bgcolor="#CC0000"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99">User Identified </br> Welcome to IT/ITES Web
Portal</td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99">
<a href="http://210.212.48.54/ites/index.html">Go to Portal Page</a>
</td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#CC0000"><font color="#FFFFFF"><b>Indian
Institute of Information Technology, Allahabad</b></font></td>
</tr>
</table>
</center>
</div>
</body>
</html>
<?php
}
else
{
echo "User Not Available";
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Welcome to IT/ITES</title>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td width="100%" bgcolor="#CC0000"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99">User didn't Identified</td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99">
Try <a href="../login/form.html">Login</a> Again
OR <a href="../registration/form.html">Register</a>
</td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#CC0000"><font color="#FFFFFF"><b>Indian
Institute of Information Technology, Allahabad</b></font></td>
</tr>
</table>
</center>
</div>
</body>
</html>
<?php
}
mysql_close($con);
?>