- if (isset($_REQUEST["link"]))
- $item["link"] = trim($_REQUEST["link"]);
- if (isset($_REQUEST["image"]))
- $item["image"] = trim($_REQUEST["image"]);
- if (isset($_REQUEST["title"]))
- $item["title"] = trim($_REQUEST["title"]);
- if (isset($_REQUEST["msg"]))
- $item["msg"] = trim($_REQUEST["msg"]);
- if (isset($_REQUEST["description"]))
- $item["description"] = trim($_REQUEST["description"]);
- if (isset($_REQUEST["date"]))
- $item["date"] = date("c", strtotime($date = str_replace(" at ", ", ", $_REQUEST["date"])));
- if (isset($_REQUEST["url"]))
- $item["url"] = trim($_REQUEST["url"]);
-
- if ((substr($item["msg"], 0, 3) == "<<<") AND (substr($item["msg"], -3, 3) == ">>>"))
- $item["msg"] = substr($item["msg"], 3, -3);
+ if (isset($_REQUEST['link'])) {
+ $item['link'] = trim($_REQUEST['link']);
+ }
+ if (isset($_REQUEST['image'])) {
+ $item['image'] = trim($_REQUEST['image']);
+ }
+ if (isset($_REQUEST['title'])) {
+ $item['title'] = trim($_REQUEST['title']);
+ }
+ if (isset($_REQUEST['msg'])) {
+ $item['msg'] = trim($_REQUEST['msg']);
+ }
+ if (isset($_REQUEST['description'])) {
+ $item['description'] = trim($_REQUEST['description']);
+ }
+ if (isset($_REQUEST['date'])) {
+ $item['date'] = date('c', strtotime($date = str_replace(' at ', ', ', $_REQUEST['date'])));
+ }
+ if (isset($_REQUEST['url'])) {
+ $item['url'] = trim($_REQUEST['url']);
+ }
+
+ if ((substr($item['msg'], 0, 3) == '<<<') && (substr($item['msg'], -3, 3) == '>>>')) {
+ $item['msg'] = substr($item['msg'], 3, -3);
+ }