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