Documentation is available at lang.php
- <?
- /**
- * lang.php
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- * @package generator
- * @author Stephan Raabe
- */
- if ($lang != "")
- {
- $lang_input = $page_lang;
- }
- else
- {
- $lang_input = $lang_default;
- }
- $lang_admin = $lang_input;
- if ((isset($_SESSION["account_lang"])) && ($_SESSION["account_lang"] != ""))
- {
- $lang_admin = $_SESSION["account_lang"];
- }
- $lang_list = "";
- $link = connectDB();
- $query = "SELECT lang_short from ".$db_praefix."language order by lang_short";
- $result = mysql_query($query);
- closeDB($link);
- while ($row = mysql_fetch_array($result))
- {
- $lang_list .= $row["lang_short"].",";
- }
- if (strlen($lang_list) > 0)
- {
- $lang_list = substr($lang_list,0,strlen($lang_list)-1);
- }
- if (isset($_GET["admin"]))
- {
- include("system/language_packs/lang_".$lang_admin.".php");
- }
- else
- {
- include("system/language_packs/lang_".$lang_input.".php");
- }
- ?>
Documentation generated on Tue, 16 Aug 2005 17:28:48 +0200 by phpDocumentor 1.3.0RC3