Version 0.9.9
- several bugfixes - Code cleaning
This commit is contained in:
140
xml/de.txt
140
xml/de.txt
@@ -1,71 +1,71 @@
|
||||
dir=ltr
|
||||
foot=Copyright © 2011 phpBB3 Football Extension.
|
||||
s_title=Spielpläne dieser Seite
|
||||
l_title=Spielplan
|
||||
h1l=Der Spielplan
|
||||
h1s=Auf dieser Seite zum Download angebotene Spielpläne
|
||||
h3-pointswins=Punkte und Gewinne
|
||||
link-l=Sprache
|
||||
l-l=Liga
|
||||
nls=Keine Spielpläne vorhanden
|
||||
nll=Keine Spielplandaten vorhanden
|
||||
s-fixl=Spielpläne der Saison
|
||||
s-season=Saison
|
||||
slg=Sprache auswählen:
|
||||
t-leagues=Ligadaten
|
||||
t-matchdays=Spieltage
|
||||
t-matches=Spielpaarungen
|
||||
t-seasons=Saisondaten
|
||||
t-teams=Mannschaften
|
||||
tf-match_datetime=Datum
|
||||
tf-match_no=SpNr
|
||||
tf-match_matchday=SpTag
|
||||
tf-match=Begegnung
|
||||
tf-result=Ergebnis
|
||||
tf-extratime=Verl.
|
||||
tf-match_status=Status
|
||||
tf-group=Gruppe
|
||||
tf-ko=KO
|
||||
tf-formula=Formel
|
||||
tf-team_id=Team-ID
|
||||
tf-team_name=Mannschaftsbezeichnung
|
||||
tf-team_name_short=Kurzbezeichnung
|
||||
tf-team_symbol=Wappen
|
||||
tf-group_id=Gruppe
|
||||
tf-participate=Teiln. bis Spieltag
|
||||
tf-league=Saison
|
||||
tf-league_name=Liga Bezeichnung
|
||||
tf-league_name_short=Liga Kürzel
|
||||
tf-league_type=Typ
|
||||
tf-matchdays=Spieltage
|
||||
tf-matches_on_matchday=Spiele/Sptag
|
||||
tf-win_result=G. Volltreffer
|
||||
tf-win_result_02=G. Volltreffer 02
|
||||
tf-win_matchday=G. Spieltag
|
||||
tf-win_season=G. Saison
|
||||
tf-points_mode=P. Modus
|
||||
tf-points_result=P. Volltreffer
|
||||
tf-points_tendency=P. Tendenz
|
||||
tf-points_diff=P. Differenz
|
||||
tf-points_last=P. Nichttipper
|
||||
tf-join_by_user=User Beitritt
|
||||
tf-join_in_season=Beitritt in Saison
|
||||
tf-bet_in_time=Tippen bis Spielbeginn
|
||||
tf-rules_post_id=Regeln
|
||||
tf-bet_ko_type=Tippart
|
||||
tf-bet_points=Einsatz
|
||||
tf-matchday=Spieltag
|
||||
tf-status=Status
|
||||
tf-delivery_date=1. Abgabetermin
|
||||
tf-delivery_date_2=2. Abgabetermin
|
||||
tf-delivery_date_3=3. Abgabetermin
|
||||
tf-matchday_name=Spieltagsbezeichnung
|
||||
tf-matches=Anzahl Spiele
|
||||
tf-season=Saison
|
||||
tf-season_name=Saison Bezeichnung
|
||||
tf-season_name_short=Saison Kurzbezeichnung
|
||||
tnl=Keine Ligadaten vorhanden
|
||||
tnmd=Keine Spieltagsdaten vorhanden
|
||||
tnm=Keine Spiele vorhanden
|
||||
tns=Keine Saisondaten vorhanden
|
||||
dir=ltr
|
||||
foot=Copyright © 2011 phpBB3 Football Extension.
|
||||
s_title=Spielpläne dieser Seite
|
||||
l_title=Spielplan
|
||||
h1l=Der Spielplan
|
||||
h1s=Auf dieser Seite zum Download angebotene Spielpläne
|
||||
h3-pointswins=Punkte und Gewinne
|
||||
link-l=Sprache
|
||||
l-l=Liga
|
||||
nls=Keine Spielpläne vorhanden
|
||||
nll=Keine Spielplandaten vorhanden
|
||||
s-fixl=Spielpläne der Saison
|
||||
s-season=Saison
|
||||
slg=Sprache auswählen:
|
||||
t-leagues=Ligadaten
|
||||
t-matchdays=Spieltage
|
||||
t-matches=Spielpaarungen
|
||||
t-seasons=Saisondaten
|
||||
t-teams=Mannschaften
|
||||
tf-match_datetime=Datum
|
||||
tf-match_no=SpNr
|
||||
tf-match_matchday=SpTag
|
||||
tf-match=Begegnung
|
||||
tf-result=Ergebnis
|
||||
tf-extratime=Verl.
|
||||
tf-match_status=Status
|
||||
tf-group=Gruppe
|
||||
tf-ko=KO
|
||||
tf-formula=Formel
|
||||
tf-team_id=Team-ID
|
||||
tf-team_name=Mannschaftsbezeichnung
|
||||
tf-team_name_short=Kurzbezeichnung
|
||||
tf-team_symbol=Wappen
|
||||
tf-group_id=Gruppe
|
||||
tf-participate=Teiln. bis Spieltag
|
||||
tf-league=Saison
|
||||
tf-league_name=Liga Bezeichnung
|
||||
tf-league_name_short=Liga Kürzel
|
||||
tf-league_type=Typ
|
||||
tf-matchdays=Spieltage
|
||||
tf-matches_on_matchday=Spiele/Sptag
|
||||
tf-win_result=G. Volltreffer
|
||||
tf-win_result_02=G. Volltreffer 02
|
||||
tf-win_matchday=G. Spieltag
|
||||
tf-win_season=G. Saison
|
||||
tf-points_mode=P. Modus
|
||||
tf-points_result=P. Volltreffer
|
||||
tf-points_tendency=P. Tendenz
|
||||
tf-points_diff=P. Differenz
|
||||
tf-points_last=P. Nichttipper
|
||||
tf-join_by_user=User Beitritt
|
||||
tf-join_in_season=Beitritt in Saison
|
||||
tf-bet_in_time=Tippen bis Spielbeginn
|
||||
tf-rules_post_id=Regeln
|
||||
tf-bet_ko_type=Tippart
|
||||
tf-bet_points=Einsatz
|
||||
tf-matchday=Spieltag
|
||||
tf-status=Status
|
||||
tf-delivery_date=1. Abgabetermin
|
||||
tf-delivery_date_2=2. Abgabetermin
|
||||
tf-delivery_date_3=3. Abgabetermin
|
||||
tf-matchday_name=Spieltagsbezeichnung
|
||||
tf-matches=Anzahl Spiele
|
||||
tf-season=Saison
|
||||
tf-season_name=Saison Bezeichnung
|
||||
tf-season_name_short=Saison Kurzbezeichnung
|
||||
tnl=Keine Ligadaten vorhanden
|
||||
tnmd=Keine Spieltagsdaten vorhanden
|
||||
tnm=Keine Spiele vorhanden
|
||||
tns=Keine Saisondaten vorhanden
|
||||
tnt=Keine Mannschaftsdaten vorhanden
|
||||
142
xml/en.txt
142
xml/en.txt
@@ -1,71 +1,71 @@
|
||||
dir=ltr
|
||||
foot=Copyright © 2011 phpBB3 Football Extension.
|
||||
s_title=All fixtures of this site
|
||||
l_title=Fixture list
|
||||
h1l=The fixture list
|
||||
h1s=On this page downloadable fixtures
|
||||
h3-pointswins=Points and wins
|
||||
link-l=Language
|
||||
l-l=League
|
||||
nls=No fixture lists available
|
||||
nll=No fixture list data available
|
||||
s-fixl=Fixture Lists of the season
|
||||
s-season=Season
|
||||
slg=Choose language:
|
||||
t-leagues=League data
|
||||
t-matchdays=Rounds
|
||||
t-matches=Fixtures
|
||||
t-seasons=Season data
|
||||
t-teams=Teams
|
||||
tf-match_datetime=Date
|
||||
tf-match_no=MatchNo
|
||||
tf-match_matchday=Round
|
||||
tf-match=Match
|
||||
tf-result=Score
|
||||
tf-extratime=Extratime
|
||||
tf-match_status=Status
|
||||
tf-group=Group
|
||||
tf-ko=KO
|
||||
tf-formula=Formula
|
||||
tf-team_id=Team ID
|
||||
tf-team_name=Team Name
|
||||
tf-team_name_short=Shortname
|
||||
tf-team_symbol=Coat of Arms
|
||||
tf-group_id=Group
|
||||
tf-participate=To participate
|
||||
tf-league=Season
|
||||
tf-league_name=League Name
|
||||
tf-league_name_short=League shortcut
|
||||
tf-league_type=Type
|
||||
tf-matchdays=Rounds
|
||||
tf-matches_on_matchday=Games / Round
|
||||
tf-win_result=W. hit
|
||||
tf-win_result_02=W. hit 02
|
||||
tf-win_matchday=W. round
|
||||
tf-win_season=W. season
|
||||
tf-points_mode=P. mode
|
||||
tf-points_result=P. hit
|
||||
tf-points_tendency=P. tendency
|
||||
tf-points_diff=P. difference
|
||||
tf-points_last=P. no bet
|
||||
tf-join_by_user=User accession
|
||||
tf-join_in_season=Accession season
|
||||
tf-bet_in_time=Tap to kick-off
|
||||
tf-rules_post_id=Rules
|
||||
tf-bet_ko_type=Bet type
|
||||
tf-bet_points=Bet
|
||||
tf-matchday=Round
|
||||
tf-status=Status
|
||||
tf-delivery_date=1. Delivery
|
||||
tf-delivery_date_2=2. Delivery
|
||||
tf-delivery_date_3=3. Delivery
|
||||
tf-matchday_name=Round Description
|
||||
tf-matches=No of matches
|
||||
tf-season=Season
|
||||
tf-season_name=Season name
|
||||
tf-season_name_short=Season shortname
|
||||
tnl=No league available
|
||||
tnmd=No round available
|
||||
tnm=No matches available
|
||||
tns=No season available
|
||||
tnt=No team available
|
||||
dir=ltr
|
||||
foot=Copyright © 2011 phpBB3 Football Extension.
|
||||
s_title=All fixtures of this site
|
||||
l_title=Fixture list
|
||||
h1l=The fixture list
|
||||
h1s=On this page downloadable fixtures
|
||||
h3-pointswins=Points and wins
|
||||
link-l=Language
|
||||
l-l=League
|
||||
nls=No fixture lists available
|
||||
nll=No fixture list data available
|
||||
s-fixl=Fixture Lists of the season
|
||||
s-season=Season
|
||||
slg=Choose language:
|
||||
t-leagues=League data
|
||||
t-matchdays=Rounds
|
||||
t-matches=Fixtures
|
||||
t-seasons=Season data
|
||||
t-teams=Teams
|
||||
tf-match_datetime=Date
|
||||
tf-match_no=MatchNo
|
||||
tf-match_matchday=Round
|
||||
tf-match=Match
|
||||
tf-result=Score
|
||||
tf-extratime=Extratime
|
||||
tf-match_status=Status
|
||||
tf-group=Group
|
||||
tf-ko=KO
|
||||
tf-formula=Formula
|
||||
tf-team_id=Team ID
|
||||
tf-team_name=Team Name
|
||||
tf-team_name_short=Shortname
|
||||
tf-team_symbol=Coat of Arms
|
||||
tf-group_id=Group
|
||||
tf-participate=To participate
|
||||
tf-league=Season
|
||||
tf-league_name=League Name
|
||||
tf-league_name_short=League shortcut
|
||||
tf-league_type=Type
|
||||
tf-matchdays=Rounds
|
||||
tf-matches_on_matchday=Games / Round
|
||||
tf-win_result=W. hit
|
||||
tf-win_result_02=W. hit 02
|
||||
tf-win_matchday=W. round
|
||||
tf-win_season=W. season
|
||||
tf-points_mode=P. mode
|
||||
tf-points_result=P. hit
|
||||
tf-points_tendency=P. tendency
|
||||
tf-points_diff=P. difference
|
||||
tf-points_last=P. no bet
|
||||
tf-join_by_user=User accession
|
||||
tf-join_in_season=Accession season
|
||||
tf-bet_in_time=Tap to kick-off
|
||||
tf-rules_post_id=Rules
|
||||
tf-bet_ko_type=Bet type
|
||||
tf-bet_points=Bet
|
||||
tf-matchday=Round
|
||||
tf-status=Status
|
||||
tf-delivery_date=1. Delivery
|
||||
tf-delivery_date_2=2. Delivery
|
||||
tf-delivery_date_3=3. Delivery
|
||||
tf-matchday_name=Round Description
|
||||
tf-matches=No of matches
|
||||
tf-season=Season
|
||||
tf-season_name=Season name
|
||||
tf-season_name_short=Season shortname
|
||||
tnl=No league available
|
||||
tnmd=No round available
|
||||
tnm=No matches available
|
||||
tns=No season available
|
||||
tnt=No team available
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
de=Deutsch
|
||||
en=English
|
||||
de=Deutsch
|
||||
en=English
|
||||
|
||||
@@ -1,100 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Football Extension by football XSD file v0.9.4 copyright 2016 football.
|
||||
$Id: league-data-0.9.4.xsd 1 2016-01-01 11:11:11Z football $ -->
|
||||
<xs:schema id="league-data" targetNamespace="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd" xmlns="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
|
||||
<xsd:element name="league-data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="footb_seasons">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="season_name" type="xsd:string" />
|
||||
<xsd:element name="season_name_short" type="xsd:string" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="footb_leagues">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="league_name" type="xsd:string" />
|
||||
<xsd:element name="league_name_short" type="xsd:string" />
|
||||
<xsd:element name="league_type" type="xsd:int" />
|
||||
<xsd:element name="matchdays" type="xsd:int" />
|
||||
<xsd:element name="matches_on_matchday" type="xsd:int" />
|
||||
<xsd:element name="win_result" type="xsd:int" />
|
||||
<xsd:element name="win_result_02" type="xsd:int" />
|
||||
<xsd:element name="win_matchday" type="xsd:int" />
|
||||
<xsd:element name="win_season" type="xsd:int" />
|
||||
<xsd:element name="points_mode" type="xsd:int" />
|
||||
<xsd:element name="points_result" type="xsd:int" />
|
||||
<xsd:element name="points_tendency" type="xsd:int" />
|
||||
<xsd:element name="points_diff" type="xsd:int" />
|
||||
<xsd:element name="points_last" type="xsd:int" />
|
||||
<xsd:element name="join_by_user" type="xsd:int" />
|
||||
<xsd:element name="join_in_season" type="xsd:int" />
|
||||
<xsd:element name="bet_in_time" type="xsd:int" />
|
||||
<xsd:element name="rules_post_id" type="xsd:int" />
|
||||
<xsd:element name="bet_ko_type" type="xsd:int" />
|
||||
<xsd:element name="bet_points" type="xsd:int" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element maxOccurs="unbounded" name="footb_matchdays">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="matchday" type="xsd:int" />
|
||||
<xsd:element name="status" type="xsd:int" />
|
||||
<xsd:element name="delivery_date" type="xsd:dateTime" />
|
||||
<xsd:element name="delivery_date_2" type="xsd:string" />
|
||||
<xsd:element name="delivery_date_3" type="xsd:string" />
|
||||
<xsd:element name="matchday_name" type="xsd:string" />
|
||||
<xsd:element name="matches" type="xsd:int" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element maxOccurs="unbounded" name="footb_teams">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="team_id" type="xsd:int" />
|
||||
<xsd:element name="team_name" type="xsd:string" />
|
||||
<xsd:element name="team_name_short" type="xsd:string" />
|
||||
<xsd:element name="team_symbol" type="xsd:string" />
|
||||
<xsd:element name="group_id" type="xsd:string" />
|
||||
<xsd:element name="matchday" type="xsd:int" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element maxOccurs="unbounded" name="footb_matches">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="match_no" type="xsd:int" />
|
||||
<xsd:element name="team_id_home" type="xsd:int" />
|
||||
<xsd:element name="team_id_guest" type="xsd:int" />
|
||||
<xsd:element name="goals_home" type="xsd:int" />
|
||||
<xsd:element name="goals_guest" type="xsd:int" />
|
||||
<xsd:element name="matchday" type="xsd:int" />
|
||||
<xsd:element name="status" type="xsd:int" />
|
||||
<xsd:element name="match_datetime" type="xsd:dateTime" />
|
||||
<xsd:element name="group_id" type="xsd:string" />
|
||||
<xsd:element name="formula_home" type="xsd:string" />
|
||||
<xsd:element name="formula_guest" type="xsd:string" />
|
||||
<xsd:element name="ko_match" type="xsd:int" />
|
||||
<xsd:element name="goals_overtime_home" type="xsd:string" />
|
||||
<xsd:element name="goals_overtime_guest" type="xsd:string" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Football Extension by football XSD file v0.9.4 copyright 2016 football.
|
||||
$Id: league-data-0.9.4.xsd 1 2016-01-01 11:11:11Z football $ -->
|
||||
<xs:schema id="league-data" targetNamespace="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd" xmlns="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
|
||||
<xsd:element name="league-data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="footb_seasons">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="season_name" type="xsd:string" />
|
||||
<xsd:element name="season_name_short" type="xsd:string" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="footb_leagues">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="league_name" type="xsd:string" />
|
||||
<xsd:element name="league_name_short" type="xsd:string" />
|
||||
<xsd:element name="league_type" type="xsd:int" />
|
||||
<xsd:element name="matchdays" type="xsd:int" />
|
||||
<xsd:element name="matches_on_matchday" type="xsd:int" />
|
||||
<xsd:element name="win_result" type="xsd:int" />
|
||||
<xsd:element name="win_result_02" type="xsd:int" />
|
||||
<xsd:element name="win_matchday" type="xsd:int" />
|
||||
<xsd:element name="win_season" type="xsd:int" />
|
||||
<xsd:element name="points_mode" type="xsd:int" />
|
||||
<xsd:element name="points_result" type="xsd:int" />
|
||||
<xsd:element name="points_tendency" type="xsd:int" />
|
||||
<xsd:element name="points_diff" type="xsd:int" />
|
||||
<xsd:element name="points_last" type="xsd:int" />
|
||||
<xsd:element name="join_by_user" type="xsd:int" />
|
||||
<xsd:element name="join_in_season" type="xsd:int" />
|
||||
<xsd:element name="bet_in_time" type="xsd:int" />
|
||||
<xsd:element name="rules_post_id" type="xsd:int" />
|
||||
<xsd:element name="bet_ko_type" type="xsd:int" />
|
||||
<xsd:element name="bet_points" type="xsd:int" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element maxOccurs="unbounded" name="footb_matchdays">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="matchday" type="xsd:int" />
|
||||
<xsd:element name="status" type="xsd:int" />
|
||||
<xsd:element name="delivery_date" type="xsd:dateTime" />
|
||||
<xsd:element name="delivery_date_2" type="xsd:string" />
|
||||
<xsd:element name="delivery_date_3" type="xsd:string" />
|
||||
<xsd:element name="matchday_name" type="xsd:string" />
|
||||
<xsd:element name="matches" type="xsd:int" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element maxOccurs="unbounded" name="footb_teams">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="team_id" type="xsd:int" />
|
||||
<xsd:element name="team_name" type="xsd:string" />
|
||||
<xsd:element name="team_name_short" type="xsd:string" />
|
||||
<xsd:element name="team_symbol" type="xsd:string" />
|
||||
<xsd:element name="group_id" type="xsd:string" />
|
||||
<xsd:element name="matchday" type="xsd:int" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element maxOccurs="unbounded" name="footb_matches">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="season" type="xsd:int" />
|
||||
<xsd:element name="league" type="xsd:int" />
|
||||
<xsd:element name="match_no" type="xsd:int" />
|
||||
<xsd:element name="team_id_home" type="xsd:int" />
|
||||
<xsd:element name="team_id_guest" type="xsd:int" />
|
||||
<xsd:element name="goals_home" type="xsd:int" />
|
||||
<xsd:element name="goals_guest" type="xsd:int" />
|
||||
<xsd:element name="matchday" type="xsd:int" />
|
||||
<xsd:element name="status" type="xsd:int" />
|
||||
<xsd:element name="match_datetime" type="xsd:dateTime" />
|
||||
<xsd:element name="group_id" type="xsd:string" />
|
||||
<xsd:element name="formula_home" type="xsd:string" />
|
||||
<xsd:element name="formula_guest" type="xsd:string" />
|
||||
<xsd:element name="ko_match" type="xsd:int" />
|
||||
<xsd:element name="goals_overtime_home" type="xsd:string" />
|
||||
<xsd:element name="goals_overtime_guest" type="xsd:string" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
</xsd:schema>
|
||||
300
xml/league.php
300
xml/league.php
@@ -1,150 +1,150 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - Football Football
|
||||
* @copyright (c) 2016 football (http://football.bplaced.net)
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Automatically write the league as XML-file
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
// Stuff required to work with phpBB3
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../../../../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.' . $phpEx);
|
||||
|
||||
// Start session management
|
||||
$user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
$user->add_lang_ext('football/football', 'info_acp_update');
|
||||
include('../includes/constants.' . $phpEx);
|
||||
|
||||
if ($config['board_disable'])
|
||||
{
|
||||
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
||||
trigger_error($message);
|
||||
}
|
||||
|
||||
$season = $request->variable('season', 0);
|
||||
$league = $request->variable('league', 0);
|
||||
if (!$season or !$league)
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
$download = $request->variable('d', false);
|
||||
$string = xml_data($season, $league);
|
||||
|
||||
if ( $string == '')
|
||||
{
|
||||
trigger_error('Fehler! Die XML-Datei konnte nicht erzeugt werden.');
|
||||
}
|
||||
|
||||
if ($download)
|
||||
{
|
||||
// Download header
|
||||
header('Pragma: no-cache');
|
||||
header('Content-Type: application/xml name=\"league_' . $season . '_' . $league . '.xml');
|
||||
header('Content-disposition: attachment; filename=league_' . $season . '_' . $league . '.xml');
|
||||
}
|
||||
else
|
||||
{
|
||||
// XML header
|
||||
header ("content-type: text/xml");
|
||||
}
|
||||
echo $string;
|
||||
}
|
||||
|
||||
function xml_data($season, $league)
|
||||
{
|
||||
global $db, $phpbb_root_path, $phpEx, $table_prefix;
|
||||
|
||||
$xml_data = '';
|
||||
|
||||
$xml_league_data = xml_table($season, $league, 'FOOTB_SEASONS');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_LEAGUES');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHDAYS');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_TEAMS');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHES');
|
||||
|
||||
if ( $xml_league_data <> '' )
|
||||
{
|
||||
$xml_data = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . "\n";
|
||||
$xml_data .= '<?xml-stylesheet type="text/xsl" href="league-data.prosilver.xsl"?>' . "\n";
|
||||
$xml_data .= '<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->' . "\n";
|
||||
$xml_data .= '<league-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd">' . "\n";
|
||||
$xml_data .= $xml_league_data;
|
||||
$xml_data .= '</league-data>';
|
||||
}
|
||||
return $xml_data;
|
||||
}
|
||||
|
||||
|
||||
function xml_table($season, $league, $table)
|
||||
{
|
||||
global $db, $phpbb_root_path, $phpEx, $table_prefix;
|
||||
|
||||
$xml_table = '';
|
||||
$skip_fields = array("trend", "odd_1", "odd_x", "odd_2", "rating");
|
||||
|
||||
$table_name = constant($table);
|
||||
$where_league = ($table == 'FOOTB_SEASONS') ? '' : " AND league = $league";
|
||||
$sql = 'SELECT *
|
||||
FROM ' . $table_name . "
|
||||
WHERE season = $season
|
||||
$where_league
|
||||
ORDER BY 1, 2, 3;";
|
||||
if ( $result = $db->sql_query($sql) )
|
||||
{
|
||||
while($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$xml_table .= " <" . strtolower($table) . ">" . "\n";
|
||||
foreach($row as $fieldname => $value)
|
||||
{
|
||||
switch ($fieldname)
|
||||
{
|
||||
case 'win_result':
|
||||
case 'win_result_02':
|
||||
case 'win_matchday':
|
||||
case 'win_season':
|
||||
case 'points_last':
|
||||
case 'join_by_user':
|
||||
case 'join_in_season':
|
||||
case 'rules_post_id':
|
||||
case 'bet_points':
|
||||
{
|
||||
$value = 0;
|
||||
}
|
||||
break;
|
||||
case 'status':
|
||||
{
|
||||
// only match status 0-3
|
||||
$value = ($value > 3) ? $value - 3 : $value;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!in_array($fieldname, $skip_fields, TRUE) )
|
||||
{
|
||||
if (!isset($value) || is_null($value))
|
||||
{
|
||||
$xml_table .= " <$fieldname>'NULL'</$fieldname>" . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$xml_table .= " <$fieldname>" . $value . "</$fieldname>" . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
$xml_table .= " </" . strtolower($table) . ">" . "\n";
|
||||
}
|
||||
}
|
||||
return $xml_table;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - Football Football
|
||||
* @copyright (c) 2016 football (http://football.bplaced.net)
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Automatically write the league as XML-file
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
// Stuff required to work with phpBB3
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../../../../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.' . $phpEx);
|
||||
|
||||
// Start session management
|
||||
$user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
$user->add_lang_ext('football/football', 'info_acp_update');
|
||||
include('../includes/constants.' . $phpEx);
|
||||
|
||||
if ($config['board_disable'])
|
||||
{
|
||||
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
||||
trigger_error($message);
|
||||
}
|
||||
|
||||
$season = $request->variable('season', 0);
|
||||
$league = $request->variable('league', 0);
|
||||
if (!$season or !$league)
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
$download = $request->variable('d', false);
|
||||
$string = xml_data($season, $league);
|
||||
|
||||
if ( $string == '')
|
||||
{
|
||||
trigger_error('Fehler! Die XML-Datei konnte nicht erzeugt werden.');
|
||||
}
|
||||
|
||||
if ($download)
|
||||
{
|
||||
// Download header
|
||||
header('Pragma: no-cache');
|
||||
header('Content-Type: application/xml name=\"league_' . $season . '_' . $league . '.xml');
|
||||
header('Content-disposition: attachment; filename=league_' . $season . '_' . $league . '.xml');
|
||||
}
|
||||
else
|
||||
{
|
||||
// XML header
|
||||
header ("content-type: text/xml");
|
||||
}
|
||||
echo $string;
|
||||
}
|
||||
|
||||
function xml_data($season, $league)
|
||||
{
|
||||
global $db, $phpbb_root_path, $phpEx, $table_prefix;
|
||||
|
||||
$xml_data = '';
|
||||
|
||||
$xml_league_data = xml_table($season, $league, 'FOOTB_SEASONS');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_LEAGUES');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHDAYS');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_TEAMS');
|
||||
$xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHES');
|
||||
|
||||
if ( $xml_league_data <> '' )
|
||||
{
|
||||
$xml_data = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . "\n";
|
||||
$xml_data .= '<?xml-stylesheet type="text/xsl" href="league-data.prosilver.xsl"?>' . "\n";
|
||||
$xml_data .= '<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->' . "\n";
|
||||
$xml_data .= '<league-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd">' . "\n";
|
||||
$xml_data .= $xml_league_data;
|
||||
$xml_data .= '</league-data>';
|
||||
}
|
||||
return $xml_data;
|
||||
}
|
||||
|
||||
|
||||
function xml_table($season, $league, $table)
|
||||
{
|
||||
global $db, $phpbb_root_path, $phpEx, $table_prefix;
|
||||
|
||||
$xml_table = '';
|
||||
$skip_fields = array("trend", "odd_1", "odd_x", "odd_2", "rating");
|
||||
|
||||
$table_name = constant($table);
|
||||
$where_league = ($table == 'FOOTB_SEASONS') ? '' : " AND league = $league";
|
||||
$sql = 'SELECT *
|
||||
FROM ' . $table_name . "
|
||||
WHERE season = $season
|
||||
$where_league
|
||||
ORDER BY 1, 2, 3;";
|
||||
if ( $result = $db->sql_query($sql) )
|
||||
{
|
||||
while($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$xml_table .= " <" . strtolower($table) . ">" . "\n";
|
||||
foreach($row as $fieldname => $value)
|
||||
{
|
||||
switch ($fieldname)
|
||||
{
|
||||
case 'win_result':
|
||||
case 'win_result_02':
|
||||
case 'win_matchday':
|
||||
case 'win_season':
|
||||
case 'points_last':
|
||||
case 'join_by_user':
|
||||
case 'join_in_season':
|
||||
case 'rules_post_id':
|
||||
case 'bet_points':
|
||||
{
|
||||
$value = 0;
|
||||
}
|
||||
break;
|
||||
case 'status':
|
||||
{
|
||||
// only match status 0-3
|
||||
$value = ($value > 3) ? $value - 3 : $value;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!in_array($fieldname, $skip_fields, TRUE) )
|
||||
{
|
||||
if (!isset($value) || is_null($value))
|
||||
{
|
||||
$xml_table .= " <$fieldname>'NULL'</$fieldname>" . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$xml_table .= " <$fieldname>" . $value . "</$fieldname>" . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
$xml_table .= " </" . strtolower($table) . ">" . "\n";
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
return $xml_table;
|
||||
}
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Football Extension by football XSD file v0.9.4 copyright 2016 football.
|
||||
$Id: seasons-data-0.9.4.xsd 1 2016-01-01 11:11:11Z football $ -->
|
||||
<xs:schema id="seasons-data" targetNamespace="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd" xmlns="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
|
||||
<xs:element name="seasons-data">
|
||||
<xs:element name="code" type="xsd:string" />
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" name="season">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="season_id" type="xsd:int" />
|
||||
<xs:element name="season_name_short" type="xsd:string" />
|
||||
<xs:element maxOccurs="unbounded" name="league">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="league_id" type="xsd:int" />
|
||||
<xs:element name="league_name" type="xsd:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Football Extension by football XSD file v0.9.4 copyright 2016 football.
|
||||
$Id: seasons-data-0.9.4.xsd 1 2016-01-01 11:11:11Z football $ -->
|
||||
<xs:schema id="seasons-data" targetNamespace="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd" xmlns="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
|
||||
<xs:element name="seasons-data">
|
||||
<xs:element name="code" type="xsd:string" />
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" name="season">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="season_id" type="xsd:int" />
|
||||
<xs:element name="season_name_short" type="xsd:string" />
|
||||
<xs:element maxOccurs="unbounded" name="league">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="league_id" type="xsd:int" />
|
||||
<xs:element name="league_name" type="xsd:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
|
||||
202
xml/seasons.php
202
xml/seasons.php
@@ -1,101 +1,101 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - Football Football
|
||||
* @copyright (c) 2016 football (http://football.bplaced.net)
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Automatically write the seasons and leagues as XML-file
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
// Stuff required to work with phpBB3
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../../../../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.' . $phpEx);
|
||||
|
||||
// Start session management
|
||||
$user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
$user->add_lang_ext('football/football', 'info_acp_update');
|
||||
include('../includes/constants.' . $phpEx);
|
||||
|
||||
if ($config['board_disable'])
|
||||
{
|
||||
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
||||
trigger_error($message);
|
||||
}
|
||||
|
||||
//Check Access Code
|
||||
global $code;
|
||||
$code = $request->variable('code', '');
|
||||
if (strcmp($code, trim($config['football_update_code'])) <> 0)
|
||||
{
|
||||
trigger_error('ERROR_XML_CODE');
|
||||
}
|
||||
|
||||
$string = xml_seasons();
|
||||
|
||||
if ( $string == '')
|
||||
{
|
||||
trigger_error('ERROR_XML_CREATE');
|
||||
}
|
||||
|
||||
header ("content-type: text/xml");
|
||||
echo $string;
|
||||
}
|
||||
|
||||
function xml_seasons()
|
||||
{
|
||||
global $db, $phpbb_root_path, $phpEx, $table_prefix, $code, $ext_path;
|
||||
|
||||
$xml_seasons = '';
|
||||
$sql = 'SELECT s.season, s.season_name_short, l.league, l.league_name
|
||||
FROM ' . FOOTB_SEASONS . ' AS s
|
||||
JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = s.season)
|
||||
WHERE 1
|
||||
ORDER BY s.season DESC, l.league ASC;';
|
||||
$last_season = 0;
|
||||
$data = false;
|
||||
if ( $result = $db->sql_query($sql) )
|
||||
{
|
||||
$xml_seasons = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . "\n";
|
||||
$xml_seasons .= '<?xml-stylesheet type="text/xsl" href="seasons-data.prosilver.xsl"?>' . "\n";
|
||||
$xml_seasons .= '<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->' . "\n";
|
||||
$xml_seasons .= '<seasons-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd">' . "\n";
|
||||
$xml_seasons .= ' <code>' . $code . "</code>\n";
|
||||
|
||||
while($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if ( $row['season'] <> $last_season )
|
||||
{
|
||||
if ($data)
|
||||
{
|
||||
$xml_seasons .= ' </season>' . "\n";
|
||||
}
|
||||
$xml_seasons .= ' <season>' . "\n";
|
||||
$xml_seasons .= " <season_id>" . $row['season'] . "</season_id>" . "\n";
|
||||
$xml_seasons .= " <season_name_short>" . $row['season_name_short'] . "</season_name_short>" . "\n";
|
||||
$data = true;
|
||||
$last_season = $row['season'];
|
||||
}
|
||||
$xml_seasons .= ' <league>' . "\n";
|
||||
$xml_seasons .= " <league_id>" . $row['league'] . "</league_id>" . "\n";
|
||||
$xml_seasons .= " <league_name>" . $row['league_name'] . "</league_name>" . "\n";
|
||||
$xml_seasons .= ' </league>' . "\n";
|
||||
}
|
||||
if ($data)
|
||||
{
|
||||
$xml_seasons .= ' </season>' . "\n";
|
||||
}
|
||||
$xml_seasons .= '</seasons-data>' . "\n";
|
||||
}
|
||||
return $xml_seasons;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - Football Football
|
||||
* @copyright (c) 2016 football (http://football.bplaced.net)
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Automatically write the seasons and leagues as XML-file
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
// Stuff required to work with phpBB3
|
||||
define('IN_PHPBB', true);
|
||||
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../../../../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.' . $phpEx);
|
||||
|
||||
// Start session management
|
||||
$user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
$user->add_lang_ext('football/football', 'info_acp_update');
|
||||
include('../includes/constants.' . $phpEx);
|
||||
|
||||
if ($config['board_disable'])
|
||||
{
|
||||
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
||||
trigger_error($message);
|
||||
}
|
||||
|
||||
//Check Access Code
|
||||
global $code;
|
||||
$code = $request->variable('code', '');
|
||||
if (strcmp($code, trim($config['football_update_code'])) <> 0)
|
||||
{
|
||||
trigger_error('ERROR_XML_CODE');
|
||||
}
|
||||
|
||||
$string = xml_seasons();
|
||||
|
||||
if ( $string == '')
|
||||
{
|
||||
trigger_error('ERROR_XML_CREATE');
|
||||
}
|
||||
|
||||
header ("content-type: text/xml");
|
||||
echo $string;
|
||||
}
|
||||
|
||||
function xml_seasons()
|
||||
{
|
||||
global $db, $phpbb_root_path, $phpEx, $table_prefix, $code, $ext_path;
|
||||
|
||||
$xml_seasons = '';
|
||||
$sql = 'SELECT s.season, s.season_name_short, l.league, l.league_name
|
||||
FROM ' . FOOTB_SEASONS . ' AS s
|
||||
JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = s.season)
|
||||
WHERE 1
|
||||
ORDER BY s.season DESC, l.league ASC;';
|
||||
$last_season = 0;
|
||||
$data = false;
|
||||
if ( $result = $db->sql_query($sql) )
|
||||
{
|
||||
$xml_seasons = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . "\n";
|
||||
$xml_seasons .= '<?xml-stylesheet type="text/xsl" href="seasons-data.prosilver.xsl"?>' . "\n";
|
||||
$xml_seasons .= '<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->' . "\n";
|
||||
$xml_seasons .= '<seasons-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd">' . "\n";
|
||||
$xml_seasons .= ' <code>' . $code . "</code>\n";
|
||||
|
||||
while($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if ( $row['season'] <> $last_season )
|
||||
{
|
||||
if ($data)
|
||||
{
|
||||
$xml_seasons .= ' </season>' . "\n";
|
||||
}
|
||||
$xml_seasons .= ' <season>' . "\n";
|
||||
$xml_seasons .= " <season_id>" . $row['season'] . "</season_id>" . "\n";
|
||||
$xml_seasons .= " <season_name_short>" . $row['season_name_short'] . "</season_name_short>" . "\n";
|
||||
$data = true;
|
||||
$last_season = $row['season'];
|
||||
}
|
||||
$xml_seasons .= ' <league>' . "\n";
|
||||
$xml_seasons .= " <league_id>" . $row['league'] . "</league_id>" . "\n";
|
||||
$xml_seasons .= " <league_name>" . $row['league_name'] . "</league_name>" . "\n";
|
||||
$xml_seasons .= ' </league>' . "\n";
|
||||
}
|
||||
if ($data)
|
||||
{
|
||||
$xml_seasons .= ' </season>' . "\n";
|
||||
}
|
||||
$xml_seasons .= '</seasons-data>' . "\n";
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
return $xml_seasons;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user