コード例 #1
0
ファイル: index.php プロジェクト: hardikk/HNH
function _moduleContent($smarty, $module_name)
{
    require_once "modules/{$module_name}/configs/default.conf.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'];
    switch (getParameter('action')) {
        case 'checkqueue':
            return listarColaFax_json($smarty, $module_name, $local_templates_dir);
        case 'list':
        default:
            return listarColaFax_html($smarty, $module_name, $local_templates_dir);
    }
}
コード例 #2
0
function _moduleContent($smarty, $module_name)
{
    global $arrConf;
    require_once 'libs/paloSantoGrid.class.php';
    require_once 'libs/paloSantoJSON.class.php';
    require_once 'libs/paloSantoFax.class.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;
    //actions
    switch (getParameter('action')) {
        case 'checkqueue':
            return listarColaFax_json($smarty, $module_name, $local_templates_dir);
        case 'list':
        default:
            return listarColaFax_html($smarty, $module_name, $local_templates_dir);
    }
}