AuthUser(); if($Usr['type'] != 'admin' && $Usr['type'] != 'direccion' && $Usr['type'] != 'compras' && $Usr['type'] != 'almacen' && $Usr['type'] != 'centralizador'){ header('Location: '.WEB_ROOT); exit; } $material->SetPage($_GET["p"]); $materiales = $material->Enumerate(); $smarty->assign('materiales', $materiales); ?>