if (!empty($_REQUEST['chatroommode'])) { $chatroommode = $_REQUEST['chatroommode']; } if (!empty($_REQUEST['embed'])) { $embed = $_REQUEST['embed']; } $cbfn = ''; if (!empty($_REQUEST['callbackfn'])) { $cbfn = $_REQUEST['callbackfn']; $_SESSION['noguestmode'] = '1'; } $cc_theme = ''; if (!empty($_REQUEST['cc_theme'])) { $cc_theme = $_REQUEST['cc_theme']; } configCheck(); if ($action == 'endcall') { if (!empty($chatroommode)) { $controlparameters = array('type' => 'plugins', 'name' => 'avchat', 'method' => 'endcall', 'params' => array('grp' => $grp, 'chatroommode' => 1)); $controlparameters = json_encode($controlparameters); sendChatroomMessage($to, 'CC^CONTROL_' . $controlparameters, 0); } else { $controlparameters = array('type' => 'plugins', 'name' => 'avchat', 'method' => 'endcall', 'params' => array('grp' => $grp, 'chatroommode' => 0)); $controlparameters = json_encode($controlparameters); sendMessage($to, 'CC^CONTROL_' . $controlparameters, 2); incrementCallback(); sendMessage($to, 'CC^CONTROL_' . $controlparameters, 1); } if (!empty($_GET['callback'])) { echo $_GET['callback'] . '(' . json_encode(1) . ')'; } else {
function transitionNextStep() { if (installerStep() === STEP_PHP_REQUIREMENTS) { if (phpRequirementsMet()) { installerStepSet(nextStep(STEP_PHP_REQUIREMENTS)); } } else { if (installerStep() === STEP_DB_CONFIG) { if (dbConfigValid()) { installerStepSet(nextStep(STEP_DB_CONFIG)); } } else { if (installerStep() === STEP_DB_REQUIREMENTS) { if (dbRequirementsMet()) { installerStepSet(nextStep(STEP_DB_REQUIREMENTS)); } } else { if (installerStep() === STEP_CONFIG) { if (configCheck()) { installerStepSet(nextStep(STEP_CONFIG)); } } else { if (installerStep() === STEP_PERMISSION) { if (permissionCheck()) { if (!is_writable(dirname(INSTALL_LOCK_FILE))) { userMessage('error', "Insufficient permission for lockfile " . INSTALL_LOCK_FILE); } else { installerStepSet(nextStep(STEP_PERMISSION)); } } } else { if (installerStep() === STEP_WRITE) { installerStepSet(nextStep(STEP_WRITE)); setLock(); } } } } } } }