Subversion Repositories oidplus

Rev

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

Rev 292 Rev 294
Line 283... Line 283...
283
                        $handled = true;
283
                        $handled = true;
284
 
284
 
285
                        $out['title'] = OIDplus::config()->getValue('system_title'); // 'Object Database of ' . $_SERVER['SERVER_NAME'];
285
                        $out['title'] = OIDplus::config()->getValue('system_title'); // 'Object Database of ' . $_SERVER['SERVER_NAME'];
286
                        $out['icon'] = OIDplus::webpath(__DIR__).'system_big.png';
286
                        $out['icon'] = OIDplus::webpath(__DIR__).'system_big.png';
287
 
287
 
-
 
288
                        if (file_exists(OIDplus::basePath() . '/userdata/welcome/welcome.html')) {
-
 
289
                                $out['text'] = file_get_contents(OIDplus::basePath() . '/userdata/welcome/welcome.html');
288
                        if (file_exists(__DIR__ . '/welcome.local.html')) {
290
                        } else if (file_exists(__DIR__ . '/welcome.local.html')) {
289
                                $out['text'] = file_get_contents(__DIR__ . '/welcome.local.html');
291
                                $out['text'] = file_get_contents(__DIR__ . '/welcome.local.html');
290
                        } else if (file_exists(__DIR__ . '/welcome.html')) {
292
                        } else if (file_exists(__DIR__ . '/welcome.html')) {
291
                                $out['text'] = file_get_contents(__DIR__ . '/welcome.html');
293
                                $out['text'] = file_get_contents(__DIR__ . '/welcome.html');
292
                        } else {
294
                        } else {
293
                                $out['text'] = '';
295
                                $out['text'] = '';
Line 769... Line 771...
769
        // 'colorpicker', 'textcolor' and 'contextmenu' added in 07 April 2020, because it is built in in the core.
771
        // 'colorpicker', 'textcolor' and 'contextmenu' added in 07 April 2020, because it is built in in the core.
770
        public static $exclude_tinymce_plugins = array('fullpage', 'bbcode', 'quickbars', 'colorpicker', 'textcolor', 'contextmenu');
772
        public static $exclude_tinymce_plugins = array('fullpage', 'bbcode', 'quickbars', 'colorpicker', 'textcolor', 'contextmenu');
771
 
773
 
772
        protected static function showMCE($name, $content) {
774
        protected static function showMCE($name, $content) {
773
                $mce_plugins = array();
775
                $mce_plugins = array();
774
                foreach (glob(__DIR__ . '/../../3p/tinymce/plugins/*') as $m) { // */
776
                foreach (glob(OIDplus::basePath().'/3p/tinymce/plugins/*') as $m) { // */
775
                        $mce_plugins[] = basename($m);
777
                        $mce_plugins[] = basename($m);
776
                }
778
                }
777
 
779
 
778
                foreach (self::$exclude_tinymce_plugins as $exclude) {
780
                foreach (self::$exclude_tinymce_plugins as $exclude) {
779
                        $index = array_search($exclude, $mce_plugins);
781
                        $index = array_search($exclude, $mce_plugins);