Index: trunk/tools/alertbot/web/addwarn.php |
— | — | @@ -51,13 +51,15 @@ |
52 | 52 | else |
53 | 53 | $project=$language.".".$project; |
54 | 54 | |
55 | | - $problem=$problem_correspond[$problem]; |
56 | 55 | if($problem=="other" || $problem=="parts") |
57 | | - $problem.=$problem_other; |
| 56 | + $problem=$problem_correspond[$problem].$problem_other; |
| 57 | + else |
| 58 | + $problem=$problem_correspond[$problem]; |
| 59 | + |
58 | 60 | $res=mysqli_query($mysql_link,"INSERT INTO `alertbot`.`alerts` (`id`, `time`, `reporter`, `project`, `affected`, `problem`, `state`) VALUES (NULL, CURRENT_TIMESTAMP, '".$_SERVER['REMOTE_ADDR']."', '$project', '".$level_correspond[$level]."', '".$problem."', '0');"); |
59 | 61 | if(mysqli_affected_rows($mysql_link)!=1) |
60 | 62 | $msg.="Error occurred: ".mysqli_error($mysql_link)." (".mysqli_errno($mysql_link).")"; |
61 | | - $msg.="Thanks for your submission.<br />\r\n"."INSERT INTO `alertbot`.`alerts` (`id`, `time`, `reporter`, `project`, `affected`, `problem`, `state`) VALUES (NULL, CURRENT_TIMESTAMP, '".$_SERVER['REMOTE_ADDR']."', '$project', '".$level_correspond[$level]."', '".$problem."', '0');"; |
| 63 | + $msg.="Thanks for your submission.<br />\r\n"; |
62 | 64 | } |
63 | 65 | $msg.="<a href='warning.php'>Back</a> to main page."; |
64 | 66 | ?> |
Index: trunk/tools/alertbot/web/config.php |
— | — | @@ -0,0 +1,7 @@ |
| 2 | +<?PHP |
| 3 | + $mysql_host="localhost"; |
| 4 | + $mysql_user=""; |
| 5 | + $mysql_password=""; |
| 6 | + $mysql_dbname="alertbot"; |
| 7 | + $mysql_link=mysqli_connect($mysql_host,$mysql_user,$mysql_password,$mysql_dbname); |
| 8 | +?> |
\ No newline at end of file |
Property changes on: trunk/tools/alertbot/web/config.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 9 | + native |