예제 #1
0
 static function init()
 {
     self::$selects["default_style"] = array("{t}Default theme{/t}", select::themes());
     self::$selects["timezone"] = array("{t}Time zone{/t}, {t}current time{/t}: " . sys_date("{t}g:i a{/t}"), select::timezones(true));
     self::$selects["lang"] = array("{t}Default language{/t}", select::languages());
     $modules = select::modules_all();
     asort($modules);
     self::$multi_selects["disabled_modules"] = array("{t}Disabled modules{/t}", $modules);
     if (empty($_REQUEST["setup_auth_ldap_groups"])) {
         $_POST["setup_auth_ldap_groups"] = 0;
         $_REQUEST["setup_auth_ldap_groups"] = 0;
     }
 }
예제 #2
0
    static function show_lang()
    {
        setup::out('
    <html>
    <head>
	<title>Simple Groupware & CMS</title>
	<style>
	  body { width:526px; margin:10px auto; }
	  body, a { color: #666666; font-size: 13px; font-family: Arial, Helvetica, Verdana, sans-serif; }
	  a { color: #0000FF; }
	  #logo_table {
		color:#FFFFFF; background-image:url(ext/images/sgs_logo_bg.jpg); width:512px; height:208px; border-radius:4px;
		-moz-transition:opacity 3s; -webkit-transition:opacity 3s; opacity:0;
	  }
	  .logo { border-radius:8px; border:1px solid #AAAAAA; width:526px; height:222px; margin-bottom:10px; }
	  .tab { width:84%; margin:auto; }
	  .font { text-shadow: -1px -1px 0px #101010, 1px 1px 0px #505050; font-family: Coustard, serif; }
	  @font-face { font-family:"Coustard"; src:local("Coustard"), url("ext/images/coustard.woff") format("woff"); }
	</style>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body onload="document.getElementById(\'logo_table\').style.opacity=1;">

	<table class="logo">
	<tr><td align="center" valign="middle">
	  <table id="logo_table">
		<tr style="height:45px;"><td align="center" valign="top" class="font" style="font-size:80%"><b>Simple Groupware Solutions</b></td></tr>
		<tr><td align="center" class="font" style="font-size:170%;"><b>Simple Groupware<br>' . CORE_VERSION_STRING . '</b></td></tr>
		<tr style="height:50px;"><td valign="bottom" style="font-size:70%">Photo from<br>Axel Kristinsson</td></tr>
	  </table>
	</td></tr>
	</table>
  ', false);
        self::out("<table class='tab'><tr><td>", false);
        $i = 0;
        $langs = select::languages();
        foreach ($langs as $lang => $lang_str) {
            $i++;
            self::out("<a href='index.php?lang=" . $lang . "'>" . $lang_str . "</a><br>");
            if ($i == ceil(count($langs) / 2)) {
                self::out("</td><td valign='top' align='right'>", false);
            }
        }
        self::out("</td></tr></table>", false);
        self::out('<div style="border-top: 1px solid #666666;">Powered by Simple Groupware, Copyright (C) 2002-2012 by Thomas Bley.</div></body></html>', true, true);
    }