';
if ($rpc_result)
{
$rpc_data['__mode'] = @$_REQUEST['mode'];
$HTTP_SESSION_VARS['contactus'] = $rpc_data;
if (isset($HTTP_COOKIE_VARS['contactus']))
header('Location: '.$HTTP_SERVER_VARS['PHP_SELF']);
else
header('Location: '.$HTTP_SERVER_VARS['PHP_SELF'].'?'.ini_get('session.name').'='.session_id());
die;
}
// save the key ID
if (isset($_REQUEST['__key_id']))
$rpc_key_id = $_REQUEST['__key_id'];
}
else
{
setcookie('contactus', '1');
// this is step 1
$rpc_step = 1;
// if we were provided with a __key_id parameter,
// the we need to route this too through the RPC
if (isset($_REQUEST['__key_id']))
{
$rpc_run = true;
// the parameters
$rpc_data[] = $rpc_step;
$rpc_data[] = @$_REQUEST['__key_id'];
rpc_route('aff_contactus', $rpc_data, $rpc_errors, $rpc_result);
foreach ($rpc_errors as $key=>$error)
$rpc_errors[$key] = '
'.$error.'
';
}
// save the key ID
if (isset($_REQUEST['__key_id']))
$rpc_key_id = $_REQUEST['__key_id'];
}
$msg='';
if (!$rpc_result && count($rpc_errors)>0)
$msg="".$lang['loc_try_again']."";
if ($msg!='')
$msg_code="
$msg
";
else
$msg_code='';
if (@file_exists('images/submit_button'.$lc_file.'.gif'))
@$submit_code=' ';
else
$submit_code=' ';
if (($rpc_step == 0) && $rpc_result)
{
if ($rpc_data['__mode'] != 'add')
echo(" ".str_replace("@@@TICKET_ID@@@","$rpc_data[ticket_id]",$lang['loc_ticket_updated'])."