Rev 282 | Rev 472 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 282 | Rev 360 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | 25 | ||
26 | # --- |
26 | # --- |
27 | 27 | ||
28 | header('Content-Type:text/plain'); |
28 | header('Content-Type:text/plain'); |
29 | 29 | ||
- | 30 | $non_default_languages = array(); |
|
- | 31 | foreach (OIDplus::getAvailableLangs() as $code) { |
|
30 | $nonConfidential = OIDplusObject::getAllNonConfidential(); |
32 | if ($code == OIDplus::DEFAULT_LANGUAGE) continue; |
- | 33 | $non_default_languages[] = $code; |
|
- | 34 | } |
|
31 | 35 | ||
32 | $out = array(); |
36 | $out = array(); |
33 | foreach (OIDplus::getPagePlugins() as $plugin) { |
37 | foreach (OIDplus::getPagePlugins() as $plugin) { |
34 | if (is_subclass_of($plugin, OIDplusPagePluginPublic::class)) { |
38 | if (is_subclass_of($plugin, OIDplusPagePluginPublic::class)) { |
35 | $plugin->publicSitemap($out); |
39 | $plugin->publicSitemap($out); |
36 | 40 | ||
37 | } |
41 | } |
38 | } |
42 | } |
- | 43 | ||
- | 44 | $out2 = array(); |
|
- | 45 | foreach ($out as $o) { |
|
- | 46 | $out2[] = OIDplus::getSystemUrl().'?goto='.urlencode($o); |
|
- | 47 | foreach ($non_default_languages as $lang) { |
|
- | 48 | $out2[] = OIDplus::getSystemUrl().'?lang='.urlencode($lang).'&goto='.urlencode($o); |
|
- | 49 | } |
|
- | 50 | } |
|
- | 51 | ||
39 | echo implode("\r\n", $out); |
52 | echo implode("\r\n", $out2); |
40 | 53 |