Changeset 24 for trunk/bb-includes/functions.php
- Timestamp:
- 12/29/2004 12:59:50 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.php
r21 r24 353 353 $post_id = $bbdb->insert_id; 354 354 $bbdb->query("UPDATE $bbdb->forums SET posts = posts + 1 WHERE forum_id = $topic->forum_id"); 355 $bbdb->query("UPDATE $bbdb->topics SET topic_ last_poster = $uid, topic_last_poster_name = '$uname',355 $bbdb->query("UPDATE $bbdb->topics SET topic_time = '$now', topic_last_poster = $uid, topic_last_poster_name = '$uname', 356 356 topic_last_post_id = $post_id, topic_posts = topic_posts + 1 WHERE topic_id = $tid"); 357 357 bb_do_action('bb_new_post', $post_id); … … 423 423 } 424 424 425 function bb_global_sanitize( $array ) { 426 foreach ($array as $k => $v) { 427 if ( is_array($v) ) { 428 $array[$k] = bb_global_sanitize($v); 429 } else { 430 if ( get_magic_quotes_gpc() ) 431 $array[$k] = trim($v); 432 else 433 $array[$k] = addslashes( trim($v) ); 434 } 435 } 436 return $array; 437 } 438 425 439 ?>
Note: See TracChangeset
for help on using the changeset viewer.