
02-05-2009, 06:56 PM
|
 |
|
|
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by mad@Max
What it is:
PHP Code:
// yay, we're on. THANK YOU for keeping this feature enabled
// build the url to call up for tracking
$tracksitename = strip_tags($_SERVER['SERVER_NAME']);
$trackurl = "http://www.moderninsider.com/helpfulratings.php?do=rate&site=". $tracksitename ."&helpful=". $helpful;
$curlHandle = curl_init();
curl_setopt($curlHandle, CURLOPT_URL, $trackurl);
curl_setopt($curlHandle, CURLOPT_HEADER, 0); // this is annon. no headers should be sent
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 5); // wait 5 seconds for response
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1); // dont show the page
curl_setopt($curlHandle, CURLOPT_FAILONERROR, 1); // dont show errors
curl_setopt($curlHandle, CURLOPT_MUTE, 1); // dont show output
$content = curl_exec($curlHandle); // make the connection
curl_close($curlHandle); // close it all down
This is enabled by default.
|
if you enabled this option to yes that your site rated his site to helpfully
I don't know the main reason why and for what it is?
|