示例#1
0
文件: index.php 项目: riskatlas/micka
     $validator->run($xml);
     echo $validator->asHTML();
 } else {
     if ($_REQUEST["action-html"]) {
         echo "comming soon...";
         //$s = $cswClient->processTemplate($input,'resources/kote2iso.xsl', $params);
         //echo $cswClient->processTemplate($s,'../include/xsl/iso2html.xsl', $params);
     } else {
         if ($_REQUEST["action-paspprint"]) {
             $s = $cswClient->processTemplate($input, dirname(__FILE__) . 'resources/kote2iso.xsl', $params);
             $par['komu'] = $_REQUEST['md']['komu'];
             $par['cislo'] = $_REQUEST['md']['cislo'];
             echo $cswClient->processTemplate($s, PHPPRG_DIR . '/../xsl/iso2pasport.xsl', $par);
         } else {
             if ($_REQUEST["action-pasport"]) {
                 echo $cswClient->processTemplateFile('', dirname(__FILE__) . '/resources/kote_pass.xsl');
             } else {
                 if ($_REQUEST['metadataURL']) {
                     $s = file_get_contents('http://www.bnhelp.cz/projects/metadata/trunk/micka_main.php?ak=xml&uuid=4969bc07-148c-4ce3-a4d7-39e9d49e8056');
                     //TODO - zabezpecit
                     //echo $s; exit;
                 } else {
                     if ($_REQUEST['id']) {
                         if (KOTE_MODE_LOCAL) {
                             include '../include/application/micka_main_lib.php';
                             require '../include/application/MdRecord.php';
                             echo main_xml('md', htmlspecialchars($_REQUEST['id']), '');
                             //$url = '../micka_main.php?ak=xml&uuid='.htmlspecialchars($_REQUEST['id']);
                         } else {
                             $url = KOTE_SERVICE . '?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&debug=0&ID=' . htmlspecialchars($_REQUEST['id']) . "&user=SID@" . $_COOKIE[CSW_TOKEN];
                             //TODO na javu