<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001192" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001192</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/eof#comment-1005172</link>
    <description> &lt;p&gt;Not sure if this works but this is the only part of the code that looks bad&lt;/p&gt;
&lt;p&gt;open(ORIGIN, &quot;&amp;lt;/home/heh/public_html/$filename&quot;) or die &quot;Cannot open file to read: $!&quot;;&lt;br /&gt;
@origin=&amp;lt;ORIGIN&amp;gt;;&lt;br /&gt;
close(ORIGIN);&lt;/p&gt;
&lt;p&gt;change that too&lt;/p&gt;
&lt;p&gt;open(ORIGIN, &quot;/home/heh/public_html/$filename&quot;) or die &quot;Cannot open file to read: $!&quot;;&lt;br /&gt;
@origin=&amp;lt;ORIGIN&amp;gt;;&lt;br /&gt;
close(ORIGIN);&lt;/p&gt;
 </description>
     <pubDate>Thu, 29 Jun 2000 01:29:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1005172 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/eof#comment-1005171</link>
    <description> &lt;p&gt;#!/usr/bin/perl&lt;/p&gt;
&lt;p&gt;require &quot;parseform.lib&quot;;&lt;br /&gt;
&amp;amp;Parse_Form;&lt;/p&gt;
&lt;p&gt;$referer=$ENV{&#039;HTTP_REFERER&#039;};&lt;br /&gt;
$name=$formdata{&#039;name&#039;};&lt;br /&gt;
$comments=$formdata{&#039;comments&#039;};&lt;br /&gt;
$filename=$formdata{&#039;filename};&lt;/p&gt;
&lt;p&gt;print &quot;Content-type:text/html\n\n&quot;;&lt;/p&gt;
&lt;p&gt;# Get time.&lt;/p&gt;
&lt;p&gt;@days= (&#039;Sunday&#039;,&#039;Monday&#039;,&#039;Tuesday&#039;,&#039;Wednesday&#039;,&lt;br /&gt;
               &#039;Thursday&#039;,&#039;Friday&#039;,&#039;Saturday&#039;);&lt;br /&gt;
    @months = (&#039;January&#039;,&#039;February&#039;,&#039;March&#039;,&#039;April&#039;,&#039;May&#039;,&#039;June&#039;,&#039;July&#039;,&#039;August&#039;,&#039;September&#039;,&#039;October&#039;,&#039;November&#039;,&#039;December&#039;);&lt;br /&gt;
($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];&lt;br /&gt;
$time = sprintf(&quot;%02d:%02d:%02d&quot;,$hour,$min,$sec);&lt;br /&gt;
    $year += 1900;&lt;br /&gt;
$date = &quot;$days[$wday], $months[$mon] $mday, $year at $time&quot;;&lt;/p&gt;
&lt;p&gt;# Check referer.&lt;/p&gt;
&lt;p&gt;if ($name ne &quot;&quot; &amp;amp;&amp;amp; $comments ne &quot;&quot; &amp;amp;&amp;amp; $referer=~m#www.heh.com#) {&lt;/p&gt;
&lt;p&gt;$referercheck=1;&lt;/p&gt;
&lt;p&gt;# Check for naughty language and SSI.&lt;/p&gt;
&lt;p&gt;$name=~s/****/f***/g;&lt;br /&gt;
$name=~s/****/s***/g;&lt;br /&gt;
$comments=~s/****/f***/g;&lt;br /&gt;
$comments=~s/****/s***/g;&lt;br /&gt;
$comments=~s/&amp;lt;!--(.|\n)*--&amp;gt;//g;&lt;/p&gt;
&lt;p&gt;$finalcontent= qq~&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;$name&amp;lt;b&amp;gt; said... (posted $date)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;$comments&lt;br /&gt;
~;&lt;/p&gt;
&lt;p&gt;# Get the data from the refering page.&lt;/p&gt;
&lt;p&gt;open(ORIGIN, &quot;&amp;lt;/home/heh/public_html/$filename&quot;) or die &quot;Cannot open file to read: $!&quot;;&lt;br /&gt;
@origin=&amp;lt;ORIGIN&amp;gt;;&lt;br /&gt;
close(ORIGIN);&lt;/p&gt;
&lt;p&gt;# Find the amount of items in the origin array.&lt;/p&gt;
&lt;p&gt;$items=@origin;&lt;/p&gt;
&lt;p&gt;# Subtract by # of items it will take to get fan replys in the correct place. Approximently five.&lt;/p&gt;
&lt;p&gt;$items=$items - 5;&lt;/p&gt;
&lt;p&gt;# Splice the origin array.&lt;/p&gt;
&lt;p&gt;splice(@origin, $items, 0, $finalcontent);&lt;/p&gt;
&lt;p&gt;# Print the array back to the file.&lt;br /&gt;
open(BACK, &quot;&amp;gt;/home/heh/public_html/$filename&quot;) or die &quot;Cannot open file to write: $!&quot;;&lt;br /&gt;
print BACK &quot;@origin&quot;;&lt;br /&gt;
close(BACK);&lt;/p&gt;
&lt;p&gt;print &amp;lt;&amp;lt;&quot;heh&quot;;&lt;br /&gt;
Thank you $name for your valuable feedback! &amp;lt;a href=$origin&amp;gt;Click here&amp;lt;/a&amp;gt; to see your reply.&lt;/p&gt;
&lt;p&gt;heh&lt;/p&gt;
&lt;p&gt;# Finish referer check.&lt;br /&gt;
} elsif ($referercheck!=1) {&lt;br /&gt;
print &quot;No executing this script from another server muchacho.&quot;;&lt;br /&gt;
} else {&lt;br /&gt;
print &quot;Please fill in all the spaces.&quot;;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;1;&lt;/p&gt;
&lt;p&gt;That&#039;s the full script.&lt;/p&gt;
 </description>
     <pubDate>Thu, 29 Jun 2000 00:41:00 +0000</pubDate>
 <dc:creator>Vorm</dc:creator>
 <guid isPermaLink="false">comment 1005171 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/eof#comment-1005170</link>
    <description> &lt;p&gt;That&#039;s really weird.... could you post a bigger snippet of code?&lt;/p&gt;
 </description>
     <pubDate>Wed, 28 Jun 2000 20:18:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1005170 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
