« Animación vs. Animador | Home | Registra tu dominio por US$ 0.00! »

Por UrbaN77 | 23 Julio, 2008

MezzengerKlient: una clase en PHP programada por Sirdarckcat, la forma de usar esta clase es muy sencilla solo tienes que llamar a la clase con un include y usar alguna que otra función que vayas a necesitar.

Puedes descargarla aqui

Example sessions

This function will simply login to the .NET Passport account.. and show the response of the server.

<?php
include(”mzk.php”);
$t = new MezzengerKlient;
$t->debug=true;
$t->init(”mail@mail.com“,”password”);
$t->login();
$t->main();
$t->quit();
?>

This function will say “Hello” to all contacts online.

<?php
include(”mzk.php”);
$t = new MezzengerKlient;
$t->debug=true;
$t->onLogin=”spam”;
$t->init(”mail@mail.com“,”password”);
$t->login();
$t->main();
$t->quit();

function spam(){
global $t;
for ($i=0;isset($t->onlinefriends[$i]);$i++){
$cont=@split(’ ‘,$t->onlinefriends[$i]);
$t->MessageToNew($cont[0],”Hello”);
}
}
?>

This function will change the bot’s nick to “I am a bot” when logged in.

<?php
include(”mzk.php”);
$t = new MezzengerKlient;
$t->debug=true;
$t->onLogin=”change_nick”;
$t->init(”mail@mail.com“,”password”);
$t->login();
$t->main();
$t->quit();

function change_nick(){
global $t;
$t->setNick(’I am a bot’);
}
?>

Más información aquí

Etiquetas: Noticias |

3 Comentarios en “Messenger usando PHP”

  1. poemas comento:
    Julio 23rd, 2008 at 22:48

    Que interesante, voy a intentarlo a ver si me funciona ya que es muy practico contactar nuestras amistades por medio de el navegador sin tener que bajar nada.

  2. купить картину comento:
    Agosto 25th, 2008 at 12:32

    Конкретно и понятно.

  3. avim comento:
    Noviembre 13th, 2008 at 20:30

    cool, clasno pishesh, prodolzhay v tom zhe duhe

Comentarios

Si te parecio interesante este post, dejanos un comentario

XHTML: Puedes utilizar las siguientes etiquetas: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>