javascript:alert('"._("Warning! Extension")." $account "._("is not allowed for your account.")."');";
} else {
//if submitting form, update database
switch ($action) {
case "add":
$conflict_url = array();
$usage_arr = framework_check_extension_usage($account);
if (!empty($usage_arr)) {
$conflict_url = framework_display_extension_usage_alert($usage_arr);
} elseif (conferences_add($_REQUEST['account'],$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg']) !== false) {
needreload();
redirect_standard();
}
break;
case "delete":
conferences_del($extdisplay);
needreload();
redirect_standard();
break;
case "edit": //just delete and re-add
conferences_del($_REQUEST['account']);
conferences_add($_REQUEST['account'],$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg']);
needreload();
redirect_standard('extdisplay');
break;
}
}
//get meetme rooms
//this function needs to be available to other modules (those that use goto destinations)
//therefore we put it in globalfunctions.php
$meetmes = conferences_list();
?>
'._("Conference").' '.$extdisplay.' '._("deleted").'!
';
} else {
if ($extdisplay != ""){
//get details for this meetme
$thisMeetme = conferences_get($extdisplay);
//create variables
extract($thisMeetme);
}
$delURL = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'].'&action=delete';
?>
:
"._("Conflicting Extensions")."";
echo implode('
',$conflict_url);
}
?>