forked from tylerhall/Shine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
of.php
31 lines (24 loc) · 1019 Bytes
/
of.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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";