Public feed #604281

Stuff

public php v1 · immutable
Raw Edit
·published 2007-07-05 12:32 UTC
rendered paste body
<?php	require ('./requires.php');		if(!in_array(GROUP_NEWS, $user_info['groups'])) {		header("Location: $admin[redirect]");		}	else {	}		if(!in_array(GROUP_NEWS, $user_info['groups'])) {		header("Location: $admin[redirect]");		}		$author = $context['user']['name'];	$title = mysql_real_escape_string($_POST['title']);	$content = mysql_real_escape_string($_POST['content']);	$type = mysql_real_escape_string($_POST['type']);	if (mysql_real_escape_string($_POST['faq']) == "0" {		$faq == "0";	}	else {		$faq == "1";	};	$errorcode = $type = mysql_real_escape_string($_POST['errorcode']);			mysql_query ("		INSERT INTO help (help_authors, help_title, help_content, help_lastupdate, help_type, help_errorcode)		VALUES ('$author', '$title', '$content', NOW(), $type, $errorcode)	");		header('Location: index.php');	?>