Rev 463 | Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 463 | Rev 496 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | $class = 'lng_flag'; |
72 | $class = 'lng_flag'; |
73 | } else { |
73 | } else { |
74 | $class = 'lng_flag picture_ghost'; |
74 | $class = 'lng_flag picture_ghost'; |
75 | } |
75 | } |
76 | $add = (!is_null($goto)) ? '&goto='.urlencode($goto) : ''; |
76 | $add = (!is_null($goto)) ? '&goto='.urlencode($goto) : ''; |
77 | $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::getSystemUrl(true).'plugins/language/'.$code.'/'.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'" height="20"></a></span> '; |
77 | $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::webpath(null,true).'plugins/language/'.$code.'/'.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'" height="20"></a></span> '; |
78 | } |
78 | } |
79 | if ($non_default_languages > 0) { |
79 | if ($non_default_languages > 0) { |
80 | foreach ($langbox_entries as $ent) { |
80 | foreach ($langbox_entries as $ent) { |
81 | echo "$ent\n\t\t"; |
81 | echo "$ent\n\t\t"; |
82 | } |
82 | } |
Line 90... | Line 90... | ||
90 | echo '<html><head><title>'._L('OIDplus initialization error').'</title></head><body>'; |
90 | echo '<html><head><title>'._L('OIDplus initialization error').'</title></head><body>'; |
91 | echo '<h1>'._L('OIDplus initialization error').'</h1>'; |
91 | echo '<h1>'._L('OIDplus initialization error').'</h1>'; |
92 | echo '<p>'.htmlentities($exception->getMessage(), ENT_SUBSTITUTE).'</p>'; |
92 | echo '<p>'.htmlentities($exception->getMessage(), ENT_SUBSTITUTE).'</p>'; |
93 | echo '<p>'._L('Please check the file %1','<b>userdata/baseconfig/config.inc.php</b>'); |
93 | echo '<p>'._L('Please check the file %1','<b>userdata/baseconfig/config.inc.php</b>'); |
94 | if (is_dir(__DIR__ . '/../../setup')) { |
94 | if (is_dir(__DIR__ . '/../../setup')) { |
95 | echo ' '._L('or run <a href="%1">setup</a> again',OIDplus::getSystemUrl().'setup/'); |
95 | echo ' '._L('or run <a href="%1">setup</a> again',OIDplus::webpath().'setup/'); |
96 | } |
96 | } |
97 | echo '</p>'; |
97 | echo '</p>'; |
98 | echo '</body></html>'; |
98 | echo '</body></html>'; |
99 | } else { |
99 | } else { |
100 | echo '<!DOCTYPE HTML>'; |
100 | echo '<!DOCTYPE HTML>'; |