= $requiredrole)||(1==1)){ if ($delete=="yes"){ $result=mysql_query("delete from post where post_id = '$postid'"); $delete=""; } if($post_text!=""){ $post_date = mktime( date("G"), date("i"), date("s"), date("n"), date("j"), date("Y")); //echo"$post_thread_id, $post_user_id, $post_text, $post_date"; $result=mysql_query("insert into post (post_thread_id,post_user_id,post_text,post_date)". "values ('$post_thread_id','$post_user_id','$post_text','$post_date')"); // building text-version $mail_text ="\n The following post has been submitted by $user_fname $user_lname:\n"; $mail_text.="\n Regarding:\t\t\t$threadtype_name thread from $post_date started by $post_user_name"; $mail_text.="\n Category:\t\t\t$threadtype_name"; $mail_text.="\n The post:\t\t\t$post_text"; //building the html version $mail_html.="\n\n"; $mail_html.="\n"; $mail_html.="\n"; $mail_html.="\n"; $mail_html.="\n"; $mail_html.="\n"; $mail_html.=""; $mail_html.="
"; $mail_html.="

The following post has been submitted by $user_fname $user_lname:

"; $mail_html.=""; $mail_html.=""; $post_date = date("M. j, Y",$post_date); $mail_html.=""; $mail_html.=" "; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.=""; $mail_html.="
Regarding:$threadtype_name forum started on $post_date by $post_user_name
Thread category:$threadtype_name
The post:$post_text


Track this thread online. You will have to log in to the system to reply to this post.
"; $mail_html.=""; // Boundary $innerboundary ="=_".time()."_="; // Mail-Header $mail_head ="MIME-Version: 1.0\n"; $mail_head.="From:$thread_user_email\n"; $mail_head.="Reply-To: $thread_user_email\n"; $mail_head.="CC: $thread_user_email\n"; $mail_head.="X-Mailer: kmPHP-Mailer\n"; $mail_head.="X-MSMail-Priority: $mailpriority\n"; $mail_head.="Content-Type: multipart/alternative;\n\tboundary=\"".$innerboundary."\"\n"; // Mail-subject $mail_subj ="Reply from $user_fname $user_lname"; $mail_body =""; // TEXT part $mail_body.="\n--".$innerboundary."\n"; $mail_body.="Content-Type: text/plain;\n\tcharset=\"iso-8859-1\"\n\n"; $mail_body.=$mail_text."\n\n"; // HTML part $mail_body.="\n--".$innerboundary."\n"; $mail_body.="Content-Type: text/html;\n\tcharset=\"iso-8859-1\"\n"; $mail_body.="Content-Transfer-Encoding: base64\n\n"; $mail_body.=chunk_split(base64_encode($mail_html))."\n\n"; $mail_body.="\n--".$innerboundary."--\n"; $mail_body.="\n\n"; mail("jbh@site-ations.com",$mail_subj,$mail_body,$mail_head); } if ($report == "true"){ mail("jbh@site-ations.com","lyalax offensive forum report","Thread number $reqid has been reported as offensive"); } $query2 = "select * from coaches where coach_id = '$thread_user_id'"; $result2=mysql_query($query2,$connection); $myrow2=mysql_fetch_array($result2); $thread_user_fname=$myrow2["fname"]; $thread_user_lname=$myrow2["lname"]; $thread_user_email=$myrow2["email"]; ?>

"; } ?>
Subject Text -- &report=true">Report as offensive Member Date
$threadtype_name$thread_title -- $thread_text$thread_user_fname $thread_user_lname$thread_date

Posts to this thread -- Reply to this thread below

"; } echo"
Date/TimeMemberComment
$post_date
$post_time
$post_user_fname $post_user_lname$post_text

"; // Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM post where post_thread_id = '$reqid'"),0); // Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results); if($total_pages >= 2){ // Build Previous Link if($page > 1){ $prev = ($page - 1); echo "Previous | "; } for($i = 1; $i <= $total_pages; $i++){ if(($page) == $i){ echo "$i | "; } else { echo "$i | "; } } // Build Next Link if($page < $total_pages){ $next = ($page + 1); echo "Next"; } } echo "
"; ?>

Post a reply to this thread:
"> "> "> "> "> "> "> ">
Post:
Submit

$no_access

"?>