[zi-cvs] packages/com.zzoss.zic/inc form.php,1.10,1.11

Sandro Zic <[email protected]> Tue, 29 Jun 2004 09:31:58 +0000
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zic/inc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3768

Modified Files:
	form.php 
Log Message:
option to avoid redirects

Index: form.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic/inc/form.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** form.php	17 May 2004 09:55:23 -0000	1.10
--- form.php	29 Jun 2004 09:31:55 -0000	1.11
***************
*** 90,106 ****
          ) &&
          !isset($zi_errors)){
  	  	// process data
  		if(function_exists('zi_process')){
! 		  	call_user_func('zi_process', array($_REQUEST));
  		}
  		// go on
!         if(isset($_REQUEST['ZI_LOCATION_NEXT']) && strlen($_REQUEST['ZI_LOCATION_NEXT'])){
!             $redirect = $_REQUEST['ZI_LOCATION_NEXT'];
!             header('Location: '.$redirect);
!             exit;
!         } elseif(isset($_REQUEST['ZI_LOCATION_OK']) && strlen($_REQUEST['ZI_LOCATION_OK'])) {
!             $redirect = $_REQUEST['ZI_LOCATION_OK'];
!             header('Location: '.$redirect);
!             exit;
          }
  	}
--- 90,113 ----
          ) &&
          !isset($zi_errors)){
+         
  	  	// process data
  		if(function_exists('zi_process')){
! 		  	$options = call_user_func('zi_process', array($_REQUEST));
  		}
  		// go on
!         if(
!             !is_array($options) ||
!             !isset($options['redirect']) ||
!             $options['redirect'] == true
!             ){
!             if(isset($_REQUEST['ZI_LOCATION_NEXT']) && strlen($_REQUEST['ZI_LOCATION_NEXT'])){
!                 $redirect = $_REQUEST['ZI_LOCATION_NEXT'];
!                 header('Location: '.$redirect);
!                 exit;
!             } elseif(isset($_REQUEST['ZI_LOCATION_OK']) && strlen($_REQUEST['ZI_LOCATION_OK'])) {
!                 $redirect = $_REQUEST['ZI_LOCATION_OK'];
!                 header('Location: '.$redirect);
!                 exit;
!             }
          }
  	}



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com