Browse Source
- Adding a patch to jaxl to handle incoming unknown request (iq)
- Adding a patch to jaxl to handle incoming unknown request (iq)
- Implement Vcard handling - Remove old file TODO : -Fix XML/JS errorpull/5/head
7 changed files with 57 additions and 72 deletions
-
8lib/EventHandler.php
-
1lib/Jaxl/xep/jaxl.0054.php
-
1lib/Jaxl/xmpp/xmpp.get.php
-
43lib/XMPPConnect.php
-
55lib/widgets/Chat.php
-
20lib/widgets/Friends/Friends.php
-
1themes/movim/page.tpl
@ -1,55 +0,0 @@ |
|||||
<?php |
|
||||
|
|
||||
/** |
|
||||
* @file Chat.php |
|
||||
* This file is part of MOVIM. |
|
||||
* |
|
||||
* @brief A jabber chat widget. |
|
||||
* |
|
||||
* @author Guillaume Pasquet <etenil@etenilsrealm.nl> |
|
||||
* |
|
||||
* @version 1.0 |
|
||||
* @date 20 October 2010 |
|
||||
* |
|
||||
* Copyright (C)2010 MOVIM project |
|
||||
* |
|
||||
* See COPYING for licensing information. |
|
||||
*/ |
|
||||
|
|
||||
class Chat extends Widget |
|
||||
{ |
|
||||
function WidgetLoad() |
|
||||
{ |
|
||||
$this->registerEvent('incomechat', 'onIncomingChat'); |
|
||||
$this->registerEvent('incomepresence', 'onIncomingPresence'); |
|
||||
} |
|
||||
|
|
||||
function onIncomingChat($event) |
|
||||
{ |
|
||||
echo "onIncomingChat was called. Message: $event"; |
|
||||
} |
|
||||
|
|
||||
function onIncomingPresence($event) |
|
||||
{ |
|
||||
echo "onIncomingPresence was called. Message: $event"; |
|
||||
} |
|
||||
|
|
||||
function build() |
|
||||
{ |
|
||||
?>
|
|
||||
<div id="chat"> |
|
||||
<div id="chatMessages"> |
|
||||
<p>Tagada: blah blah blah</p> |
|
||||
<p>Pouet: Gna gna gna!</p> |
|
||||
</div> |
|
||||
<input type="text" id="chatInput" /> |
|
||||
<input type="button" id="chatSend" value="<?php echo t('Send');?>"/> |
|
||||
|
|
||||
<input type="button" onclick="<?php $this->callAjax('ajaxStuff', 'APPEND', "'testzone'", '3');?>" value="Message" /> |
|
||||
</div> |
|
||||
<?php |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
|
|
||||
?>
|
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue