All pastes #435704 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-12 02:30 UTC
rendered paste body
<?php
print_r($_POST);
exit;

$reply = "lul";

 if ( isset($_GET['title']) ) {
die('Reply');
}

require_once($_SERVER['DOCUMENT_ROOT'] . '/../lib/mini.inc.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../lib/forums.inc.php');

protectedPage();

$gettopic = @mysql_query("SELECT * FROM f_topics WHERE id = '$_GET[id]'");
$topic = @mysql_fetch_array($gettopic);

if($_POST['reply']){
$body = $_POST['body'];
$name = $topic[title];
$time = time();

if ( strlen(	trim( str_replace(' ', '', strip_tags($body) ) )	) < 10 ){
$errors[] = 'Your reply\'s body must be at least 10 characters not including whitespace or HTML.';
}

if ( sizeof($errors) > 0 ) {
die('<!--error-->' . restoreLink('reply', 1, 'forumsMessageCenter') . 'Your post could not be made for the following reasons:<br />' . join('<br />', $errors));
}
}

if (!$_POST['reply']){
echo("

	<form name='reply' method='post'>
		<div class='headlineSmall'>Topic Title:</div>
		<div class='content' style='margin-bottom: 5px;'>$topic[title]</div>
		
		<div class='headlineSmall'>Reply Body:</div>
		<div class='content' style='margin-bottom: 5px;'><textarea name='body' style='width: 99%; height: 200px; font-size: 12px; font-family:Arial, Helvetica, sans-serif''></textarea></div>

		<div class='headlineSmall'>Reply:</div>

		<div class='content'><input type='submit' name='reply' value='Reply'>
		</div>
	</form>
	
	<div id='forumsMessageCenter' class='content' style='border-top: 1px #CCCCCC solid; margin-top: 5px; visibility: hidden; display: none; height: 0px;'></div>
");
}