Revision 114 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?if ( isset($_GET["XDEBUG_PROFILE"]) ){setcookie( "XDEBUG_PROFILE", $_GET["XDEBUG_PROFILE"] );}if ( !file_exists("include/config.xml") ){header( "Location: install.php" );}//Smartyrequire_once ( "libs/Smarty.class.php" );$smarty = new Smarty;$smarty->use_sub_dirs = true;$smarty->assign( "display_result", false );$smarty->assign( "error", false );$smarty->assign( "save", false );$smarty->assign( "upd", false );$smarty->assign( "meld", "" );$smarty->assign( "h1", "" );$smarty->assign( "mode", "" );$smarty->assign( "db_meld", "" );$smarty->assign( "u_type", 0 );$smarty->assign( "id", 0 );$smarty->assign( "u_name", "" );$smarty->assign( "disabled2", "" );function smarty_block_dynamic( $param, $content, &$smarty ){return $content;}$smarty->register_block( 'dynamic', 'smarty_block_dynamic', false );//DB Connectionrequire_once ( "connect.php" );//PEAR Packagesrequire_once ( "Text/Password.php" );require_once ( "I18Nv2.php" );require_once ( "Auth.php" );require_once ( "Mail.php" );require_once ( "Translation2.php" );require_once ( "Log.php" );$params_tr["strings_default_table"] = "i18n_%s";$params_tr["string_text_col"] = "string";$tr = &Translation2::factory( "db", $db, $params_tr );$mail = &Mail::factory( "mail", array() );//require_once ( "user.class.php" );require_once ( "config.php" );$config = new Conf();$year = $config->year;$loc = &I18Nv2::createLocale( "en_US" );require_once ( "functions.php" );//require_once ( "spiele.php" );require_once ( "teams.php" );require_once ( "orte.php" );require_once ( "gruppen.php" );require_once ( "types.php" );//$l_g=new spiele(2*$config->groups*$config->teams_per_group);$l_g = new spiele( $config->game_count );if ( $l_g->g_g1 != $l_g->g_g2 ){define( "FINISHED", true );$smarty->assign( "display_result", true );$smarty->assign( "FINISHED", true );$smarty->assign( "disabled2", "disabled=\"disabled\"" );}$smarty->assign( "version", $config->version );if ( $config->logo ){$smarty->assign( "logo", "images/$config->logo" );}$max_anz = $config->max_anz;$u = new User( "", "" );$tr = &$tr->getDecorator( 'Lang' );$tr->setOption( 'fallbackLang', 'en' );$tr->setPageID( "common" );$tr->setLang( $u->u_lang );$common = $tr->getPage();foreach ( $common as $key => $value ){$smarty->assign( strtoupper("L_$key"), $value );}if ( !defined("IN_ADMIN") ){$show = false;}else{$show = true;}$type = $common["$config->type"];$f = sprintf( $common["finished"], $type );$smarty->assign( "L_FINISHED", $f );$a = user_login( $show );if ( $a->getUserName() ){$u = $u->UserData( $a->getUserName() );}$u_loc = ( $u->u_lang == "de" ) ? "de_DE" : "en_US";$tr->setPageID( "common" );$tr->setLang( $u->u_lang );$common = $tr->getPage();$type = $common["$config->type"];foreach ( $common as $key => $value ){$smarty->assign( strtoupper("L_$key"), $value );}$loc = &I18Nv2::createLocale( "$u_loc" );$date = $loc->formatDateTime( time() );$smarty->assign( "date", $date );$smarty->assign( "year", $year );$smarty->assign( "L_TYPE", $type );$logger = create_logger();?>