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

Diff of /gnuheter/jcexport.php

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

revision 1.3 by jc, Fri Sep 20 19:10:59 2002 UTC revision 1.4 by jc, Fri Sep 20 19:57:36 2002 UTC
# Line 29  function gethighest($table, $id) { Line 29  function gethighest($table, $id) {
29    $result = mysql_query("SELECT MAX($id) FROM $table");    $result = mysql_query("SELECT MAX($id) FROM $table");
30    if (!$result) { echo mysql_errno(). ": ".mysql_error(); exit(); }    if (!$result) { echo mysql_errno(). ": ".mysql_error(); exit(); }
31    list($high) = mysql_fetch_row($result);    list($high) = mysql_fetch_row($result);
32      if ((!$high) || ($high == "")) $high = "0";
33    return $high;    return $high;
34  }  }
35    
# Line 82  function showarticle($endsid, $count, $i Line 83  function showarticle($endsid, $count, $i
83      if (!eregi("[a-z0-9]",$informant)) $informant = $anonymous;      if (!eregi("[a-z0-9]",$informant)) $informant = $anonymous;
84      if (!eregi("[a-z0-9]",$aid))       $aid       = $anonymous;      if (!eregi("[a-z0-9]",$aid))       $aid       = $anonymous;
85            
86      echo "<<sid:$sid>> <<time:$time>> <<name:$informant>>\n"      $article =
87        .  "$title\n"        "$title\n" .
88        .  "\n"        "\n" .
89        .  "         Tid: " . formatTimestamp($time) . "\n"        "         Tid: " . formatTimestamp($time) . "\n" .
90        .  "   Avdelning: $topictext\n"        "   Avdelning: $topictext\n" .
91        .  "  Författare: $aid\n"        "  Författare: $aid\n" .
92        .  "         URL: $nuke_url"."article.php?sid=$sid\n";        "         URL: $nuke_url"."article.php?sid=$sid\n";
93      if ($aid != $informant)      if ($aid != $informant)
94        echo "   Insänt av: $informant\n";        $article .= "   Insänt av: $informant\n";
95      echo "\n"      $article .= "\n"
96        .  "$hometext\n"        .  "$hometext\n"
97        .  "\n"        .  "\n"
98        .  "$notes\n"        .  "$notes\n"
99        .  "\n"        .  "\n"
100        .  "$bodytext\n";        .  "$bodytext\n";
101    
102        echo "<<sid:$sid>> <<time:$time>> <<name:$informant>> " .
103          "<<size:" . strlen($article) . ">>\n" . $article;
104    }    }
105  }  }
106    

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

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