Example #1
1
<?php

/* For licensing terms, see /license.txt */
/**
 * Initialization install
 * @author Imanol Losada Oriol <*****@*****.**>
 * @package chamilo.plugin.skype
 */
require_once __DIR__ . '/config.php';
Skype::create()->install();
Example #2
0
<?php

/* For licensing terms, see /license.txt */
/**
 * Initialization uninstall
 * @author Imanol Losada Oriol <*****@*****.**>
 * @package chamilo.plugin.skype
 */
require_once __DIR__ . '/config.php';
Skype::create()->uninstall();
Example #3
0
<?php

/*
   _____ _                     _____  _    _ _____  
  / ____| |                   |  __ \| |  | |  __ \ 
 | (___ | | ___   _ _ __   ___| |__) | |__| | |__) |
  \___ \| |/ / | | | '_ \ / _ \  ___/|  __  |  ___/ 
  ____) |   <| |_| | |_) |  __/ |    | |  | | |     
 |_____/|_|\_\\__, | .__/ \___|_|    |_|  |_|_|     
               __/ | |                              
              |___/|_|      
			  
Version: 1.2.1 by Kibioctet (admin@n-mail.fr)
GitHub : https://github.com/Kibioctet/SkypePHP
*/
header("Content-Type: text/plain");
set_time_limit(300);
require "skype.class.php";
$username = "******";
$password = "******";
$skype = new Skype($username, $password);
$skype->sendMessage("echo123", "Hello!");
Example #4
0
<?php

/* For licensing terms, see /license.txt */
/**
 * Get the plugin info
 * @author Imanol Losada Oriol <*****@*****.**>
 * @package chamilo.plugin.skype
 */
require_once __DIR__ . '/config.php';
$plugin_info = Skype::create()->get_info();
Example #5
0
#!/usr/local/bin/php
<?php 
include "Skype.php";
include "Bot.php";
$dbus = new Dbus(Dbus::BUS_SESSION, true);
$proxy = $dbus->createProxy('com.Skype.API', '/com/Skype', 'com.Skype.API');
//Connect to skype
$proxy->Invoke("NAME PHP");
$proxy->Invoke('PROTOCOL 8');
Skype::$bot = new Bot($proxy);
$dbus->registerObject('/com/Skype/Client', 'com.Skype.API.Client', 'Skype');
// Register message listener
while (1) {
    $votes = Skype::$bot->getVotes();
    if (isset($votes)) {
        foreach ($votes as $chat => $vot) {
            if ($vot['time'] < time() - 10 * 60) {
                echo "Clear: " . $chat, "\n";
                Skype::$bot->clearVoting($chat);
            }
        }
    }
    $s = $dbus->waitLoop(1);
}