Skip to content

Commit

Permalink
Update guestbook.php
Browse files Browse the repository at this point in the history
  • Loading branch information
artelos7 committed Apr 9, 2019
1 parent 77fea7a commit d8827e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/guestbook/controllers/guestbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ public function action_say() {
if (!$this->error) {
a_antiflud();

setcookie('username', $_POST['username'], time() + 999999999, '/');

$this->db->query("INSERT INTO #__guestbook SET
username = '',
user_id = '" . USER_ID . "',
message = '" . a_safe($_POST['message']) . "',
time = UNIX_TIMESTAMP()
Expand Down Expand Up @@ -167,4 +164,4 @@ public function action_delete_message() {

}

?>
?>

0 comments on commit d8827e3

Please sign in to comment.