• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getWebDirModule函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:32,代码来源:index.php


示例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;
}
开发者ID:lordbasex,项目名称:elastix-gui,代码行数:26,代码来源:index.php


示例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;
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:34,代码来源:index.php


示例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;
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:35,代码来源:index.php


示例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);
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:33,代码来源:index.php


示例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);
 }
开发者ID:lordbasex,项目名称:elastix-gui,代码行数:35,代码来源:index.php


示例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;
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:26,代码来源:index.php


示例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;
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:26,代码来源:index.php


示例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;
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:49,代码来源:index.php


示例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;
}
开发者ID:Neo2SHYAlien,项目名称:elastix-mt-gui,代码行数:46,代码来源:index.php


示例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}&amp;image={$listaGraficos[$k]}&rawmode=yes\" />";
        }
        $smarty->assign($listaGraficos);
        return $smarty->fetch("{$local_templates_dir}/channelusage.tpl");
    }
}
开发者ID:netconstructor,项目名称:elastix-mt-gui,代码行数:18,代码来源:index.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getWebEditorCfg函数代码示例发布时间:2022-05-15
下一篇:
PHP getVisitorIP函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap