\n"; echo "

"; if ($data_thread[headline]!='') { echo $data_thread[headline]; } if ($edit_button) { echo " "; } echo "

\n"; if ($data_thread[image]!="") { $image_count++; if ($image_count%2==0) { $align="thread_img_right"; } else { $align="thread_img_left"; } if($data_thread[url]) { echo "

"; echo "",$data_thread[caption],"

"; } else { echo "

"; echo $data_thread[caption],"

"; } } echo $data_thread[para01],"\n\n"; if($data_thread[document] && $data_thread[document]!="none") { document_link(); } echo "\n"; } function print_thread_elements() { global $language_data, $edit_button, $thread_id, $image_count, $doc_root, $data, $data_thread, $fdate, $totalrows_thread, $mimetype, $PHP_SELF, $thread_graphic, $thread_headline, $thread_body, $i; if ($data_thread[headline]!='') { $thread_headline = "$data_thread[headline]"; } if ($edit_button) { echo " "; } if ($data_thread[image]!="") { $image_count++; if ($image_count%2==0) { $align="thread_img_right"; } else { $align="thread_img_left"; } if($data_thread[url]) { $thread_graphic = "

\n ".$data_thread[caption]."

"; } else { $thread_graphic = "

".$data_thread[caption]."

"; } } $thread_body = $data_thread[para01]."\n"; if($data_thread[document] && $data_thread[document]!="none") { document_link(); } echo "
\n"; echo "$thread_graphic"; echo "

$thread_headline

"; echo "$thread_body"; if($data_thread[send_email]==t) { echo "
"; } echo "
"; } function print_thread_headlines() { global $data_thread; if ($data_thread[headline]!='') { echo "

".$data_thread[headline]."

"; } } function document_link () { global $data, $data_thread, $mimetype, $doc_root; if($data[document]!='') { echo "
"; echo ""; echo $data[document_description]."
"; } else { echo "
"; echo ""; echo $data_thread[document_description]."
"; } } function upload_files() { global $site_path, $file, $sm_file, $newname, $sm_localfile_name, $localfile, $localfile_name, $sm_localfile, $document, $document_description, $localdoc, $localdoc_name, $image, $icon; if($localfile_name) { $newname=strtolower(str_replace(" ","_",$localfile_name)); if (is_uploaded_file($localfile)) { copy($localfile, "$site_path/graphics/$newname"); $image=$newname; } else { echo "File upload error"; } } if($sm_localfile_name) { $newname=strtolower(str_replace(" ","_",$sm_localfile_name)); if (is_uploaded_file($sm_localfile)) { copy($sm_localfile, "$site_path/graphics/sm/$newname"); $icon=$newname; } else { echo "File upload error"; } } if($localdoc_name) { $newname=strtolower(str_replace(" ","_",$localdoc_name)); if (is_uploaded_file($localdoc)) { copy($localdoc, "$site_path/documents/$newname"); $document=$newname; } else { echo "File upload error"; } } } ?>