0) { $_SESSION["sCampaign"] = $_GET["campaign"]; setcookie("gw_camp", $_GET["campaign"], time()+60*60*24*365, "/", ".legacy.gillware.com"); require('database.inc'); $dbconn = dbconn(); $agent = $_SERVER['HTTP_USER_AGENT']; if( strlen( $agent ) >= 254 ) { $agent = substr( $agent, 0 , 250 ); } $gwVisitorReferer = $_SERVER['HTTP_REFERER']; if( strlen( $gwVisitorReferer ) >= 254 ) { $gwVisitorReferer = substr( $gwVisitorReferer, 0 , 250 ); } $campaign = $_SESSION["sCampaign"]; if( strlen( $campaign ) >= 254 ) { $campaign = substr( $campaign, 0 , 250 ); } $ipAddr = $_SERVER['REMOTE_ADDR']; if (isset($_GET["kw"]) && strlen($_GET["kw"]) > 0) { $keyword = $_GET["kw"]; } $insert = "INSERT INTO gillware_web.campaign_hit (ip, dts, campaign, keyword, os_agent, referer) " . "VALUES " . "(" . "'$ipAddr'," . "now()," . "'$campaign'," . "'$keyword'," . "'$agent'," . "'$gwVisitorReferer'" . ")"; $result = mysql_query($insert, $dbconn); // Closing connection mysql_close($dbconn); } else if (isset($_COOKIE["gw_camp"])) { $_SESSION["sCampaign"] = $_COOKIE["gw_camp"]; } if (isset($_GET["referralLinkID"]) && strlen($_GET["referralLinkID"]) > 0) { $_SESSION["sReferralLinkID"] = $_GET["referralLinkID"]; setcookie("gw_refLinkID", $_GET["referralLinkID"], time()+60*60*24*365, "/", ".legacy.gillware.com"); } else if (isset($_COOKIE["gw_refLinkID"])) { $_SESSION["sReferralLinkID"] = $_COOKIE["gw_refLinkID"]; } //end new code //If someone comes to gillware to fill out the customer survey, put the customer id in the session if (isset($_GET["Customer"]) && strlen($_GET["Customer"]) > 0) { $_SESSION["sCustomerID"] = $_GET["Customer"]; } //If someone comes to gillware as a preferred customer, set the affiliate code //to be the preferred customer number and the affiliate status to Preferred Cust if (isset($_GET["Preferred"]) && strlen($_GET["Preferred"]) > 0) { $_SESSION["sAffiliateStatus"] = "Preferred Cust"; $_SESSION["sPreferredCustomerCode"] = $_GET["Preferred"]; $_SESSION["sAffiliateCode"] = $_GET["Preferred"]; } //If someone comes to gillware from an affiliates website with the //affiliate parameter set to the affiliate number, put the affiliate number //in the session if (isset($_GET["affiliate"]) && strlen($_GET["affiliate"]) > 0) { $_SESSION["sAffiliateStatus"] = "Referred"; $_SESSION["sAffiliateCode"] = $_GET["affiliate"]; } //If someone comes to gillware from an affiliates website with the //affiliate parameter set to the affiliate number, put the affiliate number //in the session if (isset($_GET["Affiliate"]) && strlen($_GET["Affiliate"]) > 0) { $_SESSION["sAffiliateStatus"] = "Referred"; $_SESSION["sAffiliateCode"] = $_GET["Affiliate"]; } /* old code if($HTTP_GET_VARS["campaign"] != null){ $_SESSION["sCampaign"] = $HTTP_GET_VARS["campaign"]; // setcookie("gw_camp", $HTTP_GET_VARS["campaign"]); } if($HTTP_GET_VARS["referralLinkID"] != null){ $_SESSION["sReferralLinkID"] = $HTTP_GET_VARS["referralLinkID"]; // setcookie("gw_camp", $HTTP_GET_VARS["campaign"]); } */ function setArrayToSession($ar){ foreach ($ar as $key => $value) { //local //$v1 = str_replace("\\\"",""",$value); //$v2 = str_replace("\'","'",$v1); //$v3 = str_replace("\\\\","\",$v2); // $brcount = substr_count($v3, "
"); //if ($brcount > 0) { //$_SESSION[$key] = $v3; //} //else { //$v4 = nl2br($v3); //$_SESSION[$key] = $v4; //} //webserver $v1 = str_replace("\"",""",$value); $v2 = str_replace("'","'",$v1); $v3 = str_replace("\\","\",$v2); $brcount = substr_count($v3, "
"); if ($brcount > 0) { $_SESSION[$key] = $v3; } else { $v4 = nl2br($v3); $_SESSION[$key] = $v4; } }// end of foreach } function getSessionValue($name){ if(isset($_SESSION[$name]) && $_SESSION[$name] != null) { return $_SESSION[$name]; } else { return ""; } } function isSessionValue($name){ return $_SESSION[$name] != null; } function arrayToHTML($ar){ foreach ($ar as $key => $value) { }// end of foreach } setArrayToSession($_POST); ?> RecoverBot from Gillware Data Recovery
Home
 

What is RecoverBot?

RecoverBot gets your files back after they've been deleted or your computer stops working. Want to learn more? Watch the video

What do you need help with?