1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: session_unset();
19:
20: 21: 22: 23: 24: 25:
26: class cSetupLanguageChooser extends cSetupMask
27: {
28: function cSetupLanguageChooser()
29: {
30: cSetupMask::cSetupMask("templates/languagechooser.tpl");
31: $this->setHeader('Version ' . CON_SETUP_VERSION);
32: $this->_oStepTemplate->set("s", "DE_HINT", "Diese Anwendung hilft Ihnen bei der Installation von CONTENIDO.");
33: $this->_oStepTemplate->set("s", "EN_HINT", "This application will guide you trough the setup process.");
34: $this->_oStepTemplate->set("s", "DE_HINT_LANG", "Wählen Sie bitte die gewünschte Sprache für das Setup aus.");
35: $this->_oStepTemplate->set("s", "EN_HINT_LANG", "Please choose your language to continue.");
36:
37: $langs = array("de_DE" => "Deutsch", "C" => "English");
38:
39: $m = "";
40:
41: foreach ($langs as $entity => $lang) {
42: $test = new cHTMLLanguageLink($entity, $lang, "setuptype");
43: $m .= $test->render();
44: }
45:
46: $this->_oStepTemplate->set("s", "LANGUAGECHOOSER", $m);
47: }
48: }
49:
50: $cSetupStep1 = new cSetupLanguageChooser();
51: $cSetupStep1->render();
52: