$room = "sdkroom"; $devuser = "******"; $devpass = "******"; $secret = "sdkaccountsharedsecret"; $host = "http://connectnow.acrobat.com"; $accountURL = "{$host}/{$account}"; $roomURL = "{$accountURL}/{$room}"; session_start(); if (isset($_REQUEST["user"])) { $user = $_REQUEST["user"]; $role = (int) $_REQUEST["role"]; if (isset($_SESSION["XSESSION"])) { $session = $_SESSION["XSESSION"]; } else { $am = new RTCAccount($accountURL); $am->login($devuser, $devpass); $session = $am->getSession($room); $_SESSION["XSESSION"] = $session; } $token = $session->getAuthenticationToken($secret, $user, $user, $role); } else { $user = "******"; $role = 100; } function select($r) { global $role; return $role == $r ? "selected" : ""; } ?>
} header("Content-type: text/xml"); echo $lccs->getNodeConfiguration($roomname, $collectionname, $nodename); } else { if ($action == "gethookinfo") { $meetingurl = $_POST["meetingurl"]; $username = $_POST["username"]; $password = $_POST["password"]; if ($_SESSION['RTCAccount'] != null && $lccs == null) { //login to lccs only require once $lccs = unserialize($_SESSION['RTCAccount']); $lccs->keepalive(); } else { // Login once, do the handshake once for your account and then call multiple API $lccs = new RTCAccount($meetingurl); $lccs->login($username, $password); $_SESSION['RTCAccount'] = serialize($lccs); } header("Content-type: text/xml"); echo $lccs->getHookInfo(); } else { if ($action == "updateChatFilter") { echo "<h1> Update Chat Filter Success </h1> " . $_POST["chatfilter"]; $data = $_POST["chatfilter"]; $fh = FALSE; $filename = "chatfilter.txt"; $target = "../../upload/"; $target .= $filename; $fh = fopen($target, 'w+'); fseek($fh, 0, SEEK_SET); if (!feof($fh)) {
} } } array_shift($args); } if (count($args) < 3) { usage($progname); } $accountName = array_shift($args); $username = array_shift($args); $password = array_shift($args); $host = rtrim($host, '/'); $accountURL = "{$host}/{$accountName}"; try { $am = new RTCAccount($accountURL); $am->login($username, $password); if (count($args) == 0 || $args[0] == "--list") { echo "==== template list for {$accountName} ====\n"; foreach ($am->listTemplates() as $t) { echo "{$t->name}:{$t->created->format(DATE_RFC822)}\n"; } echo "==== room list for {$accountName} ====\n"; foreach ($am->listRooms() as $r) { echo "{$r->name}:{$r->desc}:{$r->created->format(DATE_RFC822)}\n"; } echo "==== archive list for {$accountName} ====\n"; foreach ($am->listArchives() as $a) { echo "{$a->name}:{$a->desc}:{$a->created->format(DATE_RFC822)}\n"; } } else { if ($args[0] == "--create") {