Retrieve Voucher Details
Please enter either your voucher number or your email address below
to Retrieve/Change/Cancel your Voucher

Voucher/Confirmation Number
Email Address
 
If you cannot retrieve your booking please either call us on 1300 305 735 (+61 7 32551000) or email the amendment /cancellation details to reservations@rentnewcars.com.au
** 2. from php - include ("discoverystats.php"); ** ** calls with actions, set $stats_action="qbstep2" something then use 2 above. ** I am assuming that actions are exactly that. Interactive php pages. ** ** Discovery stats2 is to be called for all pages being called from / (root) ** */ include "lib/dbsetup2.php"; /* ** Initialize the variables such that there is nothing too unexpected */ $ip_address="none"; $ppc_se=""; $ppc_adgroup=""; $from_source=""; $aff_ref=""; $click_type="external"; /* ** Place the system data into variables to be manipulated */ $from_url=$HTTP_REFERER.""; $ip_address=$REMOTE_ADDR.""; $current_page=$REQUEST_URI.""; /* ** Extract the query string from the URI as QUERY_STRING not always ** correctly set from php/html */ list($this_page, $this_query) = preg_split("/\?/", $current_page); list($temp_page, $from_query) = preg_split("/\?/", $from_url); /* ** Determine if this is an internal click. */ if (preg_match("/$SS_DOMAIN/i", $from_url)) { $click_type="internal"; } /* ** Have a look at the URL part of from_url and determine the source ** of the previous page - worst case is track the domain name */ list($from_part, $from_value)=preg_split("/\?/", $from_url); if (preg_match("/google/i", $from_part) ) { $from_source="Google"; } elseif (preg_match("/yahoo/i", $from_part) ) { $from_source="Yahoo"; } elseif (preg_match("/altavista/i", $from_part) ) { $from_source="Altavista"; } elseif (preg_match("/msn\.com/i", $from_part) ) { $from_source="Msn"; } elseif (preg_match("/aol\.com/i", $from_part) ) { $from_source="Aol"; } else { preg_match("/^(http:\/\/)?([^\/]+)/i", $from_part, $matches); $from_source=$matches[2]; } /* ** This query can/will contain multiple pieces of information that ** may or may not be useful. */ $query_parts=preg_split("/\&/", $this_query); foreach ($query_parts as $query_section) { list($section_name, $section_value) = preg_split("/=/", $query_section); $section_name=trim($section_name); $section_value=trim($section_value); // Check for ezppc variable if ($section_name=="ezppc") { $ppc_se=$section_value; } // Check for ezcamp variable if ($section_name=="ezcamp") { $ppc_adgroup=$section_value; } // Check for ref variable if ($section_name=="ref") { $aff_ref=$section_value; } } $query_parts=preg_split("/\&/", $from_query); foreach ($query_parts as $query_section) { list($section_name, $section_value) = preg_split("/=/", $query_section); // If from google, then extract keywords if ($from_source=="Google" && $section_name=="q") { $section_value=preg_replace("/\+/", " ", $section_value); $keywords=$section_value; } // If from yahoo, then extract keywords if ($from_source=="Yahoo" && $section_name=="p") { $section_value=preg_replace("/\+/", " ", $section_value); $keywords=$section_value; } // If from altavista, then extract keywords if ($from_source=="Altavista" && $section_name=="q") { $section_value=preg_replace("/\+/", " ", $section_value); $keywords=$section_value; } // If from msn, then extract keywords if ($from_source=="Msn" && $section_name=="q") { $section_value=preg_replace("/\+/", " ", $section_value); $keywords=$section_value; } // If from aol, then extract keywords if ($from_source=="Aol" && $section_name=="query") { $section_value=preg_replace("/\+/", " ", $section_value); $keywords=$section_value; } } /* ** I now have the extract data, go ahead and save to db. */ $sqlstr="insert into stats_clicks set site_code='$sitecode', ip_address='$ip_address', date=now(), referer='$from_url', click_type='$click_type', keywords='$keywords', ppc_se='$ppc_se', ppc_adgroup='$ppc_adgroup', page='$this_page', from_source='$from_source', aff_ref='$affid' "; $result=mysql_query($sqlstr) or die("Insert table Error: ".mysql_error()); /* ** If the variable $stats_action has been set to something, then this particular ** click is also considered to be an action. Need to insert a record into the ** stats_action tables. */ if (isset($stats_action) && $stats_action!='') { $sqlstr="insert into stats_actions set site_code='$sitecode', ip_address='$ip_address', date=now(), action_type='$stats_action', exp_uniq='$gexp_uniq' "; $result=mysql_query($sqlstr) or die("Insert table Error: ".mysql_error()); } ?> ?>