/* Copyright 2005 Flávio Ribeiro
This file is part of OCOMON.
OCOMON is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
OCOMON is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
is_file( "./includes/config.inc.php" )
or die( "Você precisa configurar o arquivo config.inc.php em OCOMON/INCLUDES/para iniciar o uso do OCOMON!
Leia o arquivo README.TXT para obter as principais informações sobre a instalação do OCOMON!".
"
You have to configure the config.inc.php file in OCOMON/INCLUDES/ to start using Ocomon!
Read the file README.TXTto get the main informations about the Ocomon Installation!" );
session_start();
//session_destroy();
if (!isset($_SESSION['s_language'])) $_SESSION['s_language']= "pt_BR.php";
if (!isset($_SESSION['s_usuario'])) $_SESSION['s_usuario']= "";
if (!isset($_SESSION['s_logado'])) $_SESSION['s_logado']= "";
if (!isset($_SESSION['s_nivel'])) $_SESSION['s_nivel']= "";
include ("PATHS.php");
//include ("".$includesPath."var_sessao.php");
include ("includes/functions/funcoes.inc");
include ("includes/javascript/funcoes.js");
include ("includes/queries/queries.php");
include ("".$includesPath."config.inc.php");
//require_once ("includes/languages/".LANGUAGE."");
include ("".$includesPath."versao.php");
include("includes/classes/conecta.class.php");
$conec = new conexao;
$conec->conecta('MYSQL') ;
$qryLang = "SELECT * FROM config";
$execLang = mysql_query($qryLang);
$rowLang = mysql_fetch_array($execLang);
$_SESSION['s_language']= $rowLang['conf_language'];
$uLogado = $_SESSION['s_usuario'];
if (empty($uLogado)) {
$USER_TYPE = TRANS('MNS_OPERADOR');//$TRANS['MNS_OPERADOR'];
$uLogado = TRANS('MNS_NAO_LOGADO'); //$TRANS['MNS_NAO_LOGADO'];
$logInfo = "".TRANS('MNS_LOGON').""; //$TRANS['MNS_LOGON']
$hnt = TRANS('HNT_LOGON');
} else {
if ($_SESSION['s_nivel'] < 3) {
$USER_TYPE = TRANS('MNS_OPERADOR');
} else
$USER_TYPE = TRANS('MNS_USUARIO');
$logInfo = "".TRANS('MNS_LOGOFF')."";
$hnt = TRANS('HNT_LOGOFF');
}
$marca = "HOME";
//print "";
print "";
print "
";
print "
| |||||||||||||||||||||
| "; print ""; print " | "; print ""; print " | ||||||||||||||||||||
| OcoMon - ".TRANS('MNS_MSG_OCOMON').". ".TRANS('MNS_MSG_VERSAO').": ".VERSAO." - ".TRANS('MNS_MSG_LIC')." GPL | |||||||||||||||||||||