Ejemplo n.º 1
0
<?php

include_once '../../includes.sys/ini.php';
include_once '../../includes.sys/metodos.php';
include_once '../DAO/RemessaDAO.php';
checkUserAuth(EXTERNAL_ROOT_PORTAL . '/index.php?error=true');
include_once '../../head.php';
$remessa = new Remessa();
$DAO = new RemessaDAO();
if (!in_array(165, listarAcesso())) {
    echo '<script language= "JavaScript">location.href="' . EXTERNAL_ROOT_PORTAL . '/modulos.php";</script>';
}
if (!empty($_GET['cmd']) && $_GET['cmd'] == 'del') {
    $id = limpaTexto($_GET['id']);
    $retorno = $DAO->DeletarLista($id);
    if ($retorno == 1) {
        echo '<script language= "JavaScript">alert("Lista removida com sucesso");</script>';
        echo '<script language= "JavaScript">location.href="index.php";</script>';
    } else {
        echo '<script language= "JavaScript">alert("Erro ao remover o registro.");</script>';
    }
}
/*Download compactado*/
if (!empty($_GET['cmd']) && $_GET['cmd'] == 'compact') {
    $remessa->zipar(limpaTexto($_GET['id']));
}
// echo gethostname();
?>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">