if($demo_mode){ print "Content-type: text/html\n\n"; print qq~~; }else{ &get_input; foreach $tag (@body_tags){ $tag_=$tag;$tag_=~s/body_tag_//; if($$tag ne ''){$body_tag = qq~$tag_="$$tag"~; if($tag_ =~ /^marginwidth/){$body_tag .= qq~ leftmargin="$$tag"~} if($tag_ =~ /^marginheight/){$body_tag .= qq~ topmargin="$$tag"~} push(@TAGS,$body_tag); } } $TAGS=join(" ",@TAGS); if($TAGS){$TAGS=" ".$TAGS;} $page =~ s/\?.+$//; open(P,"$page"); while(

){$PAGE.=$_} $PAGE =~ m`]*)>`;$bt=$1; if($bt =~ /wrx\./){$bt=""} @BTAGS=split(/ /,$bt); foreach $btag (@BTAGS){ if($btag !~ m/^bgcolor|^text|^link|^vlink|^alink|^topmargin|^leftmargin|^marginwidth|^marginheight|^background/i){push(@OTAGS,$btag)} } $OTAGS = join(" ",@OTAGS); if($OTAGS){$OTAGS=" ".$OTAGS;} $PAGE =~ s```is; $PAGE=~s`.+?`$title`si; $PAGE=~s```sig; if($script==1){ $url_to_editor=~s|http://.+?/|/|; $PAGE=~s`(.+)`$1\n`si; } $PAGE=~m`(.+)`$1\n`si; } $PAGE=~m`(.+)`$1\n`si; } if($enter ne 'none'){$enter=~s/x//; if($PAGE=~m``$1$enterd,Transition=$enter)">`is; }else{ $PAGE=~s`(.+)`$1\n`si; } } if($enter eq 'none'){ $PAGE=~s`\n``si; } if($exit ne 'none'){$exit=~s/x//; if($PAGE=~m``$1$exitd,Transition=$exit)">`is; }else{ $PAGE=~s`(.+)`$1\n`si; } } if($exit eq 'none'){ $PAGE=~s`\n``si; } open(P,">$page"); print P "$PAGE"; print "Content-type: text/html\n\n"; print qq~~; }#else demo 1;