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

// [print redir 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");


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


function xprint_redir () {
//---------------------------------

global 	$warp_print_process_txt, $xid, $xop, $y_warp_picts_dir, 
	$ywebsite_addr, $ysite_back_color, $wpsid, $admacc ;

//---------------------------------

//---------------------------------------------------------page header
xheader ("$warp_print_process_txt", '');
xcenter_start ();
xnewline ();
//---------------------------------------------------------END page header


//external vars
$block_var = rawurldecode($xid);
$op_var = rawurldecode($xop);


xwriteflash_bg_var ("$ywebsite_addr"."util_redir.swf",
	"&flash_form_logo=".rawurlencode("$ywebsite_addr"."$y_warp_picts_dir".'/print_mini.jpg').
	"&flash_form_blockid=".rawurlencode($block_var).
	"&flash_form_op=".rawurlencode($op_var).
	"&admacc=".rawurlencode($admacc).
	"&xurl=".rawurlencode("$ywebsite_addr"."print_app.php").
	"&wpsid=".rawurlencode($wpsid).
	"&"
, '75', '50', "$ysite_back_color");

xnewline ();


echo ( 
	"<script language=\"JavaScript\">\n".
	"window.focus('');\n".
	"</script>\n"
);



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

} //END FUNCTION


//---------------------------------

xprint_redir ();

//---------------------------------

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