Ejemplo n.º 1
0
<?php

//PRATICHE MODULE CONFIGURATION
$shortname = "contact";
load_module_language($shortname);
//General Module Definition
$MODULES[$shortname][title] = CONTACT_TITLE;
$MODULES[$shortname][version] = "1.0.0";
//Menu definition for this module
$MENU[$shortname][0][title] = CONTACT_MENU_0;
$MENU[$shortname][0][icon] = "ico_clienti_peq.gif";
$MENU[$shortname][0][1][title] = CONTACT_MENU_0_1;
$MENU[$shortname][0][1][page] = $CONF[url_base] . $CONF[dir_modules] . "{$shortname}/pages/contacts_view.php";
$MENU[$shortname][0][1][perm] = "r";
$MENU[$shortname][0][2][title] = CONTACT_MENU_0_2;
$MENU[$shortname][0][2][page] = $CONF[url_base] . $CONF[dir_modules] . "{$shortname}/pages/new_contact.php";
$MENU[$shortname][0][2][perm] = "c";
//Definizione funzioni da richiamare in ogni pagina
$ONSTART_FUNC[$shortname][0][functions] = "check_pratiche";
$ONSTART_FUNC[$shortname][0][parameter] = "boh,bah";
//Definizione link fra tabelle
$thisid = get_lm_id("pippo");
$LINK_MODULES[pippo][$thisid][child] = $shortname;
$LINK_MODULES[pippo][$thisid][type] = "1";
$LINK_MODULES[pippo][$thisid][link_field] = "ref_pippo";
$LINK_MODULES[pippo][$thisid][standalone] = "yes";
$LINK_MODULES[pippo][$thisid][get_permission] = "yes";
//Specific Permission function
$PERMISSION[$shortname][perm_type] = "advanced";
$PERMISSION[$shortname][perm_field] = "permessi";
$PERMISSION[$shortname][perm_group_conflict] = "2";
Ejemplo n.º 2
0
    while ($level < 10 && !file_exists($root . '/framework/class.secure.php')) {
        $root .= $oneback;
        $level += 1;
    }
    if (file_exists($root . '/framework/class.secure.php')) {
        include $root . '/framework/class.secure.php';
    } else {
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
// end include class.secure.php
/**
 *	Load Language file - new LEPTON-CMS 2 way
 */
require_once LEPTON_PATH . "/framework/functions/function.load_module_language.php";
load_module_language("code2");
/**	*******************************
 *	Try to get the template-engine.
 */
global $parser, $loader;
require dirname(__FILE__) . "/register_parser.php";
/**
 *	Get page content
 */
$fields = array('content', 'whatis');
$query = $database->build_mysql_query("select", TABLE_PREFIX . "mod_code2", $fields, "`section_id`= '" . $section_id . "'");
$oStatement = $database->db_handle->prepare($query);
$oStatement->execute();
$content = $oStatement->fetch();
$whatis = (int) $content['whatis'];
$mode = $whatis >= 10 ? (int) ($whatis / 10) : 0;
Ejemplo n.º 3
0
<?php

include "../../../framework/framework.php";
include '../../../framework/external_lib/oomaker/oomaker.php';
// Define page specific text for template
$PAGE[TXT_TITLE] = EXPORT_MENU_0_7;
$PAGE[PAGE_INTITLE] = EXPORT_MENU_0_7;
$PAGE[PAGE_PICTITLE] = "ico_stampa_med.gif";
$module = "export";
load_module_language("contact");
$thissearch = load_fwobject("search", $module, 8);
if ($CONF[knomos_mobile] == true) {
    template_init(6);
    //mobile=6 - normale=2
} else {
    template_init();
    //mobile=6 - normale=2
}
//template_init(); //mobile=6 - desktop =()
template_define_elements();
ob_start();
if ($_GET[form_id] == $thissearch[form][name]) {
    $error = check_form($thissearch[form], $_GET, $page);
    if ($error == 1) {
        $filename = get_unique_name();
        $daylist = array('Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato');
        $P = $_GET;
        $codice_from = strlen(trim($P['codice_from'])) ? trim($P['codice_from']) : '';
        $codice_to = strlen(trim($P['codice_to'])) ? trim($P['codice_to']) : '';
        $operatore = is_numeric($P['operatore'][realval][0]) ? $P['operatore'][realval][0] : '';
        //$cliente= is_numeric($P['clie'][realval][0]) ? $P['clie'][realval][0] : '';
Ejemplo n.º 4
0
<?php

// $Id: index.php 13718 2011-10-20 09:24:38Z ffervaille $
require '../inc/claro_init_global.inc.php';
FromKernel::uses('utils/input.lib', 'utils/validator.lib');
$module = Claro_UserInput::getInstance()->get('module');
$block = Claro_UserInput::getInstance()->get('block');
if (!empty($module) && $module != 'platform' && file_exists(get_module_path($module) . '/templates/help.tpl.php')) {
    $tpl = new ModuleTemplate($module, 'help.tpl.php ');
} else {
    $tpl = new CoreTemplate('help.tpl.php');
}
if ($moduleName = get_module_data($module, 'moduleName')) {
    load_module_language($module);
    $tpl->assign('module', $moduleName);
} else {
    $tpl->assign('module', $module);
}
$tpl->assign('block', $block);
$claroline->setDisplayType(Claroline::POPUP);
$claroline->display->header->setTitle(get_lang('Claroline help'));
$claroline->display->body->appendContent($tpl->render());
echo $claroline->display->render();
Ejemplo n.º 5
0
/**
 * Helper to set current module label and load config and language files
 * @param string $moduleLabel
 */
function set_and_load_current_module($moduleLabel)
{
    load_module_language($moduleLabel);
    load_module_config($moduleLabel);
    set_current_module_label($moduleLabel);
}