Ejemplo n.º 1
0
<?php

session_start();
if (isset($_SESSION['logged'])) {
    header('location:index.php');
}
require_once 'include/inc_db.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//IT" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login</title>
<?php 
echo read_dir_js('lib/js/');
/*--> this is a function (see include/inc_function.php) that provide to invoke in dom all js file in js directory */
?>

<meta http-equiv="Content-Language" content="en">
<link rel="stylesheet" type="text/css" href="css/ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/style_index.css" />
<script type="text/javascript">
$(function(){
 $('#nome').focus();
 $('button').button();
 $('#login').submit(function(){
 $.ajax({
   type:"POST",
   url: 'check.php',
   data:$(this).serialize(),
   beforeSend: function(){
     $('.controllo_errori').html('<img src="img/loader.gif" />  Wait....');
Ejemplo n.º 2
0
<?php

require_once '../include/inc_db.php';
if ($path_stored_quizzes != '' && $admin_email != '' && $hostname != '' && $username != '' && $password != '' && $db != '') {
    header('location:../login.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//IT" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login</title>
<?php 
echo read_dir_js('../lib/js/');
/*--> this is a function (see include/inc_function.php) that provide to invoke in dom all js file in js directory */
?>

<meta http-equiv="Content-Language" content="en">
<link rel="stylesheet" type="text/css" href="../css/ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="../css/style_index.css" />
<script type="text/javascript">
$(function(){
 $('#b_path').focus();
 $('button').button();
 $('#wizard').submit(function(){
 $.ajax({
   type:"POST",
   url: 'check_wizard.php',
   data:$(this).serialize(),
   beforeSend: function(){
     $('.controllo_errori').html('<img src="../img/loader.gif" />  Wait....');
   },