<?
/*
Author		: Cyrus_X
Version		: 1.00
Date		: 5th September 2001
Function	: Feedback Form.
*/
session_start();
require("auth.php");
$today = getdate();
$month = $today['mon']; 
$mday = $today['mday']; 
$year = $today['year'];
$accesslevel=authenticate($public);
if ($action=="Send")
{
	$date = $year . "-" . $month . "-" . $mday;
	$fbid = find_new_id("fbid","feedback");
	$uid = getuid($ouim["SessID"]);
	$username = magiccode(getusername($uid));
	$feedback = magiccode($feedback);
	$sql = "insert into feedback (fbid,userid,name,comments,date) values('$fbid','$uid','$username','$feedback','$date')";
	db_query($sql);
	$msg = "Feedback Sent";
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Feedback Form </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY bgcolor="#ffffff">
<? echo "<center><b><font size=+1>$msg<br></font></b></center>" ?>
<table align="center">
<FORM METHOD=POST ACTION="">
<center>Feedback Form</center><p>
Please write your comments below and e-mail to Administration Officer.<P>
<TEXTAREA NAME="feedback" ROWS="8" COLS="60"></TEXTAREA><BR>
<INPUT TYPE="submit" name="action" value="Send">
</FORM>
</table>
</BODY>
</HTML>
