Example #1
0
<?php

include "ImgVerification.php";
$vImage = new vImage();
?>
<html>
<head>
<title>Login</title>
<style>
.white
	{
	font-family: Helvetica;
	font-size: 14px;
	font-weight:bold;
	color:#FFFFFF;
	}
.white_small
	{
	font-family: Helvetica;
	font-size: 12px;
	font-weight:bold;
	color:#FFFFFF;
	}
</style>
<script type="text/javascript">
window.onload=select_form;
function select_form()
	{
		document.getElementById("user").focus()
		document.getElementById("user").select()
	}
Example #2
0
<?php

include "ImgVerification.php";
$vImage = new vImage();
$vImage->gerText($_GET['size']);
$vImage->showimage();
Example #3
0
<?php

include $_SERVER['DOCUMENT_ROOT'] . "/common/class/admin/admin.class.php";
include "ImgVerification.php";
$vImage = new vImage();
$vImage->loadCodes();
//include "common/function.php";
if (!$vImage->checkCode()) {
    ?>
 <script>
 alert('Please enter the exact value from image');
 window.location="login.php";</script><?php 
    exit;
}
$login = new admin();
$login_status = $login->login($_POST['user'], $_POST['pass']);
//login($_POST['user'],$_POST['pass']);
$check_login = $login->checklogin();
if ($login->checklogin() == true) {
    echo "<script> window.location='index.php'; </script>";
} else {
    echo "<script> alert('Invalid Username and Password'); window.location='index.php'; </script>";
}