コード例 #1
0
ファイル: index.php プロジェクト: jpedrogarcia/jabutiedu-php
<?php

include_once 'header.php';
include_once 'include/sessao.php';
sess_start();
$logout = getFieldFromPage("logout");
if ($logout != "") {
    sess_reset();
}
?>


<script type="text/javascript" src="index.js"></script>

<div>

	<div class="login-painel">
	
		<div style="width: 100%; height: 120px;">
		</div>

		<div style="width: 100%; height: 100px; text-align: center">
			<p class="main-logo">Jabuti Edu</p>
			<p style="padding:0; margin:0;">Versão 1.0</p>
		</div>
			
		
		<div style="width: 100%; height: 90px; text-align: center" >
			<form id="login_form">
					<div style="margin:10px;">
						<input class="login_field" type="text" name="login" id="login" size="20" maxlength="20" value="">
コード例 #2
0
ファイル: sessao.php プロジェクト: jpedrogarcia/jabutiedu-php
function checa_sessao_permite_servico()
{
    global $SES_VAR;
    if (!isset($SES_VAR['id_pessoa'])) {
        sess_reset();
        //header('Location: index.php');
    }
    if ($SES_VAR['id_pessoa'] == 0) {
        sess_reset();
        //header('Location: index.php');
    }
    return true;
}