Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-120121-

Check it

Name: Anonymous 2011-04-25 18:39

<?php
/* Shiichan 4000
** Add post
*/

require "include.php";

// basic security measures-- don't leave home without 'em!
if(get_magic_quotes_gpc()) $_POST = array_map("stripslashes", $_POST);
$_POST = array_map("htmlspecialquotes", $_POST);
$_COOKIE = array_map("htmlspecialquotes", $_COOKIE);

// Generate the date
$thisverysecond = time();

$glob = file("globalsettings.txt") or fancydie("Eh? Couldn't fetch the global settings file?!");
foreach ($glob as $tmp) {  $tmp = trim($tmp);   list ($name, $value) = explode("=", $tmp);  $setting[$name] = $value;  }
$_POST[bbs] ? $lol = $_POST[bbs] : $lol = $_GET[bbs];
$local = @file("$lol/localsettings.txt");
if ($local) foreach ($local as $tmp){  $tmp = trim($tmp);   list ($name, $value) = explode("=", $tmp);  $setting[$name] = $value;  }

// mrvacbob 04-2009
if ($_POST[subj]) $_POST[id] = $thisverysecond;

// If we're getting called to write a post, go for it.
if ($_GET[shiichan] == "writenew") {
    $second = time();
    if ($setting[posticons]) {
    $icons = "<input type='radio' name='icon' value='noicon.png' checked> No icon<br>"; $i = 0;
    $handle = opendir("posticons");
    while (false !== ($file = readdir($handle))) {
        if ($file != "." && $file != ".." && $file != "noicon.png") {
        if ($i == 6) { $icons .= "<br>"; $i = 0; }
        $icons .= "<input type='radio' name='icon' value='$file'><img src='posticons/$file'> ";
        $i++;
        }}
    closedir($handle);
    $icons .= "<br>The following posticons are for <b>admin use only</b>:<br>";
    $i = 0;
    $handle = opendir("capcodes/icons");
    while (false !== ($file = readdir($handle))) {
        if ($file != "." && $file != "..") {
        if ($i == 6) { $icons .= "<br>"; $i = 0; }
        $icons .= "<input type='radio' name='icon' value='../capcodes/icons/$file'><img src='capcodes/icons/$file'> ";
        $i++;
        }}
    closedir($handle);
    } else $icons = "<input type='hidden' name='icon' value='noicon.png'>Posticons are disabled.";
    $html = file_get_contents("skin/$setting[skin]/addthread.txt");
        $html = str_replace("<%THREADNAME%>", $threadname, $html);
    if ($setting[encoding] == "sjis") $html = str_replace("<%ENCODING%>", "<META http-equiv='Content-Type' content='text/html; charset=Shift_JIS'><style>* { font-family: Mona,'MS PGothic' !important } </style>", $html);
    else $html = str_replace("<%ENCODING%>", "<META http-equiv='Content-Type' content='text/html; charset=UTF-8'>", $html);
        $html = str_replace("<%FORUMURL%>", $setting[urltoforum], $html);
        $html = str_replace("<%POSTICONS%>", $icons, $html);
        $html = str_replace("<%FORUMNAME%>", $setting[forumname], $html);
    $html = str_replace("<%BOARDNAME%>", $setting[boardname], $html);
    $html = str_replace("<%BOARDURL%>", $_GET[bbs], $html);
    if ($_COOKIE[adminname]) $html=str_replace("<%NAMECOOKIE%>", "value='$_COOKIE[adminname]'", $html); else $html=str_replace("<%NAMECOOKIE%>", "", $html);
    if ($setting[adminsonly]) $html=str_replace("<%ADMINSONLY%>", "<h2 style='background:none;color:red'>Only administrators can post threads to this forum!</h2>", $html); else $html=str_replace("<%ADMINSONLY%>", "", $html);
        $html = str_replace("<%STARTFORM%>", "<form name='post' action='post.php' method='POST'><input type='hidden' name='bbs' value='$_GET[bbs]'><input type='hidden' name='id' value='$second'><input type='hidden' name='shiichan' value='proper'>", $html);
    $html = str_replace("<%TEXTAREA%>", "<textarea rows='15' cols='75' name='mesg'></textarea><br><input type='submit' value='Create Thread'>", $html);
    echo $html;
    exit;
}

// If we're being called to write an advanced reply, write the advanced reply dammit.
if ($_GET[id]) {
        $thread = file("$_GET[bbs]/dat/$_GET[id].dat") or fancydie("Couldn't open that thread");
        list ($threadname, $author, $lastposted) = explode("<=>", $thread[0]);
    $html = file_get_contents("skin/$setting[skin]/addreply.txt");
    if ($_COOKIE[adminname]) $html=str_replace("<%NAMECOOKIE%>", "value='$_COOKIE[adminname]'", $html); else $html=str_replace("<%NAMECOOKIE%>", "", $html);
    if (!is_writable("$_GET[bbs]/dat/$_GET[id].dat")) $html=str_replace("<%THREADSTOPPED%>", "<h3>This thread is threadstopped!!</h3>", $html); else $html=str_replace("<%THREADSTOPPED%>", "", $html);
        $html = str_replace("<%THREADNAME%>", $threadname, $html);
        $html = str_replace("<%FORUMNAME%>", $setting[forumname], $html);
    $html = str_replace("<%BOARDURL%>", $_GET[bbs], $html);

// ENT_QUOTES thingy
function htmlspecialquotes($st) {
return str_replace("&amp;#", "&#", htmlspecialchars("$st", ENT_QUOTES)); }

/* link shorten

function shorten($str){
  if(strlen($str) > 50) {
    $divide = round(strlen($str) / 3);
    if ($divide*2 > 50) {
      $divide = round(strlen($str) / 5);
     $second_string = substr($str,$divide*4,200);
    } else {
        $second_string = substr($str,$divide*2,200);
    }
   $first_string = substr($str,0,$divide);
   $short_string = $first_string . "..." . $second_string;
   $short_string = htmlspecialchars($short_string, ENT_NOQUOTES);
    } else {
 $short_string = $str;
 }
 return $short_string;
}*/

// Check for POST and no in-forums spoofing
if($_SERVER[REQUEST_METHOD]!="POST"){fancydie("Trying to GET post.php?<meta http-equiv='refresh' content='0;url=.'>");}

// for capcode functions
$threadstopwhendone = false;
$loggedin = false;

###################
// capcode post
if ($_POST[pass]) {
$admin = file("shadow.cgi");
foreach ($admin as $line) { list($name, $pass, $level) = explode("<>", $line);
if (strtolower($_POST[name]) == $name) { if (md5($_POST[pass]) != $pass) fancydie("The password you supplied for that username is incorrect.");
$loggedin = true; break; }} if ($loggedin == false)
if ($level < 7500 && $setting[adminsonly] && $_POST[subj]) fancydie("You need a userlevel of 7500 to start a thread."); // admins-only threads...
if (!$_POST[subj] && !is_writable("$_POST[bbs]/dat/$_POST[id].dat")) {
if (
// Length checks
if (strlen($_POST[mesg]) == 0) fancydie("You didn't write a post?!");
if (strlen($_POST[mesg]) > 10000) fancydie("Thanks for your contribution, but it was too large.");
if (strlen($_POST[subj]) > 45) fancydie("Subject is too long!");
if (count(explode("<br>", $_POST[mesg])) > 100) fancydie("Your post has far too many lines in it!");

// check for ID and board
if (!$_POST[bbs]) fancydie("No board specified to post to!");
if (!$_POST[id]) fancydie("No thread ID specified to post to!");
if (!is_dir($_POST[bbs])) fancydie("Board specified does not exist.");
if (!$_POST[subj] && !is_file("$_POST[bbs]/dat/$_POST[id].dat")) fancydie("Thread ID specified does not exist.");
if ($_POST[subj] && is_file("$_POST[bbs]/dat/$_POST[id].dat")) fancydie ("Thread has already been created.");

// Tripcode mohel
if ($_POST[name]) { $censorme = false;
if (file_exists("mohel.cgi")) {
$mohel = file("mohel.cgi") or fancydie("Couldn't open mohel.cgi :(");
foreach ($mohel as $line) {
    $line = trim($line);
    if ($line{0} == '#') {
        if ($line == '#'.$trip) $censorme = true;
    } else {
        if ($line == $_POST[name].'#'.$trip) $censorme = true;
    }
}
if ($censorme == true) { echo "<b>Message from Mohel:</b> Your nickname was censored, for your own good.<p>"; $_POST[name]=""; $trip=''; }
}}

// anonymous, we love you!
if ($_POST[name] == "" && !$trip) $_POST[name] = $setting[nameless];


if ($threadstopwhendone) chmod ("$_POST[bbs]/dat/$_POST[id].dat", 0440);
RebuildThreadList($_POST[bbs], $_POST[id], $_POST[sage], false);
?>
<html><title>Success</title><meta http-equiv='refresh' content='1;url=<?=$setting[urltoforum]?><?=$_POST[bbs]?>/'>
<? readfile("skin/$setting[skin]/success.txt"); ?>
<br><small><a href='<?=$setting[urltoforum]?><?=$_POST[bbs]?>/'>Click here to be forwarded manually</a></small>
<hr>
Powered by Shiichan v.<?=$shiiversion?>

Name: Anonymous 2011-04-25 18:42

What has science done?

Name: Anonymous 2011-04-25 19:00

>>1
/* Shiichan 4000
HIBT?

Name: Anonymous 2011-04-25 21:17

This does not an image broad make.

Name: Anonymous 2011-04-26 8:06

Name: Anonymous 2011-04-26 8:11

Name: Anonymous 2011-04-26 8:16

Name: Anonymous 2011-04-26 8:22

Name: Anonymous 2011-04-26 8:27

Name: Anonymous 2011-04-26 8:32

Name: Anonymous 2011-04-26 8:37

Name: Anonymous 2011-04-26 8:42

Name: Anonymous 2011-04-26 8:47

Name: Anonymous 2011-04-26 8:53

Name: Anonymous 2011-04-26 8:58

Name: Anonymous 2011-04-26 9:03

Name: Anonymous 2011-04-26 9:09

Name: Anonymous 2011-04-26 9:14

Name: Anonymous 2011-04-26 9:19

Name: Anonymous 2011-04-26 9:24

Name: Anonymous 2011-04-26 9:30

Name: Anonymous 2011-04-26 9:35

Name: Anonymous 2011-04-26 9:40

Name: Anonymous 2011-04-26 9:45

Name: Anonymous 2011-04-26 9:51

Name: Anonymous 2011-04-26 9:56

Name: Anonymous 2011-04-26 10:02

Name: Anonymous 2011-04-26 10:07

Name: Anonymous 2011-04-26 10:12

Name: Anonymous 2011-04-26 10:25

Name: Anonymous 2011-04-26 10:29

Name: Anonymous 2011-04-26 10:34

Name: Anonymous 2011-04-26 10:39

Name: Anonymous 2011-04-26 10:43

Name: Anonymous 2011-04-26 10:48

Name: Anonymous 2011-04-26 10:53

Name: Anonymous 2011-04-26 10:57

Name: Anonymous 2011-04-26 11:02

Name: Anonymous 2011-04-26 11:07

Name: Anonymous 2011-04-26 11:12

Name: Anonymous 2011-04-26 11:16

Name: Anonymous 2011-04-26 11:21

Name: Anonymous 2011-04-26 11:26

Name: Anonymous 2011-04-26 11:30

Name: Anonymous 2011-04-26 11:35

Name: Anonymous 2011-04-26 11:40

Name: Anonymous 2011-04-26 11:44

Name: Anonymous 2011-04-26 11:49

Name: Anonymous 2011-04-26 11:54

Name: Anonymous 2011-04-26 11:59

Name: Anonymous 2011-04-26 12:04

Name: Anonymous 2011-04-26 12:08

Name: Anonymous 2011-04-26 12:13

Name: Anonymous 2011-04-26 12:18

Name: Anonymous 2011-04-26 12:22

Name: Anonymous 2011-04-26 12:27

Name: Anonymous 2011-04-26 12:27

OVER 20LBS OF PUSSY ASS AND PUSSY FARTS!!!

Name: Anonymous 2011-04-26 12:32

Name: Anonymous 2011-04-26 12:37

Name: Anonymous 2011-04-26 12:41

Name: Anonymous 2011-04-26 12:46

Name: Anonymous 2011-04-26 12:51

Name: Anonymous 2011-04-26 12:55

Name: Anonymous 2011-04-26 13:00

Name: Anonymous 2011-04-26 13:05

Name: Anonymous 2011-04-26 13:09

Name: Anonymous 2011-04-26 13:14

Name: Anonymous 2011-04-26 13:19

Name: Anonymous 2011-04-26 13:23

Name: Anonymous 2011-04-26 13:28

Name: Anonymous 2011-04-26 13:33

Name: Anonymous 2011-04-26 13:38

Name: Anonymous 2011-04-26 13:43

Name: Anonymous 2011-04-26 13:47

Name: Anonymous 2011-04-26 13:52

Name: Anonymous 2011-04-26 13:56

Name: Anonymous 2011-04-26 14:01

Name: Anonymous 2011-04-26 14:06

Name: Anonymous 2011-04-26 14:10

Name: Anonymous 2011-04-26 14:15

Name: Anonymous 2011-04-26 14:20

Name: Anonymous 2011-04-26 14:25

Name: Anonymous 2011-04-26 14:30

Name: Anonymous 2011-04-26 14:34

Name: Anonymous 2011-04-26 14:39

Name: Anonymous 2011-04-26 14:44

Name: Anonymous 2011-04-26 14:49

Name: Anonymous 2011-04-26 14:53

Name: Anonymous 2011-04-26 14:58

Name: Anonymous 2011-04-26 15:03

Name: Anonymous 2011-04-26 15:08

Name: Anonymous 2011-04-26 15:13

Name: Anonymous 2011-04-26 15:17

Name: Anonymous 2011-04-26 15:26

Name: Anonymous 2011-04-26 15:31

Name: Anonymous 2011-04-26 15:35

Name: Anonymous 2011-04-26 15:40

Name: Anonymous 2011-04-26 15:45

Name: Anonymous 2011-04-26 15:49

Name: Anonymous 2011-04-26 15:54

Name: Anonymous 2011-04-26 15:59

Name: Anonymous 2011-04-26 16:04

Name: Anonymous 2011-04-26 16:08

Name: Anonymous 2011-04-26 16:13

Name: Anonymous 2011-04-26 16:18

Name: Anonymous 2011-04-26 16:23

Name: Anonymous 2011-04-26 16:28

Name: Anonymous 2011-04-26 16:32

Name: Anonymous 2011-04-26 16:37

Name: Anonymous 2011-04-26 16:42

Name: Anonymous 2011-04-26 16:47

Name: Anonymous 2011-04-26 16:51

Name: Anonymous 2011-04-26 16:56

Name: Anonymous 2011-04-26 17:01

Name: Anonymous 2011-04-26 17:06

Name: Anonymous 2011-04-26 17:10

Name: Anonymous 2011-04-26 17:15

Name: Anonymous 2011-04-26 17:20

Name: Anonymous 2011-04-26 17:25

Name: Anonymous 2011-04-26 17:34

Name: Anonymous 2011-04-26 19:05

Name: Anonymous 2011-04-26 19:10

Name: Anonymous 2011-04-26 19:15

Name: Anonymous 2011-04-26 19:19

Name: Anonymous 2011-04-26 19:33

Name: Anonymous 2011-04-26 19:37

Name: Anonymous 2011-04-26 19:43

Name: Anonymous 2011-04-26 19:47

Name: Anonymous 2011-04-26 19:51

Name: Anonymous 2011-04-26 19:56

Name: Anonymous 2011-04-26 20:00

Name: Anonymous 2011-04-26 20:10

Name: Anonymous 2011-04-26 20:14

Name: Anonymous 2011-04-26 20:19

Name: Anonymous 2011-04-26 20:23

Name: Anonymous 2011-04-26 20:27

Name: Anonymous 2011-04-26 21:32

Name: Anonymous 2011-04-26 21:37

Name: Anonymous 2011-04-26 22:00

Name: Anonymous 2011-04-26 22:43

Name: Anonymous 2011-04-26 23:26

Name: Anonymous 2011-04-26 23:38

Name: Anonymous 2011-04-27 0:02

Name: Anonymous 2011-04-27 0:55

Name: Anonymous 2011-04-27 1:35

Name: Anonymous 2011-04-27 1:47

Name: Anonymous 2011-04-27 1:59

Name: Anonymous 2011-04-27 2:03

Name: Anonymous 2011-04-27 2:08

Name: Anonymous 2011-04-27 2:12

Name: Anonymous 2011-04-27 3:07

Name: Anonymous 2011-04-27 3:12

Name: Anonymous 2011-04-27 3:17

Name: Anonymous 2011-04-27 3:29

Name: Anonymous 2011-04-27 3:34

Name: Anonymous 2011-04-27 3:38

Name: Anonymous 2011-04-27 3:42


Don't change these.
Name: Email:
Entire Thread Thread List