} else { $inputSocket = fopen('php://input', 'rb'); $jpg = stream_get_contents($inputSocket); fclose($inputSocket); fwrite($file, $jpg); fclose($file); } if (file_exists(dirname(dirname(dirname(__FILE__))) . "/plugins/handwrite/uploads/" . $randomImage . ".jpg")) { $linkToImage = BASE_URL . "plugins/handwrite/uploads/" . $randomImage . ".jpg"; $text = '<a href="' . $linkToImage . '" target="_blank" style="display:inline-block;margin-bottom:3px;margin-top:3px;"><img src="' . $linkToImage . '" border="0" style="padding:0px;display: inline-block;border:1px solid #666;" height="90" width="134"></a>'; if (substr($_REQUEST['tid'], 0, 1) == 'c') { $_REQUEST['tid'] = substr($_REQUEST['tid'], 1); sendChatroomMessage($_REQUEST['tid'], $handwrite_language[3] . "<br/>{$text}"); } else { sendMessageTo($_REQUEST['tid'], $handwrite_language[1] . "<br/>{$text}"); sendSelfMessage($_REQUEST['tid'], $handwrite_language[2] . "<br/>{$text}"); if (isset($_REQUEST['sendername']) && $pushNotifications == 1) { pushMobileNotification($handwrite_language[2], $_REQUEST['sendername'], $_REQUEST['tid'], $_REQUEST['tid']); } } } $embed = ''; $embedcss = ''; $close = "setTimeout('window.close()',2000);"; if (!empty($_REQUEST['embed']) && $_REQUEST['embed'] == 'web') { $embed = 'web'; $embedcss = 'embed'; $close = "parent.closeCCPopup('handwrite');"; } if (!empty($_REQUEST['embed']) && $_REQUEST['embed'] == 'desktop') { $embed = 'desktop';
$baseData = $_REQUEST['basedata']; $embed = ''; $embedcss = ''; $close = "setTimeout('window.close()',2000);"; if (!empty($_GET['embed']) && $_GET['embed'] == 'web') { $embed = 'web'; $embedcss = 'embed'; $close = "parent.closeCCPopup('games_init');"; } if (!empty($_GET['embed']) && $_GET['embed'] == 'desktop') { $embed = 'desktop'; $embedcss = 'embed'; $close = "parentSandboxBridge.closeCCPopup('games_init');"; } sendMessageTo(intval($_GET['toId']), $games_language[3] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccgames.accept('" . $userid . "','" . $random_from . "','" . $random_to . "','" . $random_order . "','" . intval($_GET['gameId']) . "','" . intval($_GET['gameWidth']) . "');\">" . $games_language[4] . "</a>" . $games_language[5]); sendSelfMessage(intval($_GET['toId']), $games_language[6]); echo <<<EOD <!DOCTYPE html> <html> <head> <title>{$games_language[7]} (closing)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link type="text/css" rel="stylesheet" media="all" href="../../css.php?type=plugin&name=games" /> </head> <body onload="{$close}"> <div class="container"> <div class="container_title {$embedcss}">{$games_language[8]}</div> <div class="container_body {$embedcss}">
$baseData = $_REQUEST['basedata']; $embed = ''; $embedcss = ''; $close = "setTimeout('window.close()',2000);"; if (!empty($_GET['embed']) && $_GET['embed'] == 'web') { $embed = 'web'; $embedcss = 'embed'; $close = "parent.closeCCPopup('games_init');"; } if (!empty($_GET['embed']) && $_GET['embed'] == 'desktop') { $embed = 'desktop'; $embedcss = 'embed'; $close = "parentSandboxBridge.closeCCPopup('games_init');"; } sendMessageTo($_GET['toId'], $games_language[3] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccgames.accept('" . $userid . "','" . $random_from . "','" . $random_to . "','" . $random_order . "','" . $_GET['gameId'] . "','" . $_GET['gameWidth'] . "');\">" . $games_language[4] . "</a>" . $games_language[5]); sendSelfMessage($_GET['toId'], $games_language[6]); echo <<<EOD <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>{$games_language[7]} (closing)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link type="text/css" rel="stylesheet" media="all" href="../../css.php?type=plugin&name=games" /> </head> <body onload="{$close}"> <div class="container"> <div class="container_title {$embedcss}">{$games_language[8]}</div> <div class="container_body {$embedcss}">
if (!(!isset($_FILES['Filedata']) || !is_uploaded_file($_FILES['Filedata']['tmp_name']))) { if (!move_uploaded_file($_FILES['Filedata']['tmp_name'], dirname(__FILE__) . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . $md5filename)) { $message = 'An error has occurred. Please contact administrator. Closing Window.'; $mediauploaded = 0; } } if (empty($message)) { if (!empty($_POST['chatroommode'])) { sendChatroomMessage($_POST['to'], $filetransfer_language[9] . " (" . $_FILES['Filedata']['name'] . "). <a href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $_FILES['Filedata']['name'] . "\" target=\"_blank\">" . $filetransfer_language[6] . "</a>"); } else { if (isset($_REQUEST['callbackfn']) && $_REQUEST['callbackfn'] == 'mobileapp') { sendMessageTo($_POST['to'], $filetransfer_language[5] . " (" . $_POST['name'] . "). <a href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $_POST['name'] . "\" target=\"_blank\" imageheight=\"" . $_POST['imageheight'] . "\" imagewidth=\"" . $_POST['imagewidth'] . "\">" . $filetransfer_language[6] . "</a>"); sendSelfMessage($_POST['to'], "<a href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $_POST['name'] . "\" target=\"_blank\" imageheight=\"" . $_POST['imageheight'] . "\" imagewidth=\"" . $_POST['imagewidth'] . "\">" . $filetransfer_language[6] . "</a>"); } else { sendMessageTo($_POST['to'], $filetransfer_language[5] . " (" . $_FILES['Filedata']['name'] . "). <a href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $_FILES['Filedata']['name'] . "\" target=\"_blank\">" . $filetransfer_language[6] . "</a>"); sendSelfMessage($_POST['to'], $filetransfer_language[7] . " (" . $_FILES['Filedata']['name'] . ")."); } } $message = $filetransfer_language[8]; } $embed = ''; $embedcss = ''; $close = "setTimeout('window.close()',2000);"; if (!empty($_GET['embed']) && $_GET['embed'] == 'web') { $embed = 'web'; $embedcss = 'embed'; $close = "parent.closeCCPopup('filetransfer');"; } elseif (!empty($_GET['embed']) && $_GET['embed'] == 'desktop') { $embed = 'desktop'; $embedcss = 'embed'; $close = "parentSandboxBridge.closeCCPopup('filetransfer');";
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "plugins.php"; include dirname(__FILE__) . DIRECTORY_SEPARATOR . "config.php"; include dirname(__FILE__) . DIRECTORY_SEPARATOR . "lang" . DIRECTORY_SEPARATOR . "en.php"; if (file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lang" . DIRECTORY_SEPARATOR . $lang . ".php")) { include dirname(__FILE__) . DIRECTORY_SEPARATOR . "lang" . DIRECTORY_SEPARATOR . $lang . ".php"; } if ($p_ < 3) { exit; } if ($_GET['action'] == 'request') { sendMessageTo($_REQUEST['to'], $whiteboard_language[2] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccwhiteboard.accept('" . $userid . "','" . $_REQUEST['id'] . "');\">" . $whiteboard_language[3] . "</a> " . $whiteboard_language[4]); sendSelfMessage($_REQUEST['to'], $whiteboard_language[5]); if (!empty($_GET['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_GET['callback'] . '()'; } } if ($_GET['action'] == 'accept') { sendMessageTo($_REQUEST['to'], $whiteboard_language[6]); if (!empty($_GET['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_GET['callback'] . '()'; } } if ($_GET['action'] == 'whiteboard') { $id = $_GET['id']; $type = 'whiteboard';
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "plugins.php"; include dirname(__FILE__) . DIRECTORY_SEPARATOR . "config.php"; include dirname(__FILE__) . DIRECTORY_SEPARATOR . "lang" . DIRECTORY_SEPARATOR . "en.php"; if (file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . "lang" . DIRECTORY_SEPARATOR . $lang . ".php")) { include dirname(__FILE__) . DIRECTORY_SEPARATOR . "lang" . DIRECTORY_SEPARATOR . $lang . ".php"; } if ($p_ < 4) { exit; } if ($_GET['action'] == 'request') { $grp = $_REQUEST['id']; sendMessageTo($_REQUEST['to'], $screenshare_language[2] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccscreenshare.accept('" . $userid . "','" . $grp . "');\">" . $screenshare_language[3] . "</a> " . $screenshare_language[4]); sendSelfMessage($_REQUEST['to'], $screenshare_language[5]); if (!empty($_GET['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_GET['callback'] . '()'; } } if ($_GET['action'] == 'accept') { sendMessageTo($_REQUEST['to'], $screenshare_language[6]); if (!empty($_GET['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_GET['callback'] . '()'; } } if ($_GET['action'] == 'screenshare') { global $lightboxWindows; $id = $_GET['id'];
$apiServer = 'https://api.opentok.com/hl'; $apiObj = new OpenTokSDK($apiKey, $apiSecret); if (empty($_SESSION['avchat_token'])) { $_SESSION['avchat_token'] = $apiObj->generate_token(); } } if ($_REQUEST['action'] == 'request') { if ($videoPluginType == '2') { $location = time(); $session = $apiObj->create_session($location); $grp = $session->getSessionId(); } else { $grp = time(); } sendMessageTo($_REQUEST['to'], $broadcast_language[2] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccbroadcast.accept('" . $userid . "','" . $grp . "');\">" . $broadcast_language[3] . "</a> " . $broadcast_language[4]); sendSelfMessage($_REQUEST['to'], $broadcast_language[5]); if (!empty($_REQUEST['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_REQUEST['callback'] . '()'; } } if ($_REQUEST['action'] == 'call') { $grp = $_REQUEST['grp']; } if ($videoPluginType < '2') { $sender = $_REQUEST['type']; if (!empty($_REQUEST['chatroommode'])) { if (empty($_REQUEST['join'])) { sendChatroomMessage($grp, $broadcast_language[17] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccbroadcast.join('" . $_REQUEST['grp'] . "');\">" . $broadcast_language[16] . "</a>"); } }
} } if (empty($message)) { if (!empty($_POST['chatroommode'])) { if (!empty($isImage) && $isImage || !empty($isVideo) && $isVideo) { sendChatroomMessage($_POST['to'], $filetransfer_language[9] . "<br/><a class=\"imagemessage\" href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $filename . "\" target=\"_blank\" imageheight=\"" . $height . "\" imagewidth=\"" . $width . "\">" . $imgtag . "</a>"); } else { sendChatroomMessage($_POST['to'], $filetransfer_language[9] . " (" . $filename . "). <a href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $filename . "\" target=\"_blank\">" . $filetransfer_language[6] . "</a>"); } } else { if (!empty($isImage) && $isImage || !empty($isVideo) && $isVideo) { sendMessageTo($_POST['to'], $filetransfer_language[5] . "<br/><a class=\"imagemessage\" href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $filename . "\" target=\"_blank\" imageheight=\"" . $height . "\" imagewidth=\"" . $width . "\">" . $imgtag . "</a>"); sendSelfMessage($_POST['to'], $filetransfer_language[7] . "<br/><a class=\"imagemessage\" href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $filename . "\" target=\"_blank\" imageheight=\"" . $height . "\" imagewidth=\"" . $width . "\">" . $imgtag . "</a>"); } else { sendMessageTo($_POST['to'], $filetransfer_language[5] . " (" . $filename . "). <a href=\"" . BASE_URL . "plugins/filetransfer/download.php?file=" . $filename . "\" target=\"_blank\">" . $filetransfer_language[6] . "</a>"); sendSelfMessage($_POST['to'], $filetransfer_language[7] . " (" . $filename . ")."); } if (isset($_REQUEST['sendername']) && $pushNotifications == 1) { pushMobileNotification($filetransfer_language[9], $_REQUEST['sendername'], $_POST['to'], $_POST['to']); } } $message = $filetransfer_language[8]; } $embed = ''; $embedcss = ''; $close = "setTimeout('window.close()',2000);"; if (!empty($_GET['embed']) && $_GET['embed'] == 'web') { $embed = 'web'; $embedcss = 'embed'; $close = "parent.closeCCPopup('filetransfer');"; } elseif (!empty($_GET['embed']) && $_GET['embed'] == 'desktop') {
$apiServer = 'https://api.opentok.com/hl'; } if ($_REQUEST['action'] == 'request') { if ($videoPluginType == '3') { $apiObj = new OpenTokSDK($apiKey, $apiSecret); $location = time(); if (!empty($_SERVER['REMOTE_ADDR'])) { $location = $_SERVER['REMOTE_ADDR']; } $session = $apiObj->create_session($location); $grp = $session->getSessionId(); } else { $grp = sha1(time() + $userid + 'from'); } sendMessageTo($_REQUEST['to'], $avchat_language[2] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccavchat.accept('" . $userid . "','" . $grp . "');\">" . $avchat_language[3] . "</a> " . $avchat_language[4]); sendSelfMessage($_REQUEST['to'], $avchat_language[5]); if (!empty($_REQUEST['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_REQUEST['callback'] . '()'; } exit; } if ($_REQUEST['action'] == 'accept') { sendMessageTo($_REQUEST['to'], $avchat_language[6] . " <a href='javascript:void(0);' onclick=\"javascript:jqcc.ccavchat.accept_fid('" . $userid . "','" . $_REQUEST['grp'] . "');\">" . $avchat_language[7] . "</a>"); if (!empty($_REQUEST['callback'])) { header('content-type: application/json; charset=utf-8'); echo $_REQUEST['callback'] . '()'; } exit; } if ($_REQUEST['action'] == 'call') {