Changeset 805 for trunk/Modules/Forum/Forum.php
- Timestamp:
- May 24, 2014, 11:35:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Forum/Forum.php
r792 r805 261 261 $this->System->Database->query('INSERT INTO `'.$Table.'` ( `User`, `UserName` , `Text` , `Date` , `IP` , `Thread` ) '. 262 262 ' VALUES ('.$this->System->User->Id.', "'.$this->System->User->Name. 263 '", "'.$Text.'", NOW(), "'. $_SERVER['REMOTE_ADDR'].'","'.$_GET['Thread'].'")');263 '", "'.$Text.'", NOW(), "'.GetRemoteAddress().'","'.$_GET['Thread'].'")'); 264 264 } else $Output .= ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 265 265 } else 266 266 $this->System->Database->query('INSERT INTO `'.$Table.'` ( `User`, `UserName` , `Text` , `Date` , `IP`) '. 267 267 ' VALUES ('.$this->System->User->Id.', "'.$this->System->User->Name. 268 '", "'.$Text.'", NOW(), "'. $_SERVER['REMOTE_ADDR'].'")');268 '", "'.$Text.'", NOW(), "'.GetRemoteAddress().'")'); 269 269 $Output .= ShowMessage(T('Added.')); 270 270 }
Note:
See TracChangeset
for help on using the changeset viewer.