本文整理汇总了PHP中getWebDirModule函数的典型用法代码示例。如果您正苦于以下问题:PHP getWebDirModule函数的具体用法?PHP getWebDirModule怎么用?PHP getWebDirModule使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getWebDirModule函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//global variables
global $arrConf;
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion
$pDB = new paloDB($arrConf['dsn_conn_database']);
//actions
$accion = getAction();
$content = "";
switch ($accion) {
case 'save':
$content = savePuerto($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'new':
case 'view':
case 'edit':
$content = NewViewPuerto($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $accion);
break;
case 'delete':
$content = deletePuertos($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'cancel':
$content = reportPuertos($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
default:
$content = reportPuertos($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
}
return $content;
}
示例2: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//global variables
global $arrConf;
global $arrConfModule;
$arrConf = array_merge($arrConf, $arrConfModule);
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
// se conecta a la base
$pDB = new paloDB($arrConf['elastix_dsn']['elastix']);
$pACL = new paloACL($pDB);
$user = isset($_SESSION['elastix_user']) ? $_SESSION['elastix_user'] : "";
$uid = $pACL->getIdUser($user);
//actions
$accion = getAction();
$content = "";
switch ($accion) {
case "save":
$content = saveThemes($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $uid);
break;
default:
$content = formThemes($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $uid);
break;
}
return $content;
}
示例3: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//global variables
global $arrConf;
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion resource
$pDB = new paloDB($arrConf['elastix_dsn']['elastix']);
//return array("idUser"=>$idUser,"id_organization"=>$idOrganization,"userlevel"=>$userLevel1,"domain"=>$domain);
global $arrCredentials;
//actions
$accion = getAction();
switch ($accion) {
case 'save':
$content = saveExtensionSettings($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'checkFaxStatus':
$content = checkFaxStatus('getFaxStatus', $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'showSendFax':
$content = showSendFax($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'sendNewFax':
$content = sendNewFax($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'faxAttachmentUpload':
$content = faxAttachmentUpload($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
default:
$content = showExtensionSettings($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
}
return $content;
}
示例4: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//global variables
global $arrConf;
global $arrConfModule;
$arrConf = array_merge($arrConf, $arrConfModule);
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion resource
$pDB = new paloDB($arrConf['dsn_conn_database']);
//actions
$action = getAction();
$content = "";
switch ($action) {
// case "save_dhcpclient":
// $content = saveNewDhcpClient($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
// break;
case "new_dhcpclient":
$content = viewFormDhcpClientlist($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case "see_dhcpclient":
$content = viewFormDhcpClientlist($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
// case "delete_list":
// $content = delete_emailList($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
// break;
// case "delete_list":
// $content = delete_emailList($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
// break;
default:
$content = reportDhcpClientlist($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
}
return $content;
}
示例5: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//require_once "modules/$module_name/configs/default.conf.php";
//require_once "modules/$module_name/libs/paloInterfaceSSE.class.php";
//require_once "modules/$module_name/libs/paloServerSentEvents.class.php";
//require_once "modules/$module_name/libs/paloControlPanelUtils.class.php";
//load_language_module($module_name);
/*
global $arrConf;
global $arrConfModule;
$arrConf = array_merge($arrConf,$arrConfModule);
*/
//folder path for custom templates
/*
$base_dir = dirname($_SERVER['SCRIPT_FILENAME']);
$templates_dir = (isset($arrConf['templates_dir']))?$arrConf['templates_dir']:'themes';
$local_templates_dir = "$base_dir/modules/$module_name/".$templates_dir.'/'.$arrConf['theme'];
*/
$local_templates_dir = getWebDirModule($module_name);
// Valores estáticos comunes a todas las operaciones
$smarty->assign('module_name', $module_name);
$h = 'handleHTML_mainReport';
if (isset($_REQUEST['action'])) {
$h = NULL;
if (is_null($h) && function_exists('handleJSON_' . $_REQUEST['action'])) {
$h = 'handleJSON_' . $_REQUEST['action'];
}
if (is_null($h)) {
$h = 'handleJSON_unimplemented';
}
}
return call_user_func($h, $smarty, $module_name, $local_templates_dir);
}
示例6: handleJSON_getContent
function handleJSON_getContent($smarty, $module_name, $appletlist)
{
$respuesta = array('status' => 'success', 'message' => '(no message)');
$smarty->assign(array('sMsgStart' => _tr('Start process'), 'sMsgStop' => _tr('Stop process'), 'sMsgRestart' => _tr('Restart process'), 'sMsgActivate' => _tr('Enable process'), 'sMsgDeactivate' => _tr('Disable process')));
$listaIconos = array('Asterisk' => 'icon_pbx.png', 'OpenFire' => 'icon_im.png', 'Hylafax' => 'icon_fax.png', 'Postfix' => 'icon_email.png', 'MySQL' => 'icon_db.png', 'Apache' => 'icon_www.png', 'Dialer' => 'icon_headphones.png');
$sIconoDesconocido = 'system.png';
$arrServices = $this->getStatusServices();
foreach (array_keys($arrServices) as $sServicio) {
switch ($arrServices[$sServicio]['status_service']) {
case 'OK':
$arrServices[$sServicio]['status_desc'] = _tr('Running');
$arrServices[$sServicio]['status_color'] = '#006600';
break;
case 'Shutdown':
$arrServices[$sServicio]['status_desc'] = _tr('Not running');
$arrServices[$sServicio]['status_color'] = '#880000';
break;
default:
$arrServices[$sServicio]['status_desc'] = _tr('Not installed');
$arrServices[$sServicio]['status_color'] = '#000088';
break;
}
$arrServices[$sServicio]['status_desc'] = strtoupper($arrServices[$sServicio]['status_desc']);
$arrServices[$sServicio]['icon'] = isset($listaIconos[$sServicio]) ? $listaIconos[$sServicio] : $sIconoDesconocido;
$arrServices[$sServicio]['name_service'] = _tr($arrServices[$sServicio]['name_service']);
$arrServices[$sServicio]['status_service_icon'] = in_array($arrServices[$sServicio]['status_service'], array('OK', 'Shutdown')) ? 'icon_arrowdown.png' : 'icon_arrowdown-disabled.png';
$arrServices[$sServicio]['pointer_style'] = in_array($arrServices[$sServicio]['status_service'], array('OK', 'Shutdown')) ? 'pointer' : '';
}
$smarty->assign('services', $arrServices);
$local_templates_dir = getWebDirModule($module_name) . "/applets/ProcessesStatus/tpl";
$respuesta['html'] = $smarty->fetch("{$local_templates_dir}/process_status.tpl");
$json = new Services_JSON();
Header('Content-Type: application/json');
return $json->encode($respuesta);
}
示例7: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
global $arrConf;
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion resource
$pDB = new paloDB($arrConf['elastix_dsn']["elastix"]);
//user credentials
global $arrCredentials;
//actions
$action = getAction();
$content = "";
switch ($action) {
case "save_new":
$content = sendNewSendFax($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'checkFaxStatus':
$content = checkFaxStatus();
break;
default:
// view_form
$content = viewFormSendFax($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
}
return $content;
}
示例8: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
global $arrConf;
//include framework lib form
include_once "libs/paloSantoForm.class.php";
//include email configuration files
include_once "configs/email.conf.php";
include_once "libs/cyradm.php";
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion resource
$pDB = new paloDB($arrConf['elastix_dsn']["elastix"]);
//user credentials
global $arrCredentials;
$accion = getAction();
$content = "";
switch ($accion) {
case "update":
$content = updateAntispam($smarty, $module_name, $local_templates_dir, $arrConf);
break;
default:
$content = formAntispam($smarty, $module_name, $local_templates_dir, $arrConf);
break;
}
return $content;
}
示例9: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//global variables
global $arrConf;
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion resource
$pDB = new paloDB($arrConf['elastix_dsn']['elastix']);
//return array("idUser"=>$idUser,"id_organization"=>$idOrganization,"userlevel"=>$userLevel1,"domain"=>$domain);
global $arrCredentials;
//actions
$accion = getAction();
switch ($accion) {
case 'saveNew':
$content = saveContact($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case "saveEdit":
$content = editContact($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'uploadImageContact':
$content = uploadImageContact($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'deleteContacts':
$content = deleteContacts($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'uploadCSV':
$content = uploadCSV($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case 'templateContact':
$content = templateContact($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case "getImageExtContact":
$content = getImageExtContact($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case "getImageTmp":
$content = getImageTmp($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case "call2phone":
$content = call2phone($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
case "transfer_call":
$content = transferCALL($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
default:
$content = reportContact($smarty, $module_name, $local_templates_dir, $pDB, $arrConf);
break;
}
return $content;
}
示例10: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
global $arrConf;
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
//conexion resource
$pDB = new paloDB($arrConf['elastix_dsn']["elastix"]);
//user credentials
global $arrCredentials;
$action = getAction();
$content = "";
switch ($action) {
case "new_outbound":
$content = viewFormOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "view":
$content = viewFormOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "view_edit":
$content = viewFormOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "save_new":
$content = saveNewOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "save_edit":
$content = saveEditOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "delete":
$content = deleteOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "checkName":
$content = checkName($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "reloadAasterisk":
$content = reloadAasterisk($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
case "ordenRoute":
$content = ordenRoute($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
default:
// report
$content = reportOutbound($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
break;
}
return $content;
}
示例11: _moduleContent
function _moduleContent(&$smarty, $module_name)
{
//folder path for custom templates
$local_templates_dir = getWebDirModule($module_name);
$smarty->assign("title", _tr("Channels Usage Report"));
$smarty->assign("icon", "web/apps/{$module_name}/images/reports_channel_usage.png");
if (isset($_GET['image'])) {
$_GET['image'] = (int) $_GET['image'];
displayGraph($module_name, "paloSantoChannelUsage", "channelsUsage", array($_GET['image']), "functionCallback");
} else {
$listaGraficos = array('img_1' => 2, 'img_2' => 3, 'img_3' => 4, 'img_4' => 5, 'img_5' => 6, 'img_6' => 7);
foreach (array_keys($listaGraficos) as $k) {
$listaGraficos[$k] = "<img alt=\"{$listaGraficos[$k]}\" src=\"?menu={$module_name}&image={$listaGraficos[$k]}&rawmode=yes\" />";
}
$smarty->assign($listaGraficos);
return $smarty->fetch("{$local_templates_dir}/channelusage.tpl");
}
}