AuthUser(); if($Usr['type'] != 'admin' && $Usr['type'] != 'gerente' && $Usr['type'] != 'almacen' && $Usr['type'] != 'centralizador' && $Usr['type'] != 'direccion' && $Usr['type'] != 'facturacion' && $Usr['type'] != 'compras' && $Usr['type'] != 'supervisor'){ header('Location: '.WEB_ROOT); exit; } $showAll = $_GET['showAll']; $smarty->assign('showAll',$showAll); ?>