Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 425 Bytes
<?php
include_once('common.php');
$show = p("show");
$status = p("status");
if(empty($ticket) || empty($show)){
header("HTTP/1.0 400 Bad Request");
echo 'Empty post $ticket or $show';
}else{
require 'config.php';
$im = new WebIM($user, $ticket, $_IMC['domain'], $_IMC['apikey'], $_IMC['host'], $_IMC['port']);
$re = $im->presence($show, $status);
if($re != "ok"){
header("HTTP/1.0 404 Not Found");
}
echo $re;
}