gamesign -> index.php -> config.inc -> join.inc -> logout.inc -> admin/create_myleague.sql ### ->gamesigntext -> index.php ### index.php ###$league_banner=""; -> style.dat ###$game_boxicon=""; -> style.dat ###$game_miniicon=""; -> style.dat ###$league_admin=""; ==> index.php ###$league_forum="" ==> index.php #### ,,,; ==> /games/default/ladder.cfg ==> admin/create_myleague.sql #$pfadtop = "html/topblank.htm"; #$pfaddown = "html/topdown.htm"; ###system("scripts/ranking_month_recompute.pl $game $kind$kindlk"); fehlt bitte ergänzen! ###############MYLEAGUE Start Seite für Organisatoren $commsitesflag = 1; $PATH_TRANSLATED = getcwd(); $temparray = explode("/",$PATH_TRANSLATED); #$bandnumber = $game = $temparray[count($temparray)-1]; $bandnumber = $game = 175; include("admin/dbconn.inc"); $whereclausel = " id = '$game' "; include("inc/loread.inc"); $whereclausel = " userid = '$lomemberid[0]' "; $gamesign = $losign[0]; include("inc/mread.inc"); $league_admin = $memail[0]; #$league_forum = $loforumlink[0]; $league_member_number = "$loid[0]"; #$whereclausel = " id = '0' "; #include("inc/rread.inc"); #if ($anzahlplayers == 1) #{ $league_memberid = $loid[0]; #} #$league_forumid = ""; if($page == "logout") { setcookie("cook${game}member",'',-1,"/"); setcookie("cook${game}session",'',-1,"/"); setcookie("cook${game}id","",time(),"/"); setcookie("cook${game}flag",'',time(),"/"); setcookie("cook${game}ip",'',time(),"/"); setcookie("cook${game}lk",'',time(),"/"); setcookie("cook${game}status","0",time()+7776000,"/"); } #session_name("${game}MYLEAGUE"); session_name("MYLEAGUE"); #session_save_path("/var/tmp/myleague$game/"); session_start(); $DISPLAY_TIME_ZONE = "Europe/Berlin"; date_default_timezone_set("Europe/Berlin"); if (date("Y") % 4 == 0) { $tage = array(32,30,32,31,32,31,32,32,31,32,31,32); } else { $tage = array(32,29,32,31,32,31,32,32,31,32,31,32); } $HTTP_HOST = $_SERVER["HTTP_HOST"]; $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT']; $REMOTE_ADDR = $_SERVER["REMOTE_ADDR"]; $HTTP_ACCEPT_LANGUAGE = $_SERVER['HTTP_ACCEPT_LANGUAGE']; #include("admin/dbconncomm.inc"); $metarefresh = ""; $charset = '0123456789'.'abcdefghijkmnopqrstuvwxyz'.'ABCDEFGHJKLMNOPQRSTUVWXYZ'; $world_timezones = array('-12:00','-11:00','-10:00','-9:30','-9:00','-8:00','-7:00','-6:00','-5:00','-4:00','3:30','-3:00','-2:00','-1:00','+0:00','+1:00','+2:00','+3:00','+3:30','+4:00','+4:30','+5:00','+5:30','+5:45','+6:00','+6:30','+7:00','+8:00','+8:45','+9:00','+9:30','+10:00','+10:30','+11:00','+11:30','+12:00','+12:45','+13:00','+14:00'); $month_en=array("January","February","March","April","May","June","July","August","September","October","November","December"); $month_fr=array("janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"); $month_de=array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"); $weekdays_de=array("Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"); $weekdays_en=array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"); $weekdays_fr=array("lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"); $akt_time=time(); #20090607 $akt_year = date("Y"); $akt_timezone = date("O"); $akt_timezonedisplay = date("P"); $akt_month = date("m"); $akt_day = date("d"); $akt_hours = date("H"); $akt_hours_w_daytime = date("h"); $akt_daytime = date("A"); $akt_min = date("i"); $akt_sec = date("s"); $act_date_sql = "$akt_year-$akt_month-$akt_day"; $act_time_sql = "$akt_hours:$akt_min:$akt_sec"; $act_date_int = $akt_day."/".$akt_month."/".$akt_year; $act_time_int = $akt_hours_w_daytime.":".$akt_min." ".$akt_daytime; $act_timedate_int = $act_date_int.", ".$act_time_int; $owndomain="https://$HTTP_HOST/"; $ownurl="my-bandpage.com/"; $own_domain="https://$HTTP_HOST/"; #$filetypes = array("jpg","zip","bmp","gif","jpeg","rar","gz","tar","cpio","png","doc","txt","xls","pdf","zip"); $accesslog = 'access.log'; $pagehtmfile = 'page.cfg'; $page = $_GET['page']; $getstyle = $_GET['style']; $setlk = $_GET['setlk']; $setaudio = $_GET['setaudio']; $kindfile = $_POST['kindfile']; $MAX_FILE_SIZE = $_POST['MAX_FILE_SIZE']; $game="$game"; $games=array("$game"); $gametext=array("$game" => "$loleaguename[0]"); $usertext = ""; $sqltext = ""; $rc = 0; $chatnotifyfile = "chat/news"; $chatteamnotifyfile = "chat/newsteam"; $accesslog = 'access.log'; $iplog = 'ip.log'; $histlog = 'history.log'; #$gamerslog = 'games.log'; $is_ladderadmin=false; $is_admin=false; $isrss=false; include("inc/config.inc"); $is_premio=false; $is_sepcial=false; #$whereclausel = " memberid = '$league_member_number' "; #include("inc/pmylread.inc"); #if ($pmylvertrag[0] == "prem" ) #{ # $is_premio=true; #} #if ($pmylvertrag[0] == "gold" ) #{ # $is_premio=true; # $is_sepcial=true; #} #$is_premio=false; #$is_sepcial=false; #if ($memberflag == "Premium" or $memberflag == "Admin" or $memberflag == "Staff") #{ # $is_premio=true; #} #if ($memberflag == "Special" or $memberflag == "Admin" or $memberflag == "Staff") #{ # $is_special=true; #} $flagseitegefunden = false; ##################### include("inc/include_pages.inc"); include("bands/band.inc"); #$lefthtm = "designs/links.htm"; #$righthtm1 = "designs/default/friendsbox.htm"; #$righthtm2 = "templates/default/rechts$lk.htm"; $pfadtop = "designs/$gamesign/top$getstyle.htm"; $pfaddown = "designs/$gamesign/right$getstyle.htm"; #$topadd = "html/importantlinks.htm"; #$righttop1 = "html/matchfinderbox.htm"; #$righthtm1 = convertUmlaute2(implode("",file("templates/main/main_rechts1.htm"))); #$righthtm2 = convertUmlaute2(implode("",file("templates/main/main_rechts2.htm"))); if(!isset($page) or empty($page)) { include("inc/main.inc"); include("$pfadtop"); $flagseitegefunden =true; } elseif($page=="main") { include("inc/main.inc"); include("$pfadtop"); $flagseitegefunden =true; } else { foreach ($pages_base as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); if ($memberid) { $za = 0; foreach($gamespages as $temppage1) { if ($temppage1 == $page and ($gamespagesfind[$za] == "" or ${$gamespagesfind[$za]}) and ($gamespagesfind1[$za] == "" or ${$gamespagesfind1[$za]})) { $chattext = ""; $ccolorcode = $page; $chatsendid = ${$gamespagesfind[$za]}; $chatsendname = ${$gamespagesfind1[$za]}; $posttime = date("h:i a"); $kindwrite = "Insert"; include("inc/chatnewwrite.inc"); } $za++; } } include("$pfadtop"); $flagseitegefunden =true; } } if ( $flagseitegefunden == false and $is_premio ) { foreach ($pages_premium as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); include("$pfadtop"); $flagseitegefunden =true; } } } if ( $flagseitegefunden == false and $is_special ) { foreach ($pages_special as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); include("$pfadtop"); $flagseitegefunden =true; } } } } if ($mgefunden == 1 and $flagseitegefunden == false) { foreach ($pages_basemember as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); $za = 0; foreach($gamespages as $temppage1) { if ($temppage1 == $page and ($gamespagesfind[$za] == "" or ${$gamespagesfind[$za]}) and ($gamespagesfind1[$za] == "" or ${$gamespagesfind1[$za]})) { $chattext = ""; $ccolorcode = $page; $chatsendid = ${$gamespagesfind[$za]}; $chatsendname = ${$gamespagesfind1[$za]}; $posttime = date("h:i a"); $kindwrite = "Insert"; include("inc/chatnewwrite.inc"); } $za++; } include("$pfadtop"); $flagseitegefunden =true; } } if ( $flagseitegefunden == false and $is_premio ) { foreach ($pages_premiummember as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); $za = 0; foreach($gamespages as $temppage1) { if ($temppage1 == $page and ($gamespagesfind[$za] == "" or ${$gamespagesfind[$za]}) and ($gamespagesfind1[$za] == "" or ${$gamespagesfind1[$za]})) { $chattext = ""; $ccolorcode = $page; $chatsendid = ${$gamespagesfind[$za]}; $chatsendname = ${$gamespagesfind1[$za]}; $posttime = date("h:i a"); $kindwrite = "Insert"; include("inc/chatnewwrite.inc"); } $za++; } include("$pfadtop"); $flagseitegefunden =true; } } } if ( $flagseitegefunden == false and $is_special ) { foreach ($pages_specialmember as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); include("$pfadtop"); $flagseitegefunden =true; } } } if ( $flagseitegefunden == false and $is_ladderadmin ) { foreach ($pages_baseadmin as $temppage) { if ($temppage == $page) { include("inc/$temppage.inc"); include("$pfadtop"); $flagseitegefunden =true; } } } } #else #{ # include("$pfadtop"); # include("errorpages/sorry.htm"); # include("$pfaddown"); # $flagseitegefunden =true; #} if ($flagseitegefunden == false ) { $flag_pagenotfound=false; foreach($pages_baseadmin as $temppage) { if ($temppage == $page) { $flag_pagenotfound=true; } } foreach($pages_basemember as $temppage) { if ($temppage == $page) { $flag_pagenotfound=true; } } foreach($pages_premium as $temppage) { if ($temppage == $page) { $flag_pagenotfound=true; } } foreach($pages_premiummember as $temppage) { if ($temppage == $page) { $flag_pagenotfound=true; } } foreach($pages_premiummember as $temppage) { if ($temppage == $page) { $flag_pagenotfound=true; } } if ($flag_pagenotfound) { $contenttext = $defaulttext57; if (! $memberid) { $metarefresh = "index.php?page=login"; $metarefreshtime = "2"; } $temppage = "designs/webadmin/sorry.htm"; include("$pfadtop"); } else { $contenttext = $defaulttext57; $temppage = "designs/webadmin/pagenotfound.htm"; include("$pfadtop"); } $flagseitegefunden =true; } ?>