<? //	@session_start();
error_reporting(E_ALL && ~E_NOTICE);

// VERIFICA SE EXISTE A SESSAO. SE NAO EXISTIR INCLUI O VER_SESSAO
if( $_SESSION[sistema] == '' )
	include_once "ver_sessao.php";

include $_SERVER[DOCUMENT_ROOT].$_SESSION[sistema]."configura.php";

$CACTUX_CONF['path'] = $CONFIGURA[PATH];

include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_pagina.php";
include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_bd.php";
include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_form.php";
include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_diversas.php";
include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_ajax.php";
include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_aba.php";
include $_SERVER[DOCUMENT_ROOT]."/cactux3/funcoes/funcoes_grid.php";

setDestino('_top'); // faz com que os link sejam direcionados para a janela superior! caso tenha um frame entrar com onome do frame

$PHP_SELF = $_SERVER[SCRIPT_NAME]; 
// mudança ocorrida no servidor que necessita substituir a variavel $PHP_SELF por essa outra superglobal

//include "funcoes_pagina.php";
//include "funcoes_form.php";
include "pdv/pdv_funcoes.php";
// echo "<script src='/kernel/pdv/pdv.js?".time()."'></script>\r\n";

set_destino_frame();
	
setlocale(LC_CTYPE,"pt_BR");	

date_default_timezone_set('America/Fortaleza');

?>

