'ccmonth',
'ccyear',
'conf',
+ 'rate_class',
);
foreach ( $gArray as $gArr ) {
- $GLOBALS[$gArr] = ${$gArr};
+ $GLOBALS[$gArr] = $_REQUEST[$gArr];
}
/*****************************************************
*
function cleanup( $varname )
{
$GLOBALS[$varname] = stripslashes( trim($GLOBALS[$varname]) );
+ $_REQUEST[$varname] = $GLOBALS[$varname];
}
$link_data = '';
function reg_link_data( $data_field_name )
{
global $link_data;
- $x = urlencode(trim(str_replace( array( '|', '~' ), '', stripslashes($GLOBALS[$data_field_name]))));
+ $value = ( $_REQUEST[$data_field_name] ) ? $_REQUEST[$data_field_name] : $GLOBALS[$data_field_name];
+ $x = urlencode(trim(str_replace( array( '|', '~' ), '', stripslashes($value))));
if( $x != '' )
$link_data .= '&'.$data_field_name.'='.$x;
}
function reg_pass_data( $data_field_name, $value = '' )
{
global $link_data, $form_data ;
+ $val = ( $_REQUEST[$data_field_name] ) ? $_REQUEST[$data_field_name] : $GLOBALS[$data_field_name];
//extract( $_REQUEST );
- $x = stripslashes(trim(str_replace( array( '|', '~' ), '', $GLOBALS[$data_field_name])));
+ $x = stripslashes(trim(str_replace( array( '|', '~' ), '', $val)));
if( $value != '' )
$x = $value;
reg_link_data( $data_field_name );
$attendees = $sep = '';
$numb_attendees = 0;
$i = 0;
- while( isset( $GLOBALS['attendee_'.(++$i).'_1'] ) )
- if( trim($GLOBALS['attendee_'.$i.'_1']) != '' ) // Note that extra _1 is a result of the java function used for this, deal with it.
+ while( isset( $_REQUEST['attendee_'.(++$i).'_1'] ) )
+ if( trim($_REQUEST['attendee_'.$i.'_1']) != '' ) // Note that extra _1 is a result of the java function used for this, deal with it.
{
$attendee_found = TRUE;
- $attendees .= $sep.$GLOBALS['attendee_'.$i.'_1'];
+ $attendees .= $sep.$_REQUEST['attendee_'.$i.'_1'];
$sep = ', ';
$numb_attendees++;
}
if( !isset($registrant) || ($registrant = ($registrant-0)) == 0 )
{
// Need to create registrant record
- $user_trace_info = $REMOTE_ADDR." - ".date("m/d/Y H:i:s");
+ $user_trace_info = $_SERVER['REMOTE_ADDR']." - ".date("m/d/Y H:i:s");
$sql = "INSERT INTO reg_req
( user_trace_info, date_entered, status )
VALUES
// Pass along attendee data
$i = 0;
- while( isset( $GLOBALS['attendee_'.(++$i).'_1'] ) )
+ while( isset( $_REQUEST['attendee_'.(++$i).'_1'] ) )
if( $Action != 'Step2' )
reg_pass_data( 'attendee_'.$i.'_1' );
else
$v["navigation"] = $nav;
$v["form_data"] = $GLOBALS['form_data'];
$v["link_data"] = $link_data;
-$view_tags["reason"] = $reason;
+$view_tags["reason"] = $reason;
$v['have_reason'] = ( count($reason) > 0 ? 'YES' : 'NO' );
$v["problem"] = "";
$v["price_debug"] = "";
$v['rate_name'] = $rate_class_name;
$v['base_secure_url'] = BASE_SECURE_URL;
$v['base_url'] = SI_BASE_URL;
+$v['old_url'] = 'https://ws0.gaslightmedia.com/cslewis';
// Get bulletin and terms/conditions
case "Step4":
- $user_trace_info = $REMOTE_ADDR." - ".date("m/d/Y H:i:s");
+ $user_trace_info = $_SERVER['REMOTE_ADDR'] . " - ".date("m/d/Y H:i:s");
$v['state'] = $state;
$v['country'] = $country;
$r = authorize_net_aim( SI_AUTH_LOGIN, SI_AUTH_TRAN_KEY, SI_AUTH_TEST, SI_AUTH_SEND_CONF, SI_AUTH_MERCHANT_EMAIL,
$total_charges, $ccnum, "$ccmonth/$ccyear", $cccode, '',
$fname, $lname, $org, $addr1, $city, $state, $zip, $country,
- $phone, $fax, $reg_req_id, $REMOTE_ADDR, '',
+ $phone, $fax, $reg_req_id, $_SERVER['REMOTE_ADDR'], '',
$email,
$reg_req_id, 'Registration - '.$reg_data['name'], $conf_header, $conf_footer
);
// Send user back to form with error
- echo '
- <HTML>
- <HEAD>
- <META HTTP-EQUIV="Refresh" CONTENT="5;URL='.BASE_URL.'index.php?catid='.REGISTRATION_ID.'&Action=Step4&cc_reason='.urlencode($cc_reason).$link_data.'">
- </HEAD>
- <BODY>
- <H3>Processing.....</H3>
- If your browser does not forward to the next page in less than 10 seconds, click <A HREF="'.BASE_URL.'index.php?carid='.REGISTRATION_ID.'&Action=Step4&cc_reason='.urlencode($cc_reason).$link_data.'">HERE</A>;
- </BODY>
- </HTML>
- ';
+ // echo '
+ // <HTML>
+ // <HEAD>
+ // <META HTTP-EQUIV="Refresh" CONTENT="5;URL='.BASE_URL.'?Action=Step4&cc_reason='.urlencode($cc_reason).$link_data.'">
+ // </HEAD>
+ // <BODY>
+ // <H3>Processing.....</H3>
+ // If your browser does not forward to the next page in less than 10 seconds, click <A HREF="'.BASE_URL.'?Action=Step4&cc_reason='.urlencode($cc_reason).$link_data.'">HERE</A>;
+ // </BODY>
+ // </HTML>
+ // ';
exit;
}