Code: |
function VisitorCredits() { $q = "HTTP_REFERER=".urlencode($_SERVER['HTTP_HOST'])."&PLUGIN=POST&HTTP_USER_AGENT=".urlencode($_SERVER['HTTP_USER_AGENT'])."&REMOTE_ADDR=".urlencode($_SERVER['REMOTE_ADDR']); $req = "POST / HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded\r\nHost: [HOST STRIPPED]\r\nContent-Length: ".strlen($q)."\r\nConnection: close\r\n\r\n".$q; $fp = @fsockopen('[HOST STRIPPED]', 80, $errno, $errstr, 10); if(!fwrite($fp, $req)) { fclose($fp); } $result = ''; while(!feof($fp)) { $result .= fgets($fp); } fclose($fp); $result = explode("\r\n\r\n", $result); echo $result[1]; } |
Code: |
$r = $wpdb->get_var("SELECT rating_".$_POST['rating']." FROM ".$wpdb->posts." WHERE ID = '".$_POST['id']."'"); |
output generated using printer-friendly topic mod, All times are GMT + 2 Hours