当前位置: 首页>>代码示例>>PHP>>正文


PHP FreePBX::Endpointman方法代码示例

本文整理汇总了PHP中FreePBX::Endpointman方法的典型用法代码示例。如果您正苦于以下问题:PHP FreePBX::Endpointman方法的具体用法?PHP FreePBX::Endpointman怎么用?PHP FreePBX::Endpointman使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FreePBX的用法示例。


在下文中一共展示了FreePBX::Endpointman方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: endpointsAutoload

 public static function endpointsAutoload($class)
 {
     // If for some reason we get here and the class is already loaded, return
     if (class_exists($class, FALSE)) {
         return TRUE;
     }
     // Try to include the class
     $file = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
     $file = FreePBX::Endpointman()->PHONE_MODULES_PATH . $file;
     if (is_file($file)) {
         require $file;
         return TRUE;
     }
     return FALSE;
 }
开发者ID:meowbox,项目名称:endpointman,代码行数:15,代码来源:setup.php

示例2: die

<?php

if (!defined('FREEPBX_IS_AUTH')) {
    die('No direct script access allowed');
}
if (!isset($_REQUEST['idsel']) || !isset($_REQUEST['custom'])) {
    echo '<div class="alert alert-warning" role="alert">';
    echo '<strong>' . _("Warning!") . '</strong>' . " No select ID o Custom!";
    echo '</div>';
    return;
}
$dtemplate = FreePBX::Endpointman()->epm_templates->edit_template_display($_REQUEST['idsel'], $_REQUEST['custom']);
$request = $_REQUEST;
?>




<form action="" method="post" id="epm_tamplate_edit_form" name="epm_tamplate_edit_form">
	<?php 
if (isset($_REQUEST['silent_mode'])) {
    echo '<input name="silent_mode" id="silent_mode" type="hidden" value="1">';
}
?>
	<input name="id" id="id" type="hidden" value="<?php 
echo $dtemplate['hidden_id'];
?>
">
	<input name="custom" id="custom" type="hidden" value="<?php 
echo $dtemplate['hidden_custom'];
?>
开发者ID:meowbox,项目名称:endpointman,代码行数:31,代码来源:editor.views.tamplate.php

示例3: foreach

</label>
							<i class="fa fa-question-circle fpbx-help-icon" data-for="tz"></i>
						</div>
						<div class="col-md-9">
							<div class="input-group">
      							<select name="tz" class="form-control" id="tz">
                                <?php 
//TODO: Pendiente actualizar a ajax!!!!
foreach (FreePBX::Endpointman()->listTZ("") as $row) {
    echo '<option value="' . $row['value'] . '" > ' . $row['text'] . '</option>';
}
?>
								</select>
      							<span class="input-group-btn">
        							<button class="btn btn-default" type="button" id='tzphp' onclick="epm_global_input_value_change_bt('#tz', sValue = '<?php 
echo FreePBX::Endpointman()->config->get('PHPTIMEZONE');
?>
');"><i class="fa fa-clock-o"></i> <?php 
echo _("TimeZone by PBX Setting");
?>
</button>
      							</span>
    						</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<span class="help-block fpbx-help-block" id="tz-help"><?php 
开发者ID:meowbox,项目名称:endpointman,代码行数:31,代码来源:editor.views.dialog.cfg.global.php

示例4: repository

				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<span class="help-block fpbx-help-block" id="use_repo-help">Use the live github repository (Requires git to be installed), (WARN: Beta!)</span>
			</div>
		</div>
	</div>
	<?php 
unset($use_repo);
?>
	<!--END Use GITHUB Live Repo-->
	<!--GIT Branch-->
	<?php 
if (FreePBX::Endpointman()->configmod->get("use_repo")) {
    $path = $endpoint->has_git();
    $o = getcwd();
    chdir(PHONE_MODULES_PATH);
    if (isset($_REQUEST['git_branch'])) {
        if (preg_match('/remotes\\/origin\\/(.*)/i', $_REQUEST['git_branch'], $matches)) {
            //Pull from a remote.
            if (!exec($path . ' checkout origin_' . $matches[1])) {
                //We must remote track this branch
                exec($path . ' branch --track origin_' . $matches[1] . ' origin/' . $matches[1]);
                exec($path . ' checkout origin_' . $matches[1]);
            }
            exec($path . ' pull origin ' . $matches[1]);
        } else {
            exec($path . ' checkout ' . $_REQUEST['git_branch'], $output);
        }
开发者ID:meowbox,项目名称:endpointman,代码行数:31,代码来源:epm_advanced_settings.page.php

示例5: header

            header("HTTP/1.0 500 Internal Server Error", true, 500);
            echo "<h1>" . _("Error 500 Internal Server Error") . "</h1>";
            echo _("System Failure!");
            die;
        }
        if (array_key_exists($filename, $files)) {
            echo $files[$filename];
        } else {
            header("HTTP/1.0 404 Not Found", true, 404);
            echo "<h1>" . _("Error 404 Not Found") . "</h1>";
            echo _("File not Found!");
            die;
        }
    } else {
        require_once PROVISIONER_BASE . 'endpoint/base.php';
        $data = Provisioner_Globals::dynamic_global_files($filename, FreePBX::Endpointman()->configmod->get("config_location"), $web_path);
        if ($data !== FALSE) {
            echo $data;
        } else {
            header("HTTP/1.0 404 Not Found", true, 404);
            echo "<h1>" . _("Error 404 Not Found") . "</h1>";
            echo _("File not Found!");
            die;
        }
    }
} else {
    header('HTTP/1.1 403 Forbidden', true, 403);
    echo "<h1>" . _("Error 403 Forbidden") . "</h1>";
    echo _("Access denied!");
    die;
}
开发者ID:meowbox,项目名称:endpointman,代码行数:31,代码来源:p.php

示例6: _

	
	<div class="element-container">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<div class="form-group">
						<div class="col-md-3">
							<label class="control-label" for="brand_export_pack"><?php 
echo _("Brand's Available");
?>
</label>
							<i class="fa fa-question-circle fpbx-help-icon" data-for="brand_export_pack"></i>
						</div>
						<div class="col-md-9">
							<?php 
$brand_ava = FreePBX::Endpointman()->brands_available("", false);
if ($brand_ava == "") {
    ?>
								<div class="alert alert-info text-left" role="alert"> <strong><?php 
    echo _("Heads up!");
    ?>
</strong> <?php 
    echo _("List Bran's Availables empty.");
    ?>
 <i class='icon-globe'></i></div>
							<?php 
} else {
    ?>
								<div class="input-group">
	      							<select class="form-control" name="brand_export_pack_selected" id="brand_export_pack_selected">
										<option value=""><?php 
开发者ID:meowbox,项目名称:endpointman,代码行数:30,代码来源:epm_advanced_manual_upload.page.php

示例7:

			<th width="6%"></th>
			<th width="7%"></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td align='center' width='2%'>&nbsp;</td>
    		<td align='center'>
				{$mac}<input name='mac' type='text' tabindex='1' size="17" maxlength="17">
			</td>
			<td align='center'>
				<label>
				{$name}
				<select name="brand_list" id="brand_edit">		
				<?php 
$brand_ava = FreePBX::Endpointman()->brands_available();
foreach ($brand_ava as $row) {
    echo '<option value="' . $row['value'] . '" ' . (isset($row['selected']) ? "selected" : "") . '>' . $row['text'] . '</option>';
}
?>
				</select>
				</label>
			</td>
			<td align='center'>
				<label>
					<input name="display" type="hidden" value="epm_devices">
					{loop name="models_ava"}
					<select name="model_list" id="model_new">
						<option value="{$value.value}" {if condition="!empty($value.selected)"}selected{/if}>{$value.text}</option>
					</select>
					{else}
开发者ID:meowbox,项目名称:endpointman,代码行数:31,代码来源:epm_devices_main.page.php


注:本文中的FreePBX::Endpointman方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。