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 |
|
|
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 |
|
|