/[gnuheter]/gnuheter/jcexport.php
ViewVC logotype

Diff of /gnuheter/jcexport.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by jc, Mon Jan 13 00:58:54 2003 UTC revision 1.7 by jc, Mon Mar 17 19:13:01 2003 UTC
# Line 74  function showarticle($endsid, $count, $i Line 74  function showarticle($endsid, $count, $i
74    while ($resarray = mysql_fetch_row($result)) {    while ($resarray = mysql_fetch_row($result)) {
75      list($sid, $title, $time, $topic, $aid,      list($sid, $title, $time, $topic, $aid,
76           $informant, $hometext, $notes, $bodytext) = $resarray;           $informant, $hometext, $notes, $bodytext) = $resarray;
77        $title     = eregi_replace("[\n\r]+", " ", $title    );
78        $aid       = eregi_replace("[\n\r]+", " ", $aid      );
79        $informant = eregi_replace("[\n\r]+", " ", $informant);
80    
81      $result2 = mysql_query("SELECT topictext FROM topics " .      $result2 = mysql_query("SELECT topictext FROM topics " .
82                             "WHERE topicid='$topic'");                             "WHERE topicid='$topic'");
83      list($topictext) = mysql_fetch_row($result2);      list($topictext) = mysql_fetch_row($result2);
# Line 123  function showcomment($tid) { Line 127  function showcomment($tid) {
127    }    }
128    
129    list($pid, $sid, $typ, $date, $name, $email, $url, $subject, $comment) = $resarray;    list($pid, $sid, $typ, $date, $name, $email, $url, $subject, $comment) = $resarray;
130      $name    = eregi_replace("[\n\r]+", " ", $name   );
131      $email   = eregi_replace("[\n\r]+", " ", $email  );
132      $subject = eregi_replace("[\n\r]+", " ", $subject);
133    
134    if ($typ==0)    if ($typ==0)
135      $sql = "SELECT title FROM stories WHERE sid='$sid'";      $sql = "SELECT title FROM stories WHERE sid='$sid'";
# Line 137  function showcomment($tid) { Line 144  function showcomment($tid) {
144      exit;      exit;
145    }    }
146    list($title) = $resarray;    list($title) = $resarray;
147      $title = eregi_replace("[\n\r]+", " ", $title);
148    if ($typ==1)    if ($typ==1)
149      $title = "Undersökning: " . $title;      $title = "Undersökning: " . $title;
150        
# Line 172  function showpoll($sid) { Line 180  function showpoll($sid) {
180    }    }
181    
182    list($pollTitle) = $resarray;    list($pollTitle) = $resarray;
183      $pollTitle = eregi_replace("[\n\r]+", " ", $pollTitle);
184    
185    echo "<<sid:$sid>>\n"    echo "<<sid:$sid>>\n"
186      .  "Undersökning: $pollTitle\n"      .  "Undersökning: $pollTitle\n"
# Line 214  function showdiary($did) { Line 223  function showdiary($did) {
223    }    }
224    
225    list($aid, $title, $time, $bodytext) = $resarray;    list($aid, $title, $time, $bodytext) = $resarray;
226      $aid   = eregi_replace("[\n\r]+", " ", $aid  );
227      $title = eregi_replace("[\n\r]+", " ", $title);
228    
229    if (!eregi("[a-z0-9]",$aid)) $aid = $anonymous;    if (!eregi("[a-z0-9]",$aid)) $aid = $anonymous;
230        

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26