Blame | Letzte Änderung | Log anzeigen | RSS feed
<?php/*** @package php_share* @author Lars Tiefland <tiefland@weban.de>* @copyright 2010 Webagentur Niewerth* @license propietary http://www.weban.de* @version $Rev: 460 $* @filesource**//**** @package php_share* @author Lars Tiefland <tiefland@weban.de>* @copyright 2010 Webagentur Niewerth*/// SVN: $Id: index.php 460 2011-03-28 21:19:56Z tiefland $$GLOBALS["languages"] = $GLOBALS["lang"]->getLangs( "array" );if ( $_GET["language"] ){$sprache = strtolower( $_GET["language"] );if ( array_key_exists( $sprache, $GLOBALS["languages"] ) ){$_SESSION["sprache"] = $sprache;}else{$_SESSION["sprache"] = strtolower( $GLOBALS["INI"]["language"] );}}$GLOBALS["lang"]->setLang( $_SESSION["sprache"] );if ( $_SESSION["sprache"] != strtolower( $GLOBALS["INI"]["language"] ) ){// Fallbacksprache auf "$GLOBALS["INI"]["language"]" setzen$GLOBALS["lang"] = &$GLOBALS["lang"]->getDecorator( 'Lang' );$GLOBALS["lang"]->setOption( 'fallbackLang', strtolower( $GLOBALS["INI"]["language"] ) );}$pages = getPagesCommon();foreach ( $pages as $page ){$items = array();$r_items = $GLOBALS["lang"]->getPage( $page );foreach ( $r_items as $item_id => $item ){$item = utf8_encode( $item );$items[$item_id] = $item;}$GLOBALS["langstrings"][strtolower( $page )] = $items;}?>