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

Diff of /gnuheter/jcexport.php

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

revision 1.2 by metaur, Thu Aug 15 18:01:11 2002 UTC revision 1.3 by jc, Fri Sep 20 19:10:59 2002 UTC
# Line 52  function index() { Line 52  function index() {
52    
53  # show article(s)  # show article(s)
54  function showarticle($endsid, $count, $index) {  function showarticle($endsid, $count, $index) {
55    global $nuke_url;    global $nuke_url,$anonymous;
56    
57    if ((@$count < 1) or (!is_numeric($count)))    if ((@$count < 1) or (!is_numeric($count)))
58      $count = 1;      $count = 1;
# Line 78  function showarticle($endsid, $count, $i Line 78  function showarticle($endsid, $count, $i
78      $result2 = mysql_query("SELECT topictext FROM topics " .      $result2 = mysql_query("SELECT topictext FROM topics " .
79                             "WHERE topicid='$topic'");                             "WHERE topicid='$topic'");
80      list($topictext) = mysql_fetch_row($result2);      list($topictext) = mysql_fetch_row($result2);
81    
82        if (!eregi("[a-z0-9]",$informant)) $informant = $anonymous;
83        if (!eregi("[a-z0-9]",$aid))       $aid       = $anonymous;
84            
85      echo "<<sid:$sid>> <<time:$time>> <<name:$informant>>\n"      echo "<<sid:$sid>> <<time:$time>> <<name:$informant>>\n"
86        .  "$title\n"        .  "$title\n"
# Line 100  function showarticle($endsid, $count, $i Line 103  function showarticle($endsid, $count, $i
103    
104  # show comment  # show comment
105  function showcomment($tid) {  function showcomment($tid) {
106    global $nuke_url;    global $nuke_url,$anonymous;
107    
108    if (!is_numeric($tid)) {    if (!is_numeric($tid)) {
109      echo "\"$tid\" är inte en giltig tid.";      echo "\"$tid\" är inte en giltig tid.";
# Line 129  function showcomment($tid) { Line 132  function showcomment($tid) {
132    }    }
133    list($title) = $resarray;    list($title) = $resarray;
134        
135      if (!eregi("[a-z0-9]",$name)) $name = $anonymous;
136    
137    echo "<<tid:$tid>> <<sid:$sid>> <<pid:$pid>> <<date:$date>> <<name:$name>>\n"    echo "<<tid:$tid>> <<sid:$sid>> <<pid:$pid>> <<date:$date>> <<name:$name>>\n"
138      .  "$title\n"      .  "$title\n"
# Line 184  function showpoll($pollID) { Line 188  function showpoll($pollID) {
188    
189  # show pollcomment  # show pollcomment
190  function showpollcomment($tid) {  function showpollcomment($tid) {
191    global $nuke_url;    global $nuke_url,$anonymous;
192    
193    if (!is_numeric($tid)) {    if (!is_numeric($tid)) {
194      echo "\"$tid\" är inte en giltig tid.";      echo "\"$tid\" är inte en giltig tid.";
# Line 213  function showpollcomment($tid) { Line 217  function showpollcomment($tid) {
217    }    }
218    list($pollTitle) = $resarray;    list($pollTitle) = $resarray;
219        
220      if (!eregi("[a-z0-9]",$name)) $name = $anonymous;
221    
222    echo "<<tid:$tid>> <<pollID:$pollID>> <<pid:$pid>> <<date:$date>> <<name:$name>>\n"    echo "<<tid:$tid>> <<pollID:$pollID>> <<pid:$pid>> <<date:$date>> <<name:$name>>\n"
223      .  "Undersökning: $pollTitle\n"      .  "Undersökning: $pollTitle\n"
# Line 227  function showpollcomment($tid) { Line 232  function showpollcomment($tid) {
232    
233  # Show diary  # Show diary
234  function showdiary($did) {  function showdiary($did) {
235    global $nuke_url;    global $nuke_url,$anonymous;
236    
237    if (!is_numeric($did)) {    if (!is_numeric($did)) {
238      echo "\"$did\" är inte en giltig did.";      echo "\"$did\" är inte en giltig did.";
# Line 245  function showdiary($did) { Line 250  function showdiary($did) {
250    }    }
251    
252    list($aid, $title, $time, $bodytext) = $resarray;    list($aid, $title, $time, $bodytext) = $resarray;
253    
254      if (!eregi("[a-z0-9]",$aid)) $aid = $anonymous;
255        
256    echo "<<did:$did>> <<time:$time>> <<name:$aid>>\n"    echo "<<did:$did>> <<time:$time>> <<name:$aid>>\n"
257      .  "Dagbok: ($aid) $title\n"      .  "Dagbok: ($aid) $title\n"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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