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

// [user forget 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);

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

$xnt_control_var = 'xnt2002warp.cms';

require("lib_adv.php");


//check session
if (strlen($wpsid) < '32') {
	$hlocal_sess_req_redr = "$ywebsite_addr".'xindex.php';
	header("Location: $hlocal_sess_req_redr");
} //end if


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


function xuser_forget () {

global	$wpsid, $ywebsite_addr, $y_warp_picts_dir, $wsfgt ;

global 	$ybar_color, $ymain_color, $ybar_menu_color, $ysmall_text_color, $ywarp_max_display_cfg ;

global	$ywusr_fgt_title, $ywusr_fgt_title_x, $y_warp_back_text, $y_warp_back_text_x,
	$ywusr_fgt_txt_bttn, $ywusr_email, $ywusr_hint_fgt, $ywusr_status_txt,
	$ywusr_process_fgt_txt ;

//---------------------------------------------------------page header
xheader ("$ywusr_fgt_title", '');
xcenter_start ();
xshow_page_title ("$ywusr_fgt_title", "$wpsid");
xnewline ();
//---------------------------------------------------------


//==================== where bar

	xtable_start ("$ywarp_max_display_cfg");
		xtable_row_start ();
			xtable_column_start ('1', '', "$ybar_menu_color");
				xtext_small ('|');
				xspace ();
				xtext_small ("<b>$ywusr_fgt_title</b>");
				xspace ();
				xtext_small ('|');
				if ($wsfgt <> 'x') {
					xspace ();
					xtext_link ("$y_warp_back_text_x", "$ywebsite_addr"."xw_main.php"."?wpsid=$wpsid", '_self');
					xspace ();
					xtext_small ('|');
				} //end if
			xtable_column_end ();
		xtable_row_end ();
	xtable_end ();

	xnewline ();

//=====================================



xtable_start ("$ywarp_max_display_cfg");

	xtable_row_start ();
		xtable_column_start ('1', '100%', "$ybar_color");
			xtext_title ("&nbsp;"."$ywusr_fgt_title_x");
		xtable_column_end ();
	xtable_row_end ();

	xtable_row_start ();
		xtable_column_start ('1', '100%', "$ymain_color");
			xvline ('100%');
		xtable_column_end ();
	xtable_row_end ();

	xtable_row_start ();
		xtable_column_start ('1', '100%', "$ymain_color");
			xcenter_start ();

				$op_var = 'ufgt';
				xwriteflash_nobg_var ("$ywebsite_addr"."usrfgt_frm.swf",
					"&flash_form_backcolor=".rawurlencode($ybar_menu_color).
					"&flash_form_textcolor=".rawurlencode($ysmall_text_color).
					"&flash_form_text_back=".rawurlencode($y_warp_back_text).
					"&flash_form_text_bttn=".rawurlencode($ywusr_fgt_txt_bttn).
					"&flash_form_text_status=".rawurlencode($ywusr_status_txt." : ").
					"&flash_form_text_process=".rawurlencode($ywusr_process_fgt_txt).
					"&email_txt=".rawurlencode("$ywusr_email".' :').
					"&hint_txt=".rawurlencode("$ywusr_hint_fgt").
					"&email_var=".rawurlencode('').
					"&flash_form_logo=".rawurlencode("$ywebsite_addr"."$y_warp_picts_dir".'/usr_accnt.jpg').
					"&flash_form_op=".rawurlencode("$op_var").
					"&xurl=".rawurlencode("$ywebsite_addr"."usr_op.php").
					"&"
				, '450', '200');

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

	xtable_row_start ();
		xtable_column_start ('1', '100%', "$ymain_color");
			xvline ('100%');
		xtable_column_end ();
	xtable_row_end ();

xtable_end ();


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

} //end function


//-------------------------------
xuser_forget ();
//-------------------------------



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