Example #1
0
<?php

//Inicializações
date_default_timezone_set('Europe/Lisbon');
session_start();
ob_start();
//Includes
require_once rootPath('includes/database/jo_db.php', 1);
// Variável para o tamanho da página das tabelas
$lines_per_table = 10;
// Variáveis auxiliares do utilizador autenticado.
$user_authenticated = isset($_SESSION['login_vs']);
if ($user_authenticated && isset($_SESSION['loginVsNeedUpdate'])) {
    $_SESSION['login_vs'] = visitanteGetByEmail($_SESSION['login_vs']['email']);
    unset($_SESSION['loginVsNeedUpdate']);
}
$current_user = $user_authenticated ? $_SESSION['login_vs'] : null;
// Variáveis auxiliares para os relógios
$jo_Date = new TimeStamp(new DateTime("now"), joInitialDate());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>GIJO</title>
		<link rel="shortcut icon" href="/pw606/favicon.ico">
		<meta http-equiv="content-type" content="text/html" charset="ISO-8859-1" />
		<link href="/pw606/css/default.css" rel="stylesheet" type="text/css" />
		<link href="/pw606/css/blue.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" language="javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
		<script type="text/javascript" src="/pw606/js/googlemaps.js"></script> 
		<script type="text/javascript" src="/pw606/js/jquery.js"></script>
Example #2
0
<?php

require_once '../includes/utils.php';
include_once rootPath('includes/sijo/html_header.php', 1);
include_once rootPath('includes/sijo/master_header.php', 1);
$user = $_POST["user"];
$password = $_POST["password"];
$post = array();
$success = vsCheckLogin($user, $password);
if ($success) {
    $_SESSION['login_vs'] = visitanteGetByEmail($user);
} else {
    $post['err'] = 1;
    $post['user'] = $user;
    $_SESSION['_POST'] = $post;
}
header("location: /pw606/public/index.php");
exit;
include_once rootPath('includes/sijo/master_footer.php', 1);