/***********************************************************************
*                                                                      *
*                                                                      *
*                                                                      *
*                          PHP MESSENGER 1.0                           *
*                                                                      *
*               PHP     !                *
*                                                                      *
*                                                                      *
*                                                                      *
*                PHP MESSENGER  /             *
*                                                             *
*                                "ICQ",                                *
*                      "AOL Instatnt Messenger",                       *
*                     "Windows Instant Messenger",                     *
*                                                                      *
*                     SMS  ICQ !!!         *
*                                                                      *
*                                                                      *
*                                                                      *
*               PHP MESSENGER  shareware,            *
*                 30  !       *
*                                                                      *
*                                                                      *
* 	       	 PHP MESSENGER  !                *
* 	       	http://www.php-messenger.com/ru/register.php           *
*                                                                      *
*                                                                      *
* 	       	   :     *
* 	       	http://www.php-messenger.com/ru/support.php            *
*                                                                      *
*                                                                      *
* 	       	     1.xx                 *
* 	       	http://www.php-messenger.com/ru/upgrade.php            *
*                                                                      *
*                                                                      *
*                                                                      *
*                                                                      *
*                                                                      *
*               :                                            *
*                                                                      *
*               1) '--enable-sockets'                                  *
*                                                                      *
*               2)  "Windows Instant Messenger"                     *
*                  '--with-openssl'  '--with-iconv'                   *
*                                                                      *
*               3)  SMS   , ,         *
*                  '--with-iconv'.                                     *
*                                                                      *
*                    "PHP conv"                            *
*                  http://www.php-messenger.com/files/php_conv.zip     *
*                    iconv.                                   *
*                                                                      *
*                                                                      *
*                                                                      *
*           Copyright(c) 2004 http://www.php-messenger.com             *
*                                                                      *
***********************************************************************/



require "php_messenger.php" -  PHP Messenger


$pm=new PM_ICQ() -  ICQ 


$pm->Login($UIN,$password) -    ICQ 

	$UIN      -  ICQ
	$password - 
	
	      TRUE    FALSE
	


$pm->Send_Message($UIN,$message_text) -  

	$UIN          - UIN 
	$message_text -  
	


$pm->Send_Message_Confirm($UIN,$message_text) -  ,   Send_Message

	      TRUE    FALSE,
	   Send_Message



$incoming_message=$pm->Read_Message($wait_time) -   	
	
	$wait_time -     ,     (1.5= )
	              $wait_time==-1,      .
	             
	  ,       :

		$incoming_message['UIN'] - UIN 
		$incoming_message['message_text'] -  
		$incoming_message['online'] - /  (TRUE/FALSE)

		    :
		
		$incoming_message['year'] -   
		$incoming_message['month'] -   
		$incoming_message['day'] -   
		$incoming_message['hour'] -   
		$incoming_message['minutes'] -   
	
	   ,    FALSE	
		
		
$pm->Send_SMS($phone,$message_text) -  SMS 

	$phone -   ( +79289452700)
	$message_text -     UTF-8
                            iconv
                         iconv("CP1251","UTF-8","!\r\n  - php messenger!"),
                          '--with-iconv'   
			 http://www.php-messenger.com/files/php_conv.zip,
			 iconv.		
		
		
	    SMS   TRUE    FALSE,
		
		
		
$user_info=$pm->Get_User_Info($UIN) -     ICQ
		
        $UIN - UIN 

	  ,       :
	
	$user_info['nickname']   - 
	$user_info['first name'] - 
	$user_info['last name']  - 
	$user_info['email']      - E-mail
		
		
		
$users=$pm->Find_By_Email($email) -  ICQ   


	  ,        :

	$users[$i]['UIN']        - UIN
	$users[$i]['nickname']   - 
	$users[$i]['first name'] - 
	$users[$i]['last name']  - 
	$users[$i]['email']      - E-mail
	$users[$i]['auth']       - -       -
	$users[$i]['status']     -  
	
	
$pm->Off_Line() -    ICQ	

		