Exemple #1
0
<?php

include 'configuration.php';
include 'misc.php';
$filename = getenv("QUERY_STRING");
forumLog("read?" . $filename);
?>

<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<link rel=stylesheet href=forum.css>

<?php 
print $beginFormat;
// added by Koala
$subdir = floor((int) $filename / 1000) . "/";
// addition ended
$text = fopen($dataDirectory . $subdir . $filename, "r+");
if ($text) {
    $title = fgets($text, 4096);
    ?>

<title><?php 
    echo $title;
    ?>
</title>
<div class=text><?php 
    echo $title;
    ?>
</div><br><br><br><div class=buttons>
<a href=sayForm.php?<?php 
    echo $filename;
Exemple #2
0
<?php

include 'configuration.php';
include 'misc.php';
setlocale(LC_TIME, "C");
$parent = getenv("QUERY_STRING");
forumLog("say?" . $parent);
$author = stripslashes($_POST["em_an"]);
$subject = stripslashes($_POST["tcejbus"]);
$text = stripslashes($_POST["tx_et"]);
$currentTime = strftime("%a %F %T");
// Characters to be avoided
$author = str_replace("\n", " ", $author);
$author = str_replace("\r", " ", $author);
$author = str_replace("\t", " ", $author);
$subject = str_replace("\n", " ", $subject);
$subject = str_replace("\r", " ", $subject);
$subject = str_replace("\t", " ", $subject);
$subject = str_replace("", "'", $subject);
$text = "來自:" . $author . "\n時間:" . $currentTime . "\n\n" . $text;
$text = str_replace("<", "&lt;", $text);
$text = str_replace(">", "&gt;", $text);
if ($author != "") {
    setcookie("forumName", $author, mktime(0, 0, 0, 1, 1, 2038), "/");
}
?>

<meta http-equiv='Content-Type' content='text/html; charset=big5'>
<link rel=stylesheet href=forum.css>

<?php 
Exemple #3
0
<?php

include 'configuration.php';
include 'misc.php';
$page = getenv("QUERY_STRING");
forumLog("forum?" . $page);
?>

<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<link rel="alternate" type="application/rss+xml" title="Forum Threads - RSS" href="http://stupidsing.no-ip.org/rss.php?mode=thread" />
<link rel="alternate" type="application/rss+xml" title="Forum Posts - RSS" href="http://stupidsing.no-ip.org/rss.php?mode=post" />
<link rel=stylesheet href=forum.css>

<?php 
print $beginFormat;
?>

<title>Wandering and wonderings</title>
<table width=100%><tr><td><div class=buttons><a href=sayForm.php>發言</a>&nbsp;&nbsp;<a href=
forum.php?<?php 
if ($page > 100) {
    print $page - 100;
} else {
    print '0';
}
?>
>上一頁</a>&nbsp;&nbsp;<a href=forum.php>首頁</a>&nbsp;&nbsp;<a href=index.html>主頁</a></div></td>
<td align=right><div class=text>心意就如密友,長路裏相伴漫遊。</div></td></tr></table><br>

<hr><br><br><div class=miscs>