*SOLVED* Force AIM check via link?
Page 1 of 1
sTo0z
[Moderator] Babysitter



Posts: 7449
Location: USA
PostPosted: Fri, 21st Oct 2005 23:41    Post subject: *SOLVED* Force AIM check via link?
You guys know those lame PHP profile deals in AIM profiles right?

I've seen a few that check whether you're accessing the page via the web or via actually clicking the link from someone's profile.

Does anyone know how to enforce this check? I can't seem to find the site that does this at the moment but if I do I'll slap it down here so you can see what I'm talking about...

So... any ideas? Question


EDIT: Guess I'm making some progress, I can get the user agent to return: AIM/30 (Mozilla 1.24b; Windows; I; 32-bit)

Razz

EDIT 2:

Code:
<?php

   $check = $_SERVER['HTTP_USER_AGENT'];

   echo 'Should give you something here: ';
   echo '<br>';
   print $check;

   echo '<br>';
   $aimchars = 'AIM';
   $pos = strpos( $check, $aimchars );

   if( $pos === false )
   {
      echo "You are not using AIM.";
   }
   else
   {
      echo "You are using AIM.";
   }

?>


w00t. Razz


Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group