Subversion Repositories oidplus

Rev

Rev 1141 | Rev 1144 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1141 Rev 1143
Line 58... Line 58...
58
        }
58
        }
59
 
59
 
60
        /**
60
        /**
61
         * @param string $actionID
61
         * @param string $actionID
62
         * @param array $params
62
         * @param array $params
63
         * @return array|int[]
63
         * @return array
64
         * @throws OIDplusConfigInitializationException
64
         * @throws OIDplusConfigInitializationException
65
         * @throws OIDplusException
65
         * @throws OIDplusException
66
         */
66
         */
67
        public function action(string $actionID, array $params): array {
67
        public function action(string $actionID, array $params): array {
68
 
68
 
Line 582... Line 582...
582
                                $cont = file_get_contents(__DIR__ . '/welcome.html');
582
                                $cont = file_get_contents(__DIR__ . '/welcome.html');
583
                        } else {
583
                        } else {
584
                                $cont = '';
584
                                $cont = '';
585
                        }
585
                        }
586
 
586
 
-
 
587
                        if ($cont) {
587
                        list($html, $js, $css) = extractHtmlContents($cont);
588
                                list($html, $js, $css) = extractHtmlContents($cont);
588
                        $cont = '';
589
                                $cont = '';
589
                        if (!empty($js))  $cont .= "<script>\n$js\n</script>";
590
                                if (!empty($js)) $cont .= "<script>\n$js\n</script>";
590
                        if (!empty($css)) $cont .= "<style>\n$css\n</style>";
591
                                if (!empty($css)) $cont .= "<style>\n$css\n</style>";
591
                        $cont .= stripHtmlComments($html);
592
                                $cont .= stripHtmlComments($html);
-
 
593
                        }
592
 
594
 
593
                        $out['text'] = $cont;
595
                        $out['text'] = $cont;
594
 
596
 
595
                        if (strpos($out['text'], '%%OBJECT_TYPE_LIST%%') !== false) {
597
                        if (strpos($out['text'], '%%OBJECT_TYPE_LIST%%') !== false) {
596
                                $tmp = '<ul>';
598
                                $tmp = '<ul>';