Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 1019 Bytes
<?PHP
require 'includes/master.inc.php';
error_log(print_r($_POST, true));
$db = Database::getDatabase();
foreach($_POST as $key => $val)
$_POST[$key] = mysql_real_escape_string($val, $db->db);
$dt = date('Y-m-d H:i:s');
$query = "INSERT INTO shine_feedback (appname, appversion, systemversion, email, reply, `type`, message, importance, critical, dt, ip, `new`, reguser, regmail) VALUES
('{$_POST['appname']}',
'{$_POST['appversion']}',
'{$_POST['systemversion']}',
'{$_POST['email']}',
'{$_POST['reply']}',
'{$_POST['type']}',
'{$_POST['message']}',
'{$_POST['importance']}',
'{$_POST['critical']}',
'$dt',
'{$_SERVER['REMOTE_ADDR']}',
'1',
'{$_POST['reguser']}',
'{$_POST['regmail']}')";
mysql_query($query, $db->db) or die('error');
echo "ok";
Jump to Line
Something went wrong with that request. Please try again.