if (array_key_exists('logout', $_GET)) { @session_start(); @session_destroy(); } include './scripts/sessao.php'; include './scripts/funcoes.php'; if (esta_logado()) { echo ''; exit; } $msg = ''; if (array_key_exists('msg',$_SESSION)) { $msg = $_SESSION['msg']; unset($_SESSION['msg']); session_destroy(); } $conn_orc = conecta_banco('horc'); $stmt = oci_parse($conn_orc,"SELECT ORC_PRM_PCK.BUSCA_PRM('LOGO_HOTEL') LOGO_HOTEL FROM DUAL"); oci_execute($stmt, OCI_DEFAULT); if (oci_fetch($stmt)) $lg_hotel = oci_result($stmt, "LOGO_HOTEL"); else $lg_hotel = 'spacer.gif'; ?>