Changeset 1421 in ExiteCMS
- Timestamp:
- 05/30/08 22:11:18 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
forum/post.php (modified) (1 diff)
-
includes/theme_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/post.php
r1317 r1421 599 599 } 600 600 // check if this isn't a reload, back-post, or double submit 601 if (isset($_ COOKIE['post_'.$random_id])) {601 if (isset($_SESSION['posts'][$random_id])) { 602 602 $error = $locale['458']; 603 603 } else { 604 604 if (!$flood) { 605 setcookie("post_".$random_id, "posted", time()+60*60, "/", "", "0"); 605 if (!isset($_SESSION['posts']) || !is_array($_SESSION['posts'])) $_SESSION['posts'] = array(); 606 $_SESSION['posts'][$random_id] = time()+60*60*12; 606 607 $result = dbquery("UPDATE ".$db_prefix."forums SET forum_lastpost='".time()."', forum_lastuser='".$userdata['user_id']."' WHERE forum_id='$forum_id'"); 607 608 switch ($action) { -
trunk/includes/theme_functions.php
r1313 r1421 467 467 } 468 468 469 // remove any expired posts trackers 470 if (isset($_SESSION['posts']) && is_array($_SESSION['posts'])) { 471 foreach($_SESSION['posts'] as $key => $value) { 472 if ($value < time()) unset($_SESSION['posts'][$key]); 473 } 474 } 475 469 476 // flush any session info 470 477 session_write_close();
Note: See TracChangeset
for help on using the changeset viewer.
