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; |
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" |
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."; |
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" |
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."; |
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" |
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."; |
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" |