Ejemplo n.º 1
0
 function __construct($data_type = -1, $mds = 0)
 {
     $this->user = isset($_SESSION['u']) && $_SESSION['u'] != '' ? $_SESSION['u'] : 'guest';
     $this->group_e = DEFAULT_EDIT_GROUP != '' ? getDefaultGroup(DEFAULT_EDIT_GROUP, $this->user) : $this->user;
     $this->group_v = DEFAULT_VIEW_GROUP != '' ? getDefaultGroup(DEFAULT_VIEW_GROUP, $this->user) : $this->user;
     $this->sid = session_id();
     // výchozí jazyk je 1. z konfigurace
     $pom = explode(',', MICKA_LANGS_STR);
     $this->ini_lang = $pom[0];
     $this->md_lang = $pom[0];
     $this->setMdStandard($mds);
     $this->setDataType($data_type);
 }
Ejemplo n.º 2
0
require PHPPRG_DIR . '/micka_lib.php';
require PHPPRG_DIR . '/micka_auth.php';
require PHPPRG_DIR . '/micka_main_lib.php';
require PHPPRG_DIR . '/MdRecord.php';
// změna jazyka
if (isset($_REQUEST['l']) && $_REQUEST['l'] != '') {
    $_SESSION['hs_lang'] = htmlspecialchars($_REQUEST['l']);
    require PHPPRG_DIR . '/redirect.php';
}
// callback
if (isset($_REQUEST['cb'])) {
    $_SESSION['micka']['cb'] = htmlspecialchars($_REQUEST['cb']);
}
// výchozí skupiny pro nový záznam
$defaultEditGroup = DEFAULT_EDIT_GROUP != '' ? getDefaultGroup(DEFAULT_EDIT_GROUP, MICKA_USER) : MICKA_USER;
$defaultViewGroup = DEFAULT_VIEW_GROUP != '' ? getDefaultGroup(DEFAULT_VIEW_GROUP, MICKA_USER) : MICKA_USER;
// akce
$ak = getAction($_REQUEST, $akDefault);
switch ($ak) {
    //==============================================================================
    case 'find':
    case 'detail':
    case 'detailfc':
        //==============================================================================
        require PHPPRG_DIR . '/Csw.php';
        $csw = new Csw();
        $request = $_REQUEST;
        if ($ak == 'detail') {
            $record['data']['md']['UUID'] = isset($_REQUEST['uuid']) && $_REQUEST['uuid'] != '' ? htmlspecialchars($_REQUEST['uuid']) : '';
            if ($record['data']['md']['UUID'] != '') {
                $request['service'] = 'CSW';