Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2004-03-25, 11:56 AM   #1
Opti
I Didn't Do It
 
Opti's Avatar
 
Join Date: Aug 2003
Location: au
Posts: 795
Send a message via ICQ to Opti
Anyone Using Botspotter Script?

Is anyone using the Botspotter script?

it looks awesome but the PHP code they provide generates an error for me...

Parse error: parse error, unexpected T_VARIABLE in botspotter.php on line 3


... and some of the PHP syntax they use appears quite foriegn to me (as a novice at php coding)

Can anyone see an obvious error around line 3 in this lot?


PHP Code:
<?php// Script Date: 09 Jan 2004
// your botspotter login name
$bsName 'usercode';

// change nothing below this line
function getURI()  {
     global 
$HTTP_SERVER_VARS;
    
$url '/';
    if ( !empty(
$HTTP_SERVER_VARS['PHP_SELF'])) 
      
$url $HTTP_SERVER_VARS['PHP_SELF'];
    elseif ( isset ( 
$HTTP_SERVER_VARS['SCRIPT_URI']) && !empty($HTTP_SERVER_VARS['SCRIPT_URI'])) 
        
$url $HTTP_SERVER_VARS['SCRIPT_URI'];
    if ( isset( 
$HTTP_SERVER_VARS['QUERY_STRING'] ) && $HTTP_SERVER_VARS['QUERY_STRING'] != ""
      
$url .= '?'.$HTTP_SERVER_VARS['QUERY_STRING']; 

    return 
$url;
  }
//function getURI()
  
  
function getPageStatus()  {
    global 
$HTTP_SERVER_VARS$HTTP_ENV_VARS;
    if (isset(
$HTTP_ENV_VARS['REDIRECT_STATUS'])) return $HTTP_ENV_VARS['REDIRECT_STATUS'];
    else if (isset(
$HTTP_SERVER_VARS['REDIRECT_STATUS'])) return $HTTP_SERVER_VARS['REDIRECT_STATUS'];
    else return 
'200';
  }
//function getPageStatus()
$status getPageStatus();
$url 'http://www.pcpropertymanager.com/botspotter/accept.php'
        
'?server=' urlencode$HTTP_SERVER_VARS['SERVER_NAME'])
        . 
'&uri=' urlencodegetURI())
        . 
'&agent=' urlencode$HTTP_SERVER_VARS['HTTP_USER_AGENT'])
        . 
'&ip=' urlencode$HTTP_SERVER_VARS['REMOTE_ADDR'])
        . 
"&account={$bsName}"
        
'&status=' $status;

$fp = @fopen($url"r") or die ("\n<a href='http://www.pcpropertymanager.com/botspotter/home.php' target='_blank'>Botspotter</a> <a href='{$url}'>disabled</a>\n");
if (
$fp != false) {
  
fpassthru($fp);
  
fclose($fp);
}

$url 'http://www.pcpropertymanager.com/botspotter/accref.php'
        
'?server=' urlencode$HTTP_SERVER_VARS['SERVER_NAME'])
        . 
'&uri=' urlencodegetURI())
        . 
"&account={$bsName}"
        
'&ref=' urlencode($HTTP_SERVER_VARS['HTTP_REFERER']);
        
fclose(fopen($url'r'));
?>
Opti is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:55 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc