本文整理匯總了PHP中FreePBX::Superfecta方法的典型用法代碼示例。如果您正苦於以下問題:PHP FreePBX::Superfecta方法的具體用法?PHP FreePBX::Superfecta怎麽用?PHP FreePBX::Superfecta使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FreePBX
的用法示例。
在下文中一共展示了FreePBX::Superfecta方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$displayvars = array("sources" => $sources, "scheme_data" => $conf);
$middle = load_view(__DIR__ . '/views/scheme.php', $displayvars);
} else {
$middle = _("Unknown Scheme");
}
break;
default:
if (isset($_POST['type'])) {
$scheme = $_POST['scheme_name'];
$type = $_POST['goto0'];
$res = FreePBX::Superfecta()->addScheme($scheme, array('DID' => $_POST['DID'], 'CID_rules' => $_POST['CID_rules'], 'Curl_Timeout' => $_POST['Curl_Timeout'], 'processor' => $_POST['processor'], 'multifecta_timeout' => $_POST['multifecta_timeout'], 'Prefix_URL' => $_POST['Prefix_URL'], 'SPAM_Text' => $_POST['SPAM_Text'], 'SPAM_Text_Substitute' => $_POST['SPAM_Text_Substitute'], 'enable_interceptor' => $_POST['enable_interceptor'], 'SPAM_threshold' => $_POST['SPAM_threshold'], 'destination' => !empty($type) ? $_POST[$type . '0'] : ''));
}
$middle = load_view(__DIR__ . '/views/main.php', array("schemes" => FreePBX::Superfecta()->getAllSchemes()));
}
$currentScheme = !empty($_REQUEST['scheme']) ? $_REQUEST['scheme'] : '';
$allSchemes = FreePBX::Superfecta()->getAllSchemes();
//show_view(__DIR__."/views/header.php", array("schemes" => $scheme_list));
//echo $middle;
//show_view(__DIR__.'/views/footer.php',array());
?>
<div class="container-fluid">
<div class="row">
<div class="col-sm-9">
<?php
echo $middle;
?>
</div>
<div class="col-sm-3 hidden-xs bootnav">
<div class="list-group">
<a href="?display=superfecta&action=add" class="list-group-item"><i class="fa fa-plus"></i> <?php
echo _('Add Scheme');