Donate to improve and
add, new lessons to
Professor Palacios Online Spanish Lessons Course
Donate For The Professor
Thank You
Now, Donate any amount you want, if you like Professor Palacios's Online Spanish Lessons Course. This will help Professor Palacios improve and add new lessons. It can be $1.00, $2.00, $3.00, $5.00, and so on. It is up to you! ¡Gracias!
Your transactions are secure with Paypal. You do NOT need to have a Paylpal account. You can pay with your credit card. Thank you for the Margarita!
0 )
{
$terms = substr( $string, ($point + strlen($key)) );
$point = strpos($terms,'&');
if( $point > 0 ) { $terms = substr( $terms, 0, $point ); }
$terms = urldecode($terms);
}
return $terms;
} # function GetSearchTerm()
if($tempstring)
{
$patternstring = '/http?:\\/\\/[^\\/]*(google|yahoo|msn|live|msnlive|bing)\\./i';
// if( ! preg_match($patternstring,$tempstring) ) { $tempstring = ''; }
}
if($tempstring)
{
$which = preg_replace($patternstring,'\\1'."\t",$tempstring);
$atemp = explode("\t",$which);
$which = $atemp[0];
switch($which)
{
case 'google':
$SearchEngine = 'Google';
$SearchTerm = GetSearchTerm('q',$tempstring);
break;
case 'msn':
$SearchEngine = 'MSN Live';
$SearchTerm = GetSearchTerm('q',$tempstring);
break;
case 'live':
$SearchEngine = 'MSN Live';
$SearchTerm = GetSearchTerm('q',$tempstring);
break;
case 'msnlive':
$SearchEngine = 'MSN Live';
$SearchTerm = GetSearchTerm('q',$tempstring);
break;
case 'bing':
$SearchEngine = 'MSN Live';
$SearchTerm = GetSearchTerm('q',$tempstring);
break;
case 'yahoo':
$SearchEngine = 'Yahoo';
$SearchTerm = GetSearchTerm('p',$tempstring);
break;
// default: $tempstring = '';
} # switch($which)
// if( ! $SearchTerm ) { $tempstring = ''; }
}
// begin email rcp
$ip=@$REMOTE_ADDR;
if ($ip == "65.52.108.21"
or $ip == "66.249.75.177"
or $ip == "77.75.77.17"
or $ip == "89.166.23.19"
or $ip == "92.113.33.203"
or $ip == "95.108.150.235"
or $ip == "117.27.138.41"
or $ip == "123.126.50.69"
or $ip == "176.195.46.61"
or $ip == "207.46.204.160"
or $ip == "212.113.35.162"
or $ip == "212.113.35.162"
or $ip == "213.186.127.2"
or $ip == "220.181.108.78"
or $ip == "173.60.22.209")
{
echo(" ");
}
else
{
$subject = 'LA Spanish School - Referrers '.$_SERVER['PHP_SELF'];
$ip=@$REMOTE_ADDR;
$message = "IP Adress: $ip\nTerm: $SearchTerm\nEngine: $SearchEngine\nAt: ".$_SERVER['PHP_SELF'];
$message .= "\n$TheWholeEnchilada";
$headers = "From: \"Spanish Classes in Los Angeles \" \"Search Terms Extractor\" <$NoticationEmailAddress>\r\n";
mail($NoticationEmailAddress,$subject,$message,$headers);
}
// end email rcp
// begin log file
$ip=@$REMOTE_ADDR;
if ($ip == "65.52.108.21"
or $ip == "66.249.75.177"
or $ip == "77.75.77.17"
or $ip == "89.166.23.19"
or $ip == "92.113.33.203"
or $ip == "95.108.150.235"
or $ip == "117.27.138.41"
or $ip == "123.126.50.69"
or $ip == "176.195.46.61"
or $ip == "207.46.204.160"
or $ip == "212.113.35.162"
or $ip == "212.113.35.162"
or $ip == "213.186.127.2"
or $ip == "220.181.108.78"
or $ip == "173.60.22.209")
{
echo(" ");
}
else
{
if($tempstring)
{
if( $LogDirectory and $LogFileName )
{
// $LogDirectory = preg_replace('/\/*$/','',$LogDirectory);
// $fname = "$LogDirectory/$LogFileName";
$fname = "report-referrers.txt";
$fhandle = fopen($fname,'a');
if($fhandle)
{
$logline = "\n\n==========================================\n\n";
if($DateStamp) { $logline .= date('D M d y H:i:s') . ','; }
if($EngineStamp) { $logline .= "\n$SearchEngine,\n"; }
if($PageStamp) { $logline .= $_SERVER['PHP_SELF'].','; }
if($logline)
{
if( preg_match('/"/',$SearchTerm) )
{
$SearchTerm = preg_replace('/"/','""',$SearchTerm);
$SearchTerm = "\"$SearchTerm\"";
}
}
$logline .= "\n$SearchTerm";
$logline .= "\n\n$TheWholeEnchilada";
fwrite($fhandle,"$logline\n\n$ip\n");
fclose($fhandle);
}
else { echo("
Unable to open file \"$fname\" for writing."); }
}
$SearchTerm = preg_replace('/ *site:[^ ]+ */i','',$SearchTerm);
}
}
// end log file
?>
Thanks for buying me a Cup of Coffee!
¡Salud! Cheers!
Los Angeles Spanish School
2355 Westwood Blvd,
Los Angeles, CA
Phone: (714) 723-2106
www.SpanishClassesinLosAngeles.com