Location: PHPKode > projects > Warp.cms - php/mysql content management > warp_121/forum_pvw.php
<?php

// [forum message preview module v.1.2.1]
// xantis.warp.cms - version 1.2
// (c) 2002 xantis - all rights reserved
// this code is registered and protected by international copyrights laws


//####### Register Globals !

extract($HTTP_ENV_VARS);
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);

//#########################

$ysecure = rawurldecode($ysecure);
$ysecure = base64_decode ($ysecure);
if ($ysecure == 'forumfrmok') {
	$xnt_control_var = 'xnt2002warp.cms';
} //end if

if (empty($yfilename)) {
	$yfilename = 'forum_pvw.php';
} //end if

require("lib_adv.php");


//###########################################

$pst_subj_adv = trim("$subj_var");
$pst_subj_adv = stripslashes("$pst_subj_adv");
$pst_subj_adv = htmlspecialchars("$pst_subj_adv");
$pst_subj_adv = ereg_replace ('  ', '&nbsp;&nbsp;', $pst_subj_adv);

$pst_msg_adv = stripslashes("$msg_var");
$pst_msg_adv = xflash_rtf_to_html ("$pst_msg_adv");

//###########################################



function forum_msg_rtf_preview () {


global	$yforum_message_preview, $ydisplay_width, $ymain_color, 
	$ybar_menu_color, $yforum_subject, $yforum_message,
	$pst_subj_adv, $pst_msg_adv ;


//--------------------------------------------------- header
xheader ("$yforum_message_preview", 'secure');
xcenter_start ();
//---------------------------------------------------

	xnewline ();

	xtable_start ("$ydisplay_width");
		xtable_row_start ();
			xtable_column_start_vcenter ('1', '100%', "$ymain_color");
				xcenter_start ();

					xnewline ();
					xtable_start ('450');
						xtable_row_start ();
							xtable_column_start_vcenter ('1', '450', "$ybar_menu_color");
								xspace();
							xtable_column_end ();
						xtable_row_end ();

						xtable_row_start ();
							xtable_column_start_vcenter ('1', '450', "$ymain_color");
								xnewline ();
								xtext_small ("$yforum_subject".' : ');
								xtext_small ('<b>'."$pst_subj_adv".'</b>');
								xnewline ();
								xvline ('100%');
								xtext_small ('<i>'."$yforum_message".' : </i>');
								xnewline ();
								xtext_small ("$pst_msg_adv");
								xnewline ();
							xtable_column_end ();
						xtable_row_end ();

						xtable_row_start ();
							xtable_column_start_vcenter ('1', '450', "$ybar_menu_color");
								xspace();
							xtable_column_end ();
						xtable_row_end ();
					xtable_end ();
					xnewline ();

				xcenter_end ();
			xtable_column_end ();
		xtable_row_end ();
	xtable_end ();

//--------------------------------------------------- footer
xcenter_end ();
xfooter ();
//---------------------------------------------------

} //end function



//===================================
if ($ysecure == 'forumfrmok') {
	forum_msg_rtf_preview ();
} //end if
//===================================

//end of php code
?>
Return current item: Warp.cms - php/mysql content management