'Y'){ if(isset($_COOKIE["UserID"])){ $obj = get_user_by_id($con, $_COOKIE["UserID"]); if($obj->message == ''){ $screen_name = $obj->screen_name; $_SESSION[ScreenName] = $screen_name; if($_SESSION[LoggedIn] == 'Y') $logged_in = true; } else{ $message = $obj->message; $screen_name = 'Guest'; if($_SESSION[LoggedIn] <> 'Y') $logged_in = false; } } else{ $logged_in = false; } } } $today = date("D F j, Y, g:i a"); switch($db_action){ case 'insert': if($_SESSION["insert"] == 'Y'){ if($discuss_id == ''){ $sql = "insert into forum_discuss (forum_id, posted_by, posted_date, content) values ("; $sql .= mysqli_real_escape_string($con,$id).","; $sql .= "'".mysqli_real_escape_string($con,$_SESSION["ScreenName"])."',"; $sql .= "'".$today."',"; $sql .= "'".mysqli_real_escape_string($con,$_REQUEST["content"])."'"; $sql .= ")"; $result = @mysqli_query($con, $sql); } elseif($discuss_id <> ''){ $sql = "insert into forum_reply (discuss_id, posted_by, posted_date, content) values ("; $sql .= mysqli_real_escape_string($con,$discuss_id).","; $sql .= "'".mysqli_real_escape_string($con,$_SESSION["ScreenName"])."',"; $sql .= "'".$today."',"; $sql .= "'".mysqli_real_escape_string($con,$_REQUEST["content"])."'"; $sql .= ")"; $result = @mysqli_query($con, $sql); } $sql = "update forum_topic set replies = replies + 1, last_updated = '".$today."' where id = ".$id; $result = @mysqli_query($con, $sql); unset($_SESSION["insert"]); } break; case 'login': // validate... $user_obj = get_user_id($con, $_REQUEST[email], $_REQUEST[password]); if($user_obj->user <> 0){ // set cookie...and session set_session_and_cookie($user_obj); } else{ $login_message = $user_obj->message; } break; } $page_name = 'view_topic'; ?>
 
  Recent News
 
 
0 && strlen($width) > 0 && strlen($height) > 0){ $have_image = TRUE; $old_x = $width; $old_y = $height; // see if we need to resize... if($width <= $display_width && $height <= $display_height){ // use as is... $thumb_w = intval($width); $thumb_h = intval($height); } else{ // look at aspect ratios for resizing... if ($old_x > $old_y){ $thumb_w=$new_w; $thumb_h=$old_y*($new_h/$old_x); } if ($old_x < $old_y){ $thumb_w=$old_x*($new_w/$old_y); $thumb_h=$new_h; } if ($old_x == $old_y){ $thumb_w=$new_w; $thumb_h=$new_h; } } $thumb_w = intval($thumb_w); $thumb_h = intval($thumb_h); } ?> "; } ?>
  
forum image
".stripslashes($row["image_caption"]).""; } ?> Posted By:


Contents of this post have been removed by the administrator.

Post Reply
Posted By:


Posted By:



Post Reply
"; if($logged_in){ $_SESSION["insert"] = 'Y'; ?>
 
  FISHERMANS REPORT REPLY
 
Posting: