PX : code

subprofile snippet for grabbing screenames by ken
Download this code


<?  //note: when linking from aim, example: e.php?$rn=%n&a=b   <- the code &a=b is important. it can be anything=anything, but the extra variable query is vital.

      if (isset($rn)) {
      $rn = $HTTP_GET_VARS["rn"];
      $evil_query = $QUERY_STRING . " " . $SERVER_PROTOCOL;
      $rn = ereg_replace(".*rn=", "", $evil_query);
      $rn = ereg_replace("&.*", "", $rn);
      $rn = str_replace("+"," ",$rn);
      $rn = str_replace("%20"," ",$rn);
    }

?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.