#!/usr/bin/perl use strict; $ENV{DOCUMENT_ROOT}.='/' if $ENV{DOCUMENT_ROOT}; require $ENV{DOCUMENT_ROOT}.'_adm/incs/Generales.pm'; my $ref=Generales::Entrada(); my %para=%$ref; my $html; my $linea; my $check; my $hoy = time; my $fotoTapa; my $epigrafeTapa; my @Eventos; require $ENV{DOCUMENT_ROOT}.'_adm/incs/clNoticia.pm'; my $oNoticia = clNoticia->new(); $oNoticia->buscar($para{noticia}); open (ARCHI, $ENV{DOCUMENT_ROOT}.'noticias/tpl/noticia.htm')||print $!."- noticia.pl
\n"; while ($linea = ){ $html .= $linea; } close ARCHI; $html =Generales::sacaLineas($html); $html =~ s //$oNoticia->{idNoticia}/gi; $html =~ s //$oNoticia->{cVolanta}/i; $html =~ s //$oNoticia->{cTitulo}/i; $html =~ s //$oNoticia->{cCopete}/i; #$oNoticia->{cCuerpo} =~ s /\n/
\n/g; $html =~ s //$oNoticia->{cCuerpo}/i; $html=~ s//$oNoticia->{urlFoto}/; $html=~ s//$oNoticia->{epigrafeFoto}/; $html =Generales::procesarDinamico($html); $html =Generales::poneLineas($html); Generales::imprimir($html); ############################################################################################################