Code: Select all
$quick_reply_form .= "<textarea name='input' rows='10' cols='50'
wrap='virtual' class='post''></textarea><br />
Code: Select all
$secretkey = 't' . $topic_id;
// Generate a signature to validate this page
$authkey = md5("nana" . $secretkey . "foofoo");
$authval = md5($HTTP_SERVER_VARS['HTTP_USER_AGENT'] . $secretkey . $HTTP_SERVER_VARS['REMOTE_ADDR']);
$timekey = md5("time" . $secretkey);
$timepad = preg_replace('/[^0-9]/', '', $HTTP_SERVER_VARS['REMOTE_ADDR']) + 0;
$timeval = time() ^ $timepad;
$quick_reply_form .= '<input type="hidden" name="' . $authkey . '" value="' . $authval . '">';
$quick_reply_form .= '<input type="hidden" name="' . $timekey . '" value="' . $timeval . '">';