Location: PHPKode > scripts > Ja2BU > form.php
<?php session_start();
require_once ('salt.php');
require_once ('classes/securesession.class.php');
$ss = new SecSession();
$ss->check_browser = true;
$ss->check_ip_blocks = 2;
$ss->secure_word = $salt;
$ss->regenerate_id = true;
if(!$ss->Check() || !isset($_SESSION['loggedin']) || !$_SESSION['loggedin']) {
	die();
}
if(!$_SESSION['inecsess']) {
	die();
}
if(get_magic_quotes_gpc()) {
	$type = stripslashes($_POST['type']);
	$univer = date("Yhis");
	$bname = stripslashes($_POST['bname']);
	$amess = stripslashes($_POST['amess']);
	$amesst = htmlspecialchars($amess);
	$hashtags = stripslashes($_POST['hashtags']);
} else {
	$type = $_POST['type'];
	$univer = date("Yhis");
	$bname = $_POST['bname'];
	$amess = $_POST['amess'];
	$amesst = htmlspecialchars($amess);
	$hashtags = $_POST['hashtags'];
}
?>
<form action="post.php" id="incform" method="post">
<h3><?php echo $lang['NEWARTICLE']; ?></h3>
<input type="hidden" name="type" value="<?php echo $type; ?>" />
<input type="hidden" name="univer" value="<?php echo $univer; ?>" />
<div style="<?php echo @$error1; ?>"><?php echo $lang['BOOKFIELD1']; ?>:</div>
<div><input id="firstfield" type="text" name="bname" value="<?php echo $bname; ?>" /></div>
<br />
<br />
<div style="<?php echo @$error4; ?>"><?php echo $lang['POSTDES']; ?>:</div>
<script>edToolbar('mytxtarea3'); </script>
<div><textarea id="mytxtarea3" name="amess" class="ed"><?php echo @$amesst; ?></textarea></div>
<br /><br />
<div style="<?php echo @$error12; ?>"><?php echo $lang['TAGS']; ?>: <?php echo $lang['TAGSDESC']; ?></div>
<div><input id="firstfield" type="text" name="hashtags" value="<?php echo $hashtags; ?>" /></div>
<br />
<br />
<div><input class="buton" type="submit" value="<?php echo $lang['LINKSUB']; ?>" name="query" /></div>
</form>
<br />
<br />
</div>
Return current item: Ja2BU