Location: PHPKode > scripts > Gmail Invite Sig > gmail-invite-sig/sig.php
*  Gmail Invite Sig 0.1 - October 21st, 2004
* SOURCE: http://www.semi-conscious.com/?id=downloads
*    Invite Sig for the GMail service
* based off Gan YingHung's source at: 
* http://gmail-lite.sourceforge.net/
* Disclaimer and legalese: Please note that the following are applicable
* This piece of software was written in the author's spare time as a proof of 
* concept. No warranty, either expressed or implied is made for
* performance, merchantability or fitness for a particular purpose. The author 
* specifically does not take any responsibility for any or all consequences 
* arising from the use (improper or otherwise) including but not confined to 
* server meltdown, loss or suspension of Gmail account, 
* compromised email passwords and/or World War 3. Use this script at your own 
* risk.
* If you can't read and understand all the code contained within, DO NOT RUN 
* Please also note that automated scraping is against the Gmail TOS. If you run * this script regularly and are noticed, you will likely be banned. 
* Set your feedreader to check no sooner than once every 5 minutes or so (that's * a recommendation only).
* IMPORTANT: Please note that protecting this script on your web server is 
* essential. (else anyone can point a browser to the URL and find out your mail 
* information).
* Feel free to modify this script as you wish. 
* A lot of credit to Gan YingHung I basically had very little left to do once he wrote libgmail. 
* Note: libgmail 0.6.6 is bundled with this application, and may be governed by terms and conditions
* which differ from Gmail Invite Sig
* Submit bugs or submit suggestions / bugs to me via email; and thanks to everyone who
* wrote in.
* If you do make any changes, letting me know is appreciated, but not required. 
* Gmail is a beta and the code is still liable to change. Don't expect anything * to keep on working indefinitely. It probably won't.
* Paul Shapiro (my email is hide@address.com)
   $username = 'username'; //your gmail username
   $pwd = 'password'; //your gmail password
   $tz = 1; //time zone info. example: 1 = +1
   $gm = new GMailer();
   $gm->setLoginInfo($username, $pwd, $tz);    
header("Content-type: image/png");
header("Content-Disposition: inline; filename=gmail_invites.png"); 
$img = ImageCreate(200,19);

if ($gm->connect()) {
      $gm->fetchBox(GM_STANDARD, "inbox", 0);
      $snapshot = $gm->getSnapshot(GM_STANDARD);

$red = ImageColorAllocate($img, 255, 255, 255); 
$white = ImageColorAllocate($img, 0, 0, 0);

ImageString($img, 3, 3, 3, $snapshot->have_invit." remaining invites!", $white); 




Return current item: Gmail Invite Sig