本文整理汇总了PHP中modules::xml方法的典型用法代码示例。如果您正苦于以下问题:PHP modules::xml方法的具体用法?PHP modules::xml怎么用?PHP modules::xml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类modules
的用法示例。
在下文中一共展示了modules::xml方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: modules
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='row_style1'><strong>{$msg}</strong></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
}
//use the module class to get the list of modules from the db and add any missing modules
$module = new modules();
$module->db = $db;
$module->dir = $_SESSION['switch']['mod']['dir'];
$module->get_modules();
$result = $module->modules;
$module_count = count($result);
$module->synch();
$module->xml();
$msg = $module->msg;
//show the msg
if ($msg) {
echo "<div align='center'>\n";
echo "<table width='40%'>\n";
echo "<tr>\n";
echo "<th align='left'>" . $text['label-message'] . "</th>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='row_style1'>{$msg}</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
}
//show the content
示例2: extension
function save_switch_xml()
{
if (is_readable($_SESSION['switch']['dialplan']['dir'])) {
save_dialplan_xml();
}
if (is_readable($_SESSION['switch']['extensions']['dir'])) {
if (file_exists($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/app/extensions/resources/classes/extension.php")) {
require_once $_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "app/extensions/resources/classes/extension.php";
$extension = new extension();
$extension->xml();
}
}
if (is_readable($_SESSION['switch']['conf']['dir'])) {
if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/settings/app_config.php")) {
save_setting_xml();
}
if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/modules/app_config.php")) {
require_once $_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/app/modules/resources/classes/modules.php";
$module = new modules();
$module->xml();
//$msg = $module->msg;
}
if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/vars/app_config.php")) {
save_var_xml();
}
if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/call_center/app_config.php")) {
save_call_center_xml();
}
if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/gateways/app_config.php")) {
save_gateway_xml();
}
//if (file_exists($_SERVER["PROJECT_ROOT"]."/app/ivr_menu/app_config.php")) {
// save_ivr_menu_xml();
//}
if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/sip_profiles/app_config.php")) {
save_sip_profile_xml();
}
}
}