PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Keith Hall   AIM Status   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: An example of how to use the AIM Class
Class: AIM Status
Get the status of an AOL Instant Messenger user
Author: By
Last change: Added require/include statement to example file to include the aim_status.class.php in the example code.
Date: 17 years ago
Size: 1,117 bytes


Class file image Download

require_once("aim_status.php"); // replace with the path to the aim_status.class.php file

$IMstatus = new im();
$screenname = "your_screen_name_here"; # insert your screen name here
    # If you use iChat or a .Mac account, make sure you enter
    # the full screen name:

$aim_status == true) {
// everything here is customizable.
echo('<a href="aim:goim?screenname=$screenname" title="iChat/AIM with $screenname" class="header_bar"><img src="ichat_online.gif" alt="online" width="14" height="14" hspace="0" vspace="2" border="0" align="top" /> <span style="padding: 0px 3px 0px 3px; font-family:verdana; color:#093; text-shadow:1px 1px #000; font-size:9pt; margin-top:1px;"><b>online</b></span></a>');
    } else {
'<a href="javascript:alert(\'$screenname is currently offline.\');" title="Currently Offline" class="header_bar"><img src="ichat_offline.gif" alt="offline" width="14" height="14" hspace="0" vspace="2" border="0" align="top" /> <span style="color:#999; font-size:9pt;"><b>offline</b></span></a>');