read_global () Google AdSense

Google AdSense Google AdSense . , - Google AdSense « » , , Apache.

: read_global () wap/index.php 88

Google AdSense , read_global . read_global () AdSense, . , .

read_global () Google AdSense , read_global () , . [«google»] $GLOBALS. :

read_global ($var) {
isset ($_SERVER [$var]); $_SERVER [$var]: ''
}

. , google_set_screen_res (), google_set_muid () google_set_via_and_accept ().

, , , .

,

google_set_screen_res () {
$screen_res = read_global («HTTP_UA_PIXELS»)
($screen_res == '') {
$screen_res = read_global («HTTP_X_UP_DEVCAP_SCREENPIXELS»)
}
($screen_res == '') {
$screen_res = read_global («HTTP_X_JPHONE_DISPLAY»)
}
$res_array = («[, *]», $screen_res)
(sizeof ($res_array) == 2) {
$GLOBALS [«google»] [«u_w»] = $res_array [0]
$GLOBALS [«google»] [«u_h»] = $res_array [1]
}
}
google_set_screen_res ()

google_set_muid () {
$muid = read_global («HTTP_X_DCMGUID»)
($muid! = '') {
$GLOBALS [«google»] [«muid»] = $muid
}
$muid = read_global («HTTP_X_UP_SUBNO»)
($muid! = '') {
$GLOBALS [«google»] [«muid»] = $muid
}
$muid = read_global («HTTP_X_JPHONE_UID»)
($muid! = '') {
$GLOBALS [«google»] [«muid»] = $muid
}
$muid = read_global («HTTP_X_EM_UID»)
($muid! = '') {
$GLOBALS [«google»] [«muid»] = $muid
}
}
google_set_muid ()

google_set_via_and_accept () {
$ua = read_global («HTTP_USER_AGENT»)
($ua == '') {
$GLOBALS [«google»] [«»] = read_global («HTTP_VIA»)
$GLOBALS [«google»] [«»] = read_global («HTTP_ACCEPT»)
}
}
google_set_via_and_accept ()

: « » . . .

: <a href= "" title= "" > <abbr title= "" > <acronym title= "" > <b> <blockquote cite= "" > <cite> <code> <del datetime= "" > <em> <i> <q cite= "" > <strike> <strong>

. , RSS .

«megaupload » - - google 104 - $GLOBALS [«google»] [«muid»] - megaupload -