コード例 #1
0
ファイル: inicio.php プロジェクト: pereiraMichel/mapti
<!DOCTYPE html>
<?php 
require_once './classes/telas.class.php';
require_once './classes/texto.class.php';
require_once './classes/xml.class.php';
error_reporting(0);
$tela = new telas();
$texto = new texto();
session_start();
if (!$_SESSION['autorizado']) {
    header("Location: index.php");
}
?>

<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="">
    <meta name="author" content="Michel - MAP TI">
    <link rel="shortcut icon" href="../images/iconMapti.ico">
    <link rel="icon" type="image/png" href="../images/iconMapTI24x24.png">

    <title>Cloud Contratos - MAP TI</title>

    <!-- Bootstrap core CSS -->
    <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="http://getbootstrap.com/examples/dashboard/dashboard.css" rel="stylesheet">
コード例 #2
0
ファイル: index.php プロジェクト: pereiraMichel/mapti
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php 
require_once './classes/telas.class.php';
require_once './classes/xml.class.php';
error_reporting(0);
$tela = new telas();
session_start();
$_SESSION['autorizado'] = false;
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);
$erro = (int) filter_input(INPUT_GET, 'erro');
/* @var $_POST type */
//$nomeMail = utf8_decode(filter_input(INPUT_POST, 'login'));
//$senha = utf8_decode(filter_input(INPUT_POST, 'senha'));
//
//$login = addslashes($nomeMail);
//$pass = addslashes($senha);
//
//if (strlen($login) != 0 || strlen($pass) != 0) {
//    $acesso = new classeAcesso();
//
//    $acesso->setLogin($login);
//    $acesso->setSenha($pass);
//
コード例 #3
0
ファイル: inicio.php プロジェクト: pereiraMichel/redeunavida
include_once '../../controller/metodos.php';
//include_once '../model/modelUsuario.php';
//include_once '../model/modelPerfil.php';
//include_once '../model/modelTelefone.php';
//include_once '../model/modelEndereco.php';
include_once '../model/modelConfig.php';
include_once '../model/modelSuporte.php';
include_once '../model/modelBonus.php';
include_once '../model/modelAtividades.php';
include_once '../erros/erros.php';
include_once '../conexao/conectaBanco.php';
include_once '../classes/configuracao.class.php';
include_once '../classes/usuario.class.php';
require_once 'telas.php';
//error_reporting(0);
$modeloTelas = new telas();
//$modelUsuario = new modelUsuario();
$conectaBanco = new conectaBanco();
$conectaBanco->iniciaSessao();
//if(session_cache_expire(10)){//define o tempo para manter a sessão, em minutos
//    $_SESSION['logado'] = false;
//    session_destroy();
//    header("Location: ../index.php");
//
//}
$codAutoridade = (int) $_SESSION['codTipoUsuario'];
$saida = filter_input(INPUT_GET, 'saida');
if ($saida == "sim") {
    $_SESSION['logado'] = false;
    unset($_SESSION['idusuario']);
    unset($_SESSION['usuario']);