mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-09-11 18:41:50 +00:00
Compare commits
120
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5aee02830d | ||
|
|
cb2e614604 | ||
|
|
5d126b0d28 | ||
|
|
69cf0e46ab | ||
|
|
df794966df | ||
|
|
12da0a9c00 | ||
|
|
ca827a049f | ||
|
|
70fb4d97b7 | ||
|
|
d39dc45cec | ||
|
|
c290986bac | ||
|
|
9541bc0652 | ||
|
|
50e6872214 | ||
|
|
a953ebf130 | ||
|
|
e8051bbcf6 | ||
|
|
a01efae2e9 | ||
|
|
04e4ea6cdf | ||
|
|
f787681fec | ||
|
|
541af8fb7f | ||
|
|
cc92b938be | ||
|
|
4c21d66fbe | ||
|
|
afb89dba6e | ||
|
|
c4d599834a | ||
|
|
dcea759ab2 | ||
|
|
19037d0729 | ||
|
|
bfc65d6030 | ||
|
|
2a307b0987 | ||
|
|
e8e6f7046d | ||
|
|
20ab5a44a9 | ||
|
|
a5357e4a51 | ||
|
|
68e16a3adb | ||
|
|
7d47b3ed24 | ||
|
|
cfc821f8ff | ||
|
|
582829331c | ||
|
|
d8ccd08843 | ||
|
|
57e92da771 | ||
|
|
7f85888a26 | ||
|
|
13ad52f221 | ||
|
|
a44564a40e | ||
|
|
ee4e817ad4 | ||
|
|
8a7ff6c234 | ||
|
|
8fb4ed1cdd | ||
|
|
a2243d9ccf | ||
|
|
308fbae4e5 | ||
|
|
d6d2a04ceb | ||
|
|
d7d6751b70 | ||
|
|
b112b4dc31 | ||
|
|
ac416c1822 | ||
|
|
c92774b27d | ||
|
|
b33a7e6a25 | ||
|
|
f86815dae5 | ||
|
|
43a03bbb09 | ||
|
|
f430c7d35d | ||
|
|
73c352f6cf | ||
|
|
c8c19ef8e0 | ||
|
|
cb0db3833c | ||
|
|
29e7ea7ffa | ||
|
|
426a582844 | ||
|
|
c1763536c9 | ||
|
|
507861fd56 | ||
|
|
168ad7dab4 | ||
|
|
c8483b077e | ||
|
|
c23ed24962 | ||
|
|
f70048f90f | ||
|
|
572ccee6fd | ||
|
|
fa03965b17 | ||
|
|
0376b46470 | ||
|
|
c8f419e00a | ||
|
|
116e4929b2 | ||
|
|
aed4d19c47 | ||
|
|
2faa38e2b8 | ||
|
|
dc0fcea945 | ||
|
|
e139ac4fc2 | ||
|
|
5919994a3e | ||
|
|
eccecedf95 | ||
|
|
9ed58f2916 | ||
|
|
1a9188c07b | ||
|
|
9435515088 | ||
|
|
4ada3a3b77 | ||
|
|
8391bf9df1 | ||
|
|
bac4c0ada4 | ||
|
|
ba50b0d6a4 | ||
|
|
e4c4694dcb | ||
|
|
e5de0030f2 | ||
|
|
8d364e0bfd | ||
|
|
eed02e396d | ||
|
|
40be14ad75 | ||
|
|
54965f9ef2 | ||
|
|
8780229435 | ||
|
|
a856a979aa | ||
|
|
578fb76ead | ||
|
|
b199b73d6f | ||
|
|
0d61e9a823 | ||
|
|
299b0bef4e | ||
|
|
57c158a770 | ||
|
|
84d07aecb1 | ||
|
|
5bd0735708 | ||
|
|
69e2032916 | ||
|
|
e5aede7cac | ||
|
|
7f8f842796 | ||
|
|
112511aa12 | ||
|
|
eacb0dc165 | ||
|
|
67f5f38d1a | ||
|
|
f65ec6be88 | ||
|
|
427bd545af | ||
|
|
986cd6d99e | ||
|
|
66baeb0f77 | ||
|
|
46474c6c40 | ||
|
|
a583131162 | ||
|
|
cb8b6ebe06 | ||
|
|
d41376494f | ||
|
|
d462137424 | ||
|
|
3cb3fa2b28 | ||
|
|
10807c7ea8 | ||
|
|
e469e70b97 | ||
|
|
522369bb14 | ||
|
|
91caf76a71 | ||
|
|
12037f9bac | ||
|
|
b1af98df54 | ||
|
|
fe885160d9 | ||
|
|
308bbd4d76 |
@@ -98,24 +98,3 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "No draft releases found"
|
echo "No draft releases found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Send notification to Teams
|
|
||||||
run: |
|
|
||||||
curl -H 'Content-Type: application/json' \
|
|
||||||
-d "{
|
|
||||||
\"@type\": \"MessageCard\",
|
|
||||||
\"@context\": \"http://schema.org/extensions\",
|
|
||||||
\"summary\": \"New Release\",
|
|
||||||
\"themeColor\": \"0076D7\",
|
|
||||||
\"title\": \"🚀 New Release: ${{ github.ref_name }}\",
|
|
||||||
\"sections\": [{
|
|
||||||
\"activityTitle\": \"Repository: ${{ github.repository }}\",
|
|
||||||
\"text\": \"${{ steps.release_notes_github.outputs.body }}\"
|
|
||||||
}],
|
|
||||||
\"potentialAction\": [{
|
|
||||||
\"@type\": \"OpenUri\",
|
|
||||||
\"name\": \"View Release\",
|
|
||||||
\"targets\": [{ \"os\": \"default\", \"uri\": \"https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}\" }]
|
|
||||||
}]
|
|
||||||
}" \
|
|
||||||
${{ secrets.TEAMS_WEBHOOK_URL }}
|
|
||||||
|
|||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# Builds the codebase and publishes a rolling dev-preview release (no version bump).
|
||||||
|
# The release uses a fixed tag "dev-preview" so each run replaces the previous one.
|
||||||
|
|
||||||
|
name: Sportsmanager Dev Preview
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: 'Branch to build'
|
||||||
|
required: true
|
||||||
|
default: 'sportsmanager2-prod'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.branch }}
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Run build script
|
||||||
|
run: npm run release
|
||||||
|
|
||||||
|
- name: Delete existing dev-preview release (if any)
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
run: |
|
||||||
|
release_id=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/repos/$REPO/releases/tags/dev-preview" \
|
||||||
|
| jq -r '.id // empty')
|
||||||
|
|
||||||
|
if [ -n "$release_id" ]; then
|
||||||
|
curl -s -X DELETE -H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/repos/$REPO/releases/$release_id"
|
||||||
|
echo "Deleted existing dev-preview release (ID: $release_id)"
|
||||||
|
else
|
||||||
|
echo "No existing dev-preview release found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Delete existing dev-preview tag (if any)
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
run: |
|
||||||
|
status=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||||
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/repos/$REPO/git/refs/tags/dev-preview")
|
||||||
|
|
||||||
|
if [ "$status" = "200" ]; then
|
||||||
|
curl -s -X DELETE -H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/repos/$REPO/git/refs/tags/dev-preview"
|
||||||
|
echo "Deleted existing dev-preview tag"
|
||||||
|
else
|
||||||
|
echo "No existing dev-preview tag found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Publish dev-preview release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev-preview
|
||||||
|
name: "Dev Preview (${{ github.run_number }})"
|
||||||
|
body: |
|
||||||
|
Automated dev preview build from branch `${{ inputs.branch }}`.
|
||||||
|
Commit: ${{ github.sha }}
|
||||||
|
Run: ${{ github.run_number }}
|
||||||
|
|
||||||
|
> This is a temporary preview release and will be replaced on the next run.
|
||||||
|
files: package/packages/com_sportsmanager.zip
|
||||||
|
draft: false
|
||||||
|
prerelease: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Generated
+19
-5
@@ -52,7 +52,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.0.tgz",
|
||||||
"integrity": "sha512-iV7Gwg0DePKvdDZZWRTkj4MW+6/AbVWd4ZCg+zk8H1RVt5xBpUZS6vLQWwb3pyLg4BFTaGiQCPoJ4Ibmbne4fA==",
|
"integrity": "sha512-iV7Gwg0DePKvdDZZWRTkj4MW+6/AbVWd4ZCg+zk8H1RVt5xBpUZS6vLQWwb3pyLg4BFTaGiQCPoJ4Ibmbne4fA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.10.4",
|
"@babel/code-frame": "^7.10.4",
|
||||||
"@babel/generator": "^7.12.0",
|
"@babel/generator": "^7.12.0",
|
||||||
@@ -2695,10 +2694,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001148",
|
"version": "1.0.30001810",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001148.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",
|
||||||
"integrity": "sha512-E66qcd0KMKZHNJQt9hiLZGE3J4zuTqE1OnU53miEVtylFbwOEmeA5OsRu90noZful+XGSQOni1aT2tiqu/9yYw==",
|
"integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/browserslist"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tidelift",
|
||||||
|
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/ai"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "CC-BY-4.0"
|
||||||
},
|
},
|
||||||
"node_modules/chalk": {
|
"node_modules/chalk": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
|
|||||||
@@ -22,12 +22,16 @@ COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CLUBS="Vereine"
|
|||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_VENUES="Spielorte"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_VENUES="Spielorte"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_APPOINTMENTS="Termine"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_APPOINTMENTS="Termine"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_MATCH_RESCHEDULING="Spielverlegungen"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_MATCH_RESCHEDULING="Spielverlegungen"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_ASSOCIATION_BODIES="Verbandsorgane"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_HALL_OF_FAME="Hall Of Fame"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE="Titel"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE="Titel"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE_DESC="Titel, der im Fenster oben angezeigt wird"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE_DESC="Titel, der im Fenster oben angezeigt wird"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION="Beschreibung"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION="Beschreibung"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION_DESC="Beschreibung, die unterhalb des Titels angezeigt wird (WICHTIG: Werden HTML-Tags verwendet, müssen auch Umlaute in HTML-Code angeben werden)"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION_DESC="Beschreibung, die unterhalb des Titels angezeigt wird (WICHTIG: Werden HTML-Tags verwendet, müssen auch Umlaute in HTML-Code angeben werden)"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES="Kategorien"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES="Kategorien"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES_DESC="Eine optionale Auswahl von Kategorienummern durch Kommata oder Spiegelstrich getrennt"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES_DESC="Eine optionale Auswahl von Kategorienummern durch Kommata oder Spiegelstrich getrennt"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_EXTRA_PARAMS="Zusätzliche Parameter"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_EXTRA_PARAMS_DESC="Optionale zusätzliche Parameter für den Link in der Form Name1=Wert1&Name2=Wert2, die bei Aufruf dieses Menüpunkts wie GET-Parameter zur Verfügung stehen"
|
||||||
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_TITLE="Layout: Elo-Rangliste"
|
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_TITLE="Layout: Elo-Rangliste"
|
||||||
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_DESC="Auflistung der Spieler sortiert nach Elo-Wertung"
|
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_DESC="Auflistung der Spieler sortiert nach Elo-Wertung"
|
||||||
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_OPTION_ELO_RANKING="Elo-Rangliste"
|
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_OPTION_ELO_RANKING="Elo-Rangliste"
|
||||||
|
|||||||
@@ -22,12 +22,16 @@ COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CLUBS="Clubs"
|
|||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_VENUES="Venues"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_VENUES="Venues"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_APPOINTMENTS="Appointments"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_APPOINTMENTS="Appointments"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_MATCH_RESCHEDULING="Match reschedulings"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_MATCH_RESCHEDULING="Match reschedulings"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_ASSOCIATION_BODIES="Association bodies"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_HALL_OF_FAME="Hall of fame"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE="Title"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE="Title"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE_DESC="Title which will be shows on top"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_TITLE_DESC="Title which will be shows on top"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION="Description"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION="Description"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION_DESC="Description that will be shows below the titel (IMPORTANT: if html tags are used, special characters must be maskeraded)"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_DESCRIPTION_DESC="Description that will be shows below the titel (IMPORTANT: if html tags are used, special characters must be maskeraded)"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES="Categories"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES="Categories"
|
||||||
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES_DESC="An optional selection of category numbers seperated by commas or bullet point"
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES_DESC="An optional selection of category numbers seperated by commas or bullet point"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_EXTRA_PARAMS="Additional parameters"
|
||||||
|
COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_EXTRA_PARAMS_DESC="Optional additional parameters for the link in the form name1=value1&name2=value2, made available as GET parameters whenever this menu item is called"
|
||||||
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_TITLE="Layout: elo ranking"
|
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_TITLE="Layout: elo ranking"
|
||||||
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_DESC="Listing of players sorted by elo rating"
|
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_DESC="Listing of players sorted by elo rating"
|
||||||
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_OPTION_ELO_RANKING="Elo ranking"
|
COM_SPORTSMANAGER_LAYOUT_ELO_RANKING_OPTION_ELO_RANKING="Elo ranking"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -5503,10 +5503,12 @@ function updateDatabase(): void
|
|||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "ALTER TABLE `#__sportsmanager_veranstaltung` ADD COLUMN IF NOT EXISTS `regelwerke_id` INT(11) NOT NULL DEFAULT '0' AFTER `bezeichnung`;";
|
$columns = $db->getTableColumns('#__sportsmanager_veranstaltung');
|
||||||
$db->setQuery($query);
|
if (!array_key_exists('regelwerke_id', $columns)) {
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
$query = "ALTER TABLE `#__sportsmanager_veranstaltung` ADD COLUMN `regelwerke_id` INT(11) NOT NULL DEFAULT '0' AFTER `bezeichnung`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
}
|
||||||
$query = "UPDATE #__sportsmanager_einstellungen"
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
. "\n SET wert = '114'"
|
. "\n SET wert = '114'"
|
||||||
. "\n WHERE name = 'datenbank_version'";
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
@@ -5519,19 +5521,24 @@ function updateDatabase(): void
|
|||||||
if ($datenbank_version < 115) {
|
if ($datenbank_version < 115) {
|
||||||
|
|
||||||
// Erweiterung Tabelle #__sportsmanager_verschieberegel
|
// Erweiterung Tabelle #__sportsmanager_verschieberegel
|
||||||
$query = "ALTER TABLE `#__sportsmanager_verschieberegel`"
|
$columns = $db->getTableColumns('#__sportsmanager_verschieberegel');
|
||||||
."\n ADD COLUMN IF NOT EXISTS `begruendung_erforderlich` INT(1) NOT NULL DEFAULT 0 AFTER `ablehnen`,"
|
if (!array_key_exists('begruendung_erforderlich', $columns)
|
||||||
."\n ADD COLUMN IF NOT EXISTS `vereine_berechtigt` INT(1) NOT NULL DEFAULT 1 AFTER `begruendung_erforderlich`,"
|
|| !array_key_exists('vereine_berechtigt', $columns)
|
||||||
."\n ADD COLUMN IF NOT EXISTS `verband_berechtigt` INT(1) NOT NULL DEFAULT 0 AFTER `vereine_berechtigt`;";
|
|| !array_key_exists('verband_berechtigt', $columns)) {
|
||||||
$db->setQuery($query);
|
$query = "ALTER TABLE `#__sportsmanager_verschieberegel`"
|
||||||
if (!$db->execute()) {
|
. "\n ADD COLUMN `begruendung_erforderlich` INT(1) NOT NULL DEFAULT 0 AFTER `ablehnen`,"
|
||||||
die($db->stderr(true));
|
. "\n ADD COLUMN `vereine_berechtigt` INT(1) NOT NULL DEFAULT 1 AFTER `begruendung_erforderlich`,"
|
||||||
|
. "\n ADD COLUMN `verband_berechtigt` INT(1) NOT NULL DEFAULT 0 AFTER `vereine_berechtigt`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "INSERT IGNORE INTO `#__sportsmanager_email_vorlagen` (`email_vorlagen_id`, `vorlage`) VALUES (NULL, 'Spielverlegung');";
|
$query = "INSERT IGNORE INTO `#__sportsmanager_email_vorlagen` (`email_vorlagen_id`, `vorlage`) VALUES (NULL, 'Spielverlegung');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "UPDATE #__sportsmanager_einstellungen"
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
. "\n SET wert = '115'"
|
. "\n SET wert = '115'"
|
||||||
. "\n WHERE name = 'datenbank_version'";
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
@@ -5540,25 +5547,33 @@ function updateDatabase(): void
|
|||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($datenbank_version < 116) {
|
if ($datenbank_version < 116) {
|
||||||
|
|
||||||
$query = "ALTER TABLE `#__sportsmanager_spielort`"
|
$columns = $db->getTableColumns('#__sportsmanager_spielort');
|
||||||
. "\n ADD IF NOT EXISTS `telefon` VARCHAR(64) NULL DEFAULT NULL AFTER `url`,"
|
if (!array_key_exists('telefon', $columns)
|
||||||
. "\n ADD IF NOT EXISTS `email` VARCHAR(64) NULL DEFAULT NULL AFTER `telefon`,"
|
|| !array_key_exists('email', $columns)
|
||||||
. "\n ADD IF NOT EXISTS `ruhetage` VARCHAR(64) NULL DEFAULT NULL AFTER `email`;";
|
|| !array_key_exists('ruhetage', $columns)) {
|
||||||
$db->setQuery($query);
|
$query = "ALTER TABLE `#__sportsmanager_spielort`"
|
||||||
if (!$db->execute()) {
|
. "\n ADD `telefon` VARCHAR(64) NULL DEFAULT NULL AFTER `url`,"
|
||||||
die($db->stderr(true));
|
. "\n ADD `email` VARCHAR(64) NULL DEFAULT NULL AFTER `telefon`,"
|
||||||
|
. "\n ADD `ruhetage` VARCHAR(64) NULL DEFAULT NULL AFTER `email`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "ALTER TABLE `#__sportsmanager_team`"
|
$columns = $db->getTableColumns('#__sportsmanager_team');
|
||||||
. "\n ADD IF NOT EXISTS `trainingstage` VARCHAR(64) NULL DEFAULT NULL AFTER `heimspielort_id`;";
|
if (!array_key_exists('trainingstage', $columns)){
|
||||||
$db->setQuery($query);
|
$query = "ALTER TABLE `#__sportsmanager_team`"
|
||||||
if (!$db->execute()) {
|
. "\n ADD `trainingstage` VARCHAR(64) NULL DEFAULT NULL AFTER `heimspielort_id`;";
|
||||||
die($db->stderr(true));
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "UPDATE #__sportsmanager_einstellungen"
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
. "\n SET wert = '116'"
|
. "\n SET wert = '116'"
|
||||||
. "\n WHERE name = 'datenbank_version'";
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
@@ -5567,7 +5582,211 @@ function updateDatabase(): void
|
|||||||
die($db->stderr(true));
|
die($db->stderr(true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($datenbank_version < 117) {
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_team_strafen` ("
|
||||||
|
. "\n `team_strafen_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `zeitpunkt` datetime NOT NULL,"
|
||||||
|
. "\n `moderator_user_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `team_id` int(11) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `strafe` float(6,2) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `beschreibung` text NOT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`team_strafen_id`)"
|
||||||
|
. "\n) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$columns = $db->getTableColumns('#__sportsmanager_veranstaltung');
|
||||||
|
if (!array_key_exists('explizite_strafen', $columns)) {
|
||||||
|
$query = "ALTER TABLE #__sportsmanager_veranstaltung"
|
||||||
|
. "\n ADD explizite_strafen tinyint(4) DEFAULT '0' AFTER elo_wertung";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "UPDATE #__sportsmanager_einstellungen SET wert = '117' WHERE name = 'datenbank_version'";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($datenbank_version < 118) {
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_verbandsorgane` ("
|
||||||
|
. "\n `verbandsorgane_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `veranstalter_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `verbandsorgan` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `kategorie` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `reihenfolge` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `email` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `beschreibung` text NOT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`verbandsorgane_id`),"
|
||||||
|
. "\n KEY (`veranstalter_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_mitglied_von_verbandsorgan` ("
|
||||||
|
. "\n `mitglied_von_verbandsorgan_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `verbandsorgane_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `funktion` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `zusatzinfo` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `spieler_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `nachname` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `vorname` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `email` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `telefon` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `mobil` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `reihenfolge` int(11) DEFAULT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`mitglied_von_verbandsorgan_id`),"
|
||||||
|
. "\n KEY (`verbandsorgane_id`),"
|
||||||
|
. "\n KEY (`spieler_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
|
. "\n SET wert = '118'"
|
||||||
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($datenbank_version < 119) {
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_halloffame` ("
|
||||||
|
. "\n `halloffame_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `veranstalter_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `halloffame` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `kategorie` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `spielform` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `reihenfolge` int(4) DEFAULT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`halloffame_id`),"
|
||||||
|
. "\n KEY `veranstalter_id` (`veranstalter_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_mitglied_von_halloffame` ("
|
||||||
|
. "\n `mitglied_halloffame_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `halloffame_id` int(11) NOT NULL,"
|
||||||
|
. "\n `jahr` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `platz` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `verein_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `teamname` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `spieler1_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `spieler1` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `spieler2_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `spieler2` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`mitglied_halloffame_id`),"
|
||||||
|
. "\n UNIQUE KEY `halloffame_jahr_platz` (`halloffame_id`,`jahr`,`platz`),"
|
||||||
|
. "\n KEY `halloffame_id` (`halloffame_id`),"
|
||||||
|
. "\n KEY `verein_id` (`verein_id`),"
|
||||||
|
. "\n KEY `spieler1_id` (`spieler1_id`),"
|
||||||
|
. "\n KEY `spieler2_id` (`spieler2_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
|
. "\n SET wert = '119'"
|
||||||
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($datenbank_version < 120) {
|
||||||
|
|
||||||
|
$columns = $db->getTableColumns('#__sportsmanager_teamspiel_modus');
|
||||||
|
if (!array_key_exists('spiele_in_spielerstatistik', $columns)){
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_teamspiel_modus`"
|
||||||
|
. "\n ADD `spiele_in_spielerstatistik` INT(4) NOT NULL DEFAULT '0' AFTER `heimtausch`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$columns = $db->getTableColumns('#__sportsmanager_bestenliste_punkte');
|
||||||
|
if (!array_key_exists('team_id', $columns)){
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_bestenliste_punkte`"
|
||||||
|
. "\n ADD `team_id` INT(11) NULL DEFAULT NULL AFTER `spieler_2_id`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$spielerstatistik_aktualisieren = true;
|
||||||
|
|
||||||
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
|
. "\n SET wert = '120'"
|
||||||
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($datenbank_version < 121) {
|
||||||
|
|
||||||
|
$columns = $db->getTableColumns('#__sportsmanager_mitglied_von_halloffame');
|
||||||
|
if (!array_key_exists('teamspieler', $columns)){
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_mitglied_von_halloffame`"
|
||||||
|
. "\n ADD `teamspieler` TEXT NULL DEFAULT NULL AFTER `teamname`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!array_key_exists('nicht_ausgespielt', $columns)){
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_mitglied_von_halloffame`"
|
||||||
|
. "\n ADD `nicht_ausgespielt` TINYINT(1) NOT NULL DEFAULT '0' AFTER `jahr`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$columns = $db->getTableColumns('#__sportsmanager_spielort');
|
||||||
|
if (!array_key_exists('zusatzinfo', $columns)){
|
||||||
|
$query = "ALTER TABLE `#__sportsmanager_spielort`"
|
||||||
|
. "\n ADD `zusatzinfo` TEXT NULL DEFAULT NULL AFTER `ruhetage`;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$zielpfad = JPATH_ROOT . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'sportsmanager' . DIRECTORY_SEPARATOR . 'spieler' . DIRECTORY_SEPARATOR . 'n.png';
|
||||||
|
if (!is_file($zielpfad)) {
|
||||||
|
$quellpfad = JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_sportsmanager' . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'spieler-n.png';
|
||||||
|
bildKopierenAngepasst($quellpfad, $zielpfad, 180, 240, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "UPDATE #__sportsmanager_einstellungen"
|
||||||
|
. "\n SET wert = '121'"
|
||||||
|
. "\n WHERE name = 'datenbank_version'";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($termin_aktionen_email_setzen) {
|
if ($termin_aktionen_email_setzen) {
|
||||||
$query = "SELECT aktion_user_id, termin_aktion_id"
|
$query = "SELECT aktion_user_id, termin_aktion_id"
|
||||||
. "\n FROM #__sportsmanager_termin_aktion";
|
. "\n FROM #__sportsmanager_termin_aktion";
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
File diff suppressed because it is too large
Load Diff
@@ -19,11 +19,17 @@ require_once JPATH_SITE . '/components/com_sportsmanager/database/init.php';
|
|||||||
|
|
||||||
/** @noinspection PhpUnused */
|
/** @noinspection PhpUnused */
|
||||||
function mathParserVerteilung($rohpunkte, $platz, $teilnehmer, $multiplikator) {
|
function mathParserVerteilung($rohpunkte, $platz, $teilnehmer, $multiplikator) {
|
||||||
|
if ($teilnehmer <= 1){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return max(round($multiplikator * round(((($rohpunkte - 1) * (-log($platz / $teilnehmer) * (1 - ($platz / $teilnehmer)))) / (-log(1 / $teilnehmer) * (1 - (1 / $teilnehmer)))) + 1)), 1);
|
return max(round($multiplikator * round(((($rohpunkte - 1) * (-log($platz / $teilnehmer) * (1 - ($platz / $teilnehmer)))) / (-log(1 / $teilnehmer) * (1 - (1 / $teilnehmer)))) + 1)), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @noinspection PhpUnused */
|
/** @noinspection PhpUnused */
|
||||||
function mathParserVerteilungR($rohpunkte, $platz, $teilnehmer, $multiplikator) {
|
function mathParserVerteilungR($rohpunkte, $platz, $teilnehmer, $multiplikator) {
|
||||||
|
if ($teilnehmer <= 1){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return max(round(((($multiplikator * $rohpunkte - 1) * (-log($platz / $teilnehmer) * (1 - ($platz / $teilnehmer)))) / (-log(1 / $teilnehmer) * (1 - (1 / $teilnehmer)))) + 1), 1);
|
return max(round(((($multiplikator * $rohpunkte - 1) * (-log($platz / $teilnehmer) * (1 - ($platz / $teilnehmer)))) / (-log(1 / $teilnehmer) * (1 - (1 / $teilnehmer)))) + 1), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,6 +232,217 @@ function kategorieFilter($prefix, $suffix = ""): string
|
|||||||
return " $prefix (" . implode(", ", $filter) . ") $suffix";
|
return " $prefix (" . implode(", ", $filter) . ") $suffix";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function idListeParameterFilter(string $parameterName, string $prefix, string $suffix = ""): string
|
||||||
|
{
|
||||||
|
$jInput = Factory::getContainer()->get(SiteApplication::class)->input;
|
||||||
|
$werte = $jInput->get($parameterName, '', 'STRING');
|
||||||
|
|
||||||
|
$result = [];
|
||||||
|
foreach (explode(",", $werte) as $item) {
|
||||||
|
$item = trim($item);
|
||||||
|
if ($item === '') continue;
|
||||||
|
|
||||||
|
$num = intval($item);
|
||||||
|
if ($num > 0) {
|
||||||
|
$result[$num] = true; // Duplikate vermeiden
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($result)) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
$filter = array_keys($result);
|
||||||
|
sort($filter, SORT_NUMERIC);
|
||||||
|
|
||||||
|
return " $prefix (" . implode(", ", $filter) . ") $suffix";
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameIdFilter($prefix): string
|
||||||
|
{
|
||||||
|
// Keine Bereichssuche bei der Halloffame-Id, nur einzelne Werte
|
||||||
|
return idListeParameterFilter('halloffame_id', $prefix);
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameJahrFilter($prefix): string
|
||||||
|
{
|
||||||
|
$minJahr = 1900;
|
||||||
|
$maxJahr = (int) date('Y') + 5;
|
||||||
|
|
||||||
|
$jInput = Factory::getContainer()->get(SiteApplication::class)->input;
|
||||||
|
$werte = $jInput->get('jahr', '', 'STRING');
|
||||||
|
|
||||||
|
$result = [];
|
||||||
|
foreach (explode(",", $werte) as $item) {
|
||||||
|
$item = trim($item);
|
||||||
|
if ($item === '') continue;
|
||||||
|
|
||||||
|
// Prüfen, ob es ein Bereich ist
|
||||||
|
if (strpos($item, '-') !== false) {
|
||||||
|
$rangeParts = explode('-', $item);
|
||||||
|
|
||||||
|
// genau 2 Teile für einen gültigen Bereich
|
||||||
|
if (count($rangeParts) !== 2) continue;
|
||||||
|
|
||||||
|
$start = intval(trim($rangeParts[0]));
|
||||||
|
$end = intval(trim($rangeParts[1]));
|
||||||
|
|
||||||
|
if ($start <= 0 || $end <= 0) continue;
|
||||||
|
|
||||||
|
// Werte vertauschen, falls der 2. Wert kleiner als der 1. ist
|
||||||
|
if ($end < $start) {
|
||||||
|
[$start, $end] = [$end, $start];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bereich auf 1900 .. aktuelles Jahr+5 begrenzen
|
||||||
|
$start = max($start, $minJahr);
|
||||||
|
$end = min($end, $maxJahr);
|
||||||
|
|
||||||
|
if ($start > $end) continue;
|
||||||
|
|
||||||
|
for ($i = $start; $i <= $end; $i++) {
|
||||||
|
$result[$i] = true; // Duplikate vermeiden
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$num = intval($item);
|
||||||
|
if ($num <= 0) continue;
|
||||||
|
|
||||||
|
// Einzelwert auf 1900 .. aktuelles Jahr+5 begrenzen
|
||||||
|
$num = max($minJahr, min($maxJahr, $num));
|
||||||
|
$result[$num] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($result)) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
$filter = array_keys($result);
|
||||||
|
sort($filter, SORT_NUMERIC);
|
||||||
|
|
||||||
|
return " $prefix (" . implode(", ", $filter) . ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameAlleTeams($db): array
|
||||||
|
{
|
||||||
|
return loadObjectList($db, "SELECT team_id, teamname FROM #__sportsmanager_team ORDER BY team_id DESC");
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameTeamIdFuerTeamname(array $alleTeams, ?string $teamname)
|
||||||
|
{
|
||||||
|
if (empty($teamname))
|
||||||
|
return null;
|
||||||
|
foreach ($alleTeams as $team) {
|
||||||
|
if (str_starts_with($team->teamname, $teamname))
|
||||||
|
return $team->team_id;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameAlleSpielerInfo($db): array
|
||||||
|
{
|
||||||
|
// "Aktiv" = hat einen aktuellen Verein; ohne aktuellen Verein liefert spieler_details ohnehin keine Daten
|
||||||
|
$rows = loadObjectList($db, "SELECT spieler_id, geschlecht, aktueller_verein_id FROM #__sportsmanager_spieler");
|
||||||
|
$result = [];
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
$result[$row->spieler_id] = (object) [
|
||||||
|
'geschlecht' => $row->geschlecht,
|
||||||
|
'aktiv' => !empty($row->aktueller_verein_id),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameSpielerAktiv(array $alleSpielerInfo, $spieler_id): bool
|
||||||
|
{
|
||||||
|
return empty($spieler_id) || !isset($alleSpielerInfo[$spieler_id]) || $alleSpielerInfo[$spieler_id]->aktiv;
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameSpielerBildId(array $alleSpielerInfo, $spieler_id)
|
||||||
|
{
|
||||||
|
return halloffameSpielerAktiv($alleSpielerInfo, $spieler_id) ? $spieler_id : '';
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameSpielerBildAlternativ(array $alleSpielerInfo, $spieler_id, string $geschaetztesGeschlecht = ''): string
|
||||||
|
{
|
||||||
|
if (!empty($spieler_id) && isset($alleSpielerInfo[$spieler_id]))
|
||||||
|
return $alleSpielerInfo[$spieler_id]->geschlecht == 'M' ? 'm' : 'w';
|
||||||
|
if ($geschaetztesGeschlecht === 'M')
|
||||||
|
return 'm';
|
||||||
|
if ($geschaetztesGeschlecht === 'W')
|
||||||
|
return 'w';
|
||||||
|
return 'n';
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameGeschlechtZaehlen(object $ziel, array $alleSpielerInfo, $spieler1_id, $spieler2_id): void
|
||||||
|
{
|
||||||
|
foreach ([$spieler1_id, $spieler2_id] as $id) {
|
||||||
|
if (empty($id) || !isset($alleSpielerInfo[$id]))
|
||||||
|
continue;
|
||||||
|
if ($alleSpielerInfo[$id]->geschlecht == 'M')
|
||||||
|
$ziel->anzahl_m++;
|
||||||
|
else
|
||||||
|
$ziel->anzahl_w++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameGeschaetztesGeschlecht($anzahl_m, $anzahl_w): string
|
||||||
|
{
|
||||||
|
if ($anzahl_m > $anzahl_w)
|
||||||
|
return 'M';
|
||||||
|
if ($anzahl_w > $anzahl_m)
|
||||||
|
return 'W';
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameAlleVereineInfo($db): array
|
||||||
|
{
|
||||||
|
$rows = loadObjectList($db, "SELECT verein_id, ausgetreten FROM #__sportsmanager_verein");
|
||||||
|
$result = [];
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
$result[$row->verein_id] = (object) [
|
||||||
|
'aktiv' => empty($row->ausgetreten),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameVereinAktiv(array $alleVereineInfo, $verein_id): bool
|
||||||
|
{
|
||||||
|
return empty($verein_id) || !isset($alleVereineInfo[$verein_id]) || $alleVereineInfo[$verein_id]->aktiv;
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameNameLink(string $bild_type, $id, array $alleSpielerInfo, array $alleVereineInfo, string $nameHtml): string
|
||||||
|
{
|
||||||
|
if (empty($id))
|
||||||
|
return $nameHtml;
|
||||||
|
if ($bild_type === 'spieler' && !halloffameSpielerAktiv($alleSpielerInfo, $id))
|
||||||
|
return $nameHtml;
|
||||||
|
if ($bild_type === 'vereine' && !halloffameVereinAktiv($alleVereineInfo, $id))
|
||||||
|
return $nameHtml;
|
||||||
|
|
||||||
|
$tasks = ['spieler' => 'spieler_details', 'vereine' => 'verein_details', 'mannschaften' => 'team_details'];
|
||||||
|
if (!isset($tasks[$bild_type]))
|
||||||
|
return $nameHtml;
|
||||||
|
|
||||||
|
return '<a href="' . SportsManagerURL('&task=' . $tasks[$bild_type] . '&id=' . $id) . '">' . $nameHtml . '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
function halloffameTitel(): string
|
||||||
|
{
|
||||||
|
global $params;
|
||||||
|
|
||||||
|
$titel = trim((string) $params->get('titel', ''));
|
||||||
|
if ($titel !== '')
|
||||||
|
return $titel;
|
||||||
|
|
||||||
|
$menu = Factory::getContainer()->get(SiteApplication::class)->getMenu()->getActive();
|
||||||
|
if ($menu !== null && trim((string) $menu->title) !== '')
|
||||||
|
return $menu->title;
|
||||||
|
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
function turnierFilter($prefix): string
|
function turnierFilter($prefix): string
|
||||||
{
|
{
|
||||||
$user_id = isExternalDatabase() ? 0 : Factory::getContainer()->get(SiteApplication::class)->getIdentity()->id;
|
$user_id = isExternalDatabase() ? 0 : Factory::getContainer()->get(SiteApplication::class)->getIdentity()->id;
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
<option value="spielorte"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_VENUES]]></option>
|
<option value="spielorte"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_VENUES]]></option>
|
||||||
<option value="termine"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_APPOINTMENTS]]></option>
|
<option value="termine"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_APPOINTMENTS]]></option>
|
||||||
<option value="spielverlegungen"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_MATCH_RESCHEDULING]]></option>
|
<option value="spielverlegungen"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_MATCH_RESCHEDULING]]></option>
|
||||||
|
<option value="verbandsorgane"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_ASSOCIATION_BODIES]]></option>
|
||||||
|
<option value="hall_of_fame"><![CDATA[COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_HALL_OF_FAME]]></option>
|
||||||
</field>
|
</field>
|
||||||
<field name="titel"
|
<field name="titel"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -43,6 +45,11 @@
|
|||||||
default=""
|
default=""
|
||||||
label="COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES"
|
label="COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES"
|
||||||
description="COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES_DESC" />
|
description="COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_CATEGORIES_DESC" />
|
||||||
|
<field name="zusatzparameter"
|
||||||
|
type="text"
|
||||||
|
default=""
|
||||||
|
label="COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_EXTRA_PARAMS"
|
||||||
|
description="COM_SPORTSMANAGER_LAYOUT_GENERAL_CONTENT_OPTION_EXTRA_PARAMS_DESC" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</fields>
|
</fields>
|
||||||
</metadata>
|
</metadata>
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -39,6 +39,7 @@ COM_SPORTSMANAGER_ORGANISATION="Organisation"
|
|||||||
COM_SPORTSMANAGER_TEAM_MEMBERS="Mannschaftsmitglieder"
|
COM_SPORTSMANAGER_TEAM_MEMBERS="Mannschaftsmitglieder"
|
||||||
COM_SPORTSMANAGER_TEAM_MEMBERS2=Vereinsmitglieder
|
COM_SPORTSMANAGER_TEAM_MEMBERS2=Vereinsmitglieder
|
||||||
COM_SPORTSMANAGER_MEMBERS="Mitglieder"
|
COM_SPORTSMANAGER_MEMBERS="Mitglieder"
|
||||||
|
COM_SPORTSMANAGER_MEMBER="Mitglied"
|
||||||
COM_SPORTSMANAGER_ACTIVE_MEMBERS="Aktive Mitglieder"
|
COM_SPORTSMANAGER_ACTIVE_MEMBERS="Aktive Mitglieder"
|
||||||
COM_SPORTSMANAGER_TEAMS="Mannschaften"
|
COM_SPORTSMANAGER_TEAMS="Mannschaften"
|
||||||
COM_SPORTSMANAGER_CURRENT_TEAMS="Aktuelle Mannschaften"
|
COM_SPORTSMANAGER_CURRENT_TEAMS="Aktuelle Mannschaften"
|
||||||
@@ -72,7 +73,6 @@ COM_SPORTSMANAGER_CONFIRM_REMOVE_RANKING="Willst du die Rangliste wirklich entfe
|
|||||||
COM_SPORTSMANAGER_ADD_INDIVIDUAL_COMPETITION="Individualwettbewerb hinzufügen"
|
COM_SPORTSMANAGER_ADD_INDIVIDUAL_COMPETITION="Individualwettbewerb hinzufügen"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITION="Individualwettbewerb"
|
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITION="Individualwettbewerb"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITIONS="Individualwettbewerbe"
|
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITIONS="Individualwettbewerbe"
|
||||||
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Verbandsorgane"
|
|
||||||
COM_SPORTSMANAGER_GAME="Spiel"
|
COM_SPORTSMANAGER_GAME="Spiel"
|
||||||
COM_SPORTSMANAGER_GAMES="Spiele"
|
COM_SPORTSMANAGER_GAMES="Spiele"
|
||||||
COM_SPORTSMANAGER_GAMES_SHORTCUT="S"
|
COM_SPORTSMANAGER_GAMES_SHORTCUT="S"
|
||||||
@@ -157,6 +157,7 @@ COM_SPORTSMANAGER_DEFEAT="Niederlage"
|
|||||||
COM_SPORTSMANAGER_DEFEATS="Niederlagen"
|
COM_SPORTSMANAGER_DEFEATS="Niederlagen"
|
||||||
COM_SPORTSMANAGER_DEFEATS_SHORTCUT="N"
|
COM_SPORTSMANAGER_DEFEATS_SHORTCUT="N"
|
||||||
COM_SPORTSMANAGER_GOALS="Tore"
|
COM_SPORTSMANAGER_GOALS="Tore"
|
||||||
|
COM_SPORTSMANAGER_GOALS_SHORTCUT="T"
|
||||||
COM_SPORTSMANAGER_SETS="Sätze"
|
COM_SPORTSMANAGER_SETS="Sätze"
|
||||||
COM_SPORTSMANAGER_POINT="Punkt"
|
COM_SPORTSMANAGER_POINT="Punkt"
|
||||||
COM_SPORTSMANAGER_POINTS="Punkte"
|
COM_SPORTSMANAGER_POINTS="Punkte"
|
||||||
@@ -169,9 +170,9 @@ COM_SPORTSMANAGER_GAME_POINTS="Spielpunkte"
|
|||||||
COM_SPORTSMANAGER_GAME_POINTS_SHORTCUT="SP"
|
COM_SPORTSMANAGER_GAME_POINTS_SHORTCUT="SP"
|
||||||
COM_SPORTSMANAGER_SUFFIX_ONE_TEAM=" (eine Mannschaft)"
|
COM_SPORTSMANAGER_SUFFIX_ONE_TEAM=" (eine Mannschaft)"
|
||||||
COM_SPORTSMANAGER_SUFFIX_TEAMS_TOGETHER=" (Mannschaften zusammen)"
|
COM_SPORTSMANAGER_SUFFIX_TEAMS_TOGETHER=" (Mannschaften zusammen)"
|
||||||
COM_SPORTSMANAGER_DIFFERENCE="Differenz"
|
COM_SPORTSMANAGER_DIFFERENCE="Differenz Tore"
|
||||||
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Punktedifferenz"
|
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Differenz Spielpunkte"
|
||||||
COM_SPORTSMANAGER_POINTS_RATIO="Punkteverhältnis"
|
COM_SPORTSMANAGER_POINTS_RATIO="Verhältnis Spielpunkte"
|
||||||
COM_SPORTSMANAGER_SCHEDULE_DATE="Zeitpunkt"
|
COM_SPORTSMANAGER_SCHEDULE_DATE="Zeitpunkt"
|
||||||
COM_SPORTSMANAGER_TEAM_HOME="Heim"
|
COM_SPORTSMANAGER_TEAM_HOME="Heim"
|
||||||
COM_SPORTSMANAGER_TEAM_VISITOR="Gast"
|
COM_SPORTSMANAGER_TEAM_VISITOR="Gast"
|
||||||
@@ -296,10 +297,9 @@ COM_SPORTSMANAGER_REQUEST_MESSAGE_PLURAL="Es müssen mindestens %d Termine v
|
|||||||
COM_SPORTSMANAGER_REJECT_SHIFT="Verschiebung ablehnen"
|
COM_SPORTSMANAGER_REJECT_SHIFT="Verschiebung ablehnen"
|
||||||
COM_SPORTSMANAGER_TO="bis"
|
COM_SPORTSMANAGER_TO="bis"
|
||||||
COM_SPORTSMANAGER_PLAYER_STATISTICS="Spielerstatistiken"
|
COM_SPORTSMANAGER_PLAYER_STATISTICS="Spielerstatistiken"
|
||||||
COM_SPORTSMANAGER_PERFORMANCE_INDEX_SHORTCUT="LI"
|
|
||||||
COM_SPORTSMANAGER_WON="gewonnen"
|
COM_SPORTSMANAGER_WON="gewonnen"
|
||||||
COM_SPORTSMANAGER_LOST="verloren"
|
COM_SPORTSMANAGER_LOST="verloren"
|
||||||
COM_SPORTSMANAGER_RATE="Quote"
|
COM_SPORTSMANAGER_RATE="Siegquote"
|
||||||
COM_SPORTSMANAGER_RATE_SHORTCUT="Q"
|
COM_SPORTSMANAGER_RATE_SHORTCUT="Q"
|
||||||
COM_SPORTSMANAGER_NO_CLUB="Kein Verein"
|
COM_SPORTSMANAGER_NO_CLUB="Kein Verein"
|
||||||
COM_SPORTSMANAGER_RATING="Wertung"
|
COM_SPORTSMANAGER_RATING="Wertung"
|
||||||
@@ -395,6 +395,8 @@ COM_SPORTSMANAGER_BEATEN="Ausgetreten"
|
|||||||
COM_SPORTSMANAGER_HIDE="Verstecken"
|
COM_SPORTSMANAGER_HIDE="Verstecken"
|
||||||
COM_SPORTSMANAGER_PASSIVE="Passiv"
|
COM_SPORTSMANAGER_PASSIVE="Passiv"
|
||||||
COM_SPORTSMANAGER_BEATEN_CLUB="Verein ausgetreten"
|
COM_SPORTSMANAGER_BEATEN_CLUB="Verein ausgetreten"
|
||||||
|
COM_SPORTSMANAGER_ACTIVE_CLUBS="Aktive Vereine"
|
||||||
|
COM_SPORTSMANAGER_INACTIVE_CLUBS="Inaktive Vereine"
|
||||||
COM_SPORTSMANAGER_SINGLE_SEED="Elo-Startwert Einzel"
|
COM_SPORTSMANAGER_SINGLE_SEED="Elo-Startwert Einzel"
|
||||||
COM_SPORTSMANAGER_DOUBLE_SEED="Elo-Startwert Doppel"
|
COM_SPORTSMANAGER_DOUBLE_SEED="Elo-Startwert Doppel"
|
||||||
COM_SPORTSMANAGER_PLAYER_EXPORT="Spieler: Exportieren"
|
COM_SPORTSMANAGER_PLAYER_EXPORT="Spieler: Exportieren"
|
||||||
@@ -500,6 +502,8 @@ COM_SPORTSMANAGER_WIN_1_POINT="Sieg: 1 Punkt"
|
|||||||
COM_SPORTSMANAGER_WIN_2_POINTS="Sieg: 2 Punkte, Unentschieden: 1 Punkt"
|
COM_SPORTSMANAGER_WIN_2_POINTS="Sieg: 2 Punkte, Unentschieden: 1 Punkt"
|
||||||
COM_SPORTSMANAGER_WIN_3_POINTS="Sieg: 3 Punkte, Unentschieden: 1 Punkt"
|
COM_SPORTSMANAGER_WIN_3_POINTS="Sieg: 3 Punkte, Unentschieden: 1 Punkt"
|
||||||
COM_SPORTSMANAGER_MEETING_CONCLUDED_AT="Begegnung abgeschlossen bei"
|
COM_SPORTSMANAGER_MEETING_CONCLUDED_AT="Begegnung abgeschlossen bei"
|
||||||
|
COM_SPORTSMANAGER_GAMES_IN_STATISTIK="Spiele in Spielerstatistik"
|
||||||
|
COM_SPORTSMANAGER_GAMES_IN_STATISTIK_ALL="Alle Spiele"
|
||||||
COM_SPORTSMANAGER_GENERALLY="Allgemein"
|
COM_SPORTSMANAGER_GENERALLY="Allgemein"
|
||||||
COM_SPORTSMANAGER_TYPE="Typ"
|
COM_SPORTSMANAGER_TYPE="Typ"
|
||||||
COM_SPORTSMANAGER_ELO_MIN="Elo min."
|
COM_SPORTSMANAGER_ELO_MIN="Elo min."
|
||||||
@@ -550,9 +554,22 @@ COM_SPORTSMANAGER_NO_RATING="Keine Wertung"
|
|||||||
COM_SPORTSMANAGER_TEAM_COMPETITIONS="Mannschaftswettbewerbe"
|
COM_SPORTSMANAGER_TEAM_COMPETITIONS="Mannschaftswettbewerbe"
|
||||||
COM_SPORTSMANAGER_TABLE_SUMMARY="Tabellenwertung"
|
COM_SPORTSMANAGER_TABLE_SUMMARY="Tabellenwertung"
|
||||||
COM_SPORTSMANAGER_HEAD_TO_HEAD_RECORD="Direkter Vergleich"
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_RECORD="Direkter Vergleich"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_NOT="deaktiviert"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_POINTS="bei gleicher Punktzahl"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_SETS="bei gleicher Punktzahl, Satzpunkte"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_GOALS="bei gleicher Punktzahl, Satzpunkte, Tore"
|
||||||
COM_SPORTSMANAGER_POINTS_WON_LOST_DIFFERENCE="Spielpunkte gewonnen, Spielpunkte verloren, Punktedifferenz"
|
COM_SPORTSMANAGER_POINTS_WON_LOST_DIFFERENCE="Spielpunkte gewonnen, Spielpunkte verloren, Punktedifferenz"
|
||||||
COM_SPORTSMANAGER_PERFORMANCE_INDEX="Leistungsindex (SP+ * SP+ * 100) / (SP+ + SP-), Spielpunkte gewonnen, ..."
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX0="Spielpunkte gewonnen, Spielpunkte verloren, Punktedifferenz"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX1="Leistungsindex (SP+ * SP+ * 100) / (SP+ + SP-), Spielpunkte gewonnen, ..."
|
||||||
COM_SPORTSMANAGER_PERFORMANCE_INDEX2="Leistungsindex (S * P+ * 10) / (P+ + P-), Spielpunkte gewonnen, ..."
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX2="Leistungsindex (S * P+ * 10) / (P+ + P-), Spielpunkte gewonnen, ..."
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX3="Race Performance Index (Siege*2 + Unentschieden + Tordifferenz)"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX4="Effizienzindex (T+ / (T+ + T-))"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX5="Punkteschnitt (P+ / Anzahl Sätze)"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT1="LI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT2="LI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT3="RPI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT4="EI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT5="AVG"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS="Einzelstatistik aus allen Spielen"
|
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS="Einzelstatistik aus allen Spielen"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_SINGLES="Einzelstatistik aus Einzel-Spielen"
|
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_SINGLES="Einzelstatistik aus Einzel-Spielen"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_DOUBLES="Einzelstatistik aus Doppel-Spielen"
|
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_DOUBLES="Einzelstatistik aus Doppel-Spielen"
|
||||||
@@ -900,6 +917,9 @@ COM_SPORTSMANAGER_RESULT_ONLY="Nur Ergebnis"
|
|||||||
COM_SPORTSMANAGER_GAME_NUMBER="Spiel %d"
|
COM_SPORTSMANAGER_GAME_NUMBER="Spiel %d"
|
||||||
COM_SPORTSMANAGER_LABEL_GAME_NUMBER="Spiel Nr"
|
COM_SPORTSMANAGER_LABEL_GAME_NUMBER="Spiel Nr"
|
||||||
COM_SPORTSMANAGER_LABEL_GAME_TITLE="Spieltag Titel"
|
COM_SPORTSMANAGER_LABEL_GAME_TITLE="Spieltag Titel"
|
||||||
|
COM_SPORTSMANAGER_EXPLICIT_PENALTIES="Explizite Strafen"
|
||||||
|
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_SUBJECT="%s: Strafpunkte erhalten"
|
||||||
|
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_BODY="%s wurden %f Strafpunkte zugeteilt mit der Begründung: %s"
|
||||||
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_SUBJECT="%s vs %s: Spieltermin verlegen"
|
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_SUBJECT="%s vs %s: Spieltermin verlegen"
|
||||||
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_BODY="Zur Begegnung %s gegen %s am %s in %s wird von %s der Spieltermin verschoben.\n\nAlternative Termine:\n\n"
|
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_BODY="Zur Begegnung %s gegen %s am %s in %s wird von %s der Spieltermin verschoben.\n\nAlternative Termine:\n\n"
|
||||||
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_REQUESTED_BODY="Zur Begegnung %s gegen %s am %s in %s wird von %s der Spieltermin verschoben.\n\nBitte alternative Termine vorschlagen unter %s"
|
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_REQUESTED_BODY="Zur Begegnung %s gegen %s am %s in %s wird von %s der Spieltermin verschoben.\n\nBitte alternative Termine vorschlagen unter %s"
|
||||||
@@ -1069,5 +1089,39 @@ COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="Bei Heimrechttausch gleichen Termin eintr
|
|||||||
COM_SPORTSMANAGER_NOT_VALID_TIME="Ungültige Uhrzeit"
|
COM_SPORTSMANAGER_NOT_VALID_TIME="Ungültige Uhrzeit"
|
||||||
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Willst Du diesen Spielverlegung wirklich entfernen?"
|
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Willst Du diesen Spielverlegung wirklich entfernen?"
|
||||||
COM_SPORTSMANAGER_REST_DAYS="Ruhetage"
|
COM_SPORTSMANAGER_REST_DAYS="Ruhetage"
|
||||||
|
COM_SPORTSMANAGER_ADDITIONAL_INFO="Zusatzinfo"
|
||||||
COM_SPORTSMANAGER_TRAINING_DAYS="Trainingstage"
|
COM_SPORTSMANAGER_TRAINING_DAYS="Trainingstage"
|
||||||
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Nicht aktualisierte Daten"
|
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Nicht aktualisierte Daten"
|
||||||
|
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Verbandsorgane"
|
||||||
|
COM_SPORTSMANAGER_ASSOCIATION_BODY="Verbandsorgan"
|
||||||
|
COM_SPORTSMANAGER_ADD_ASSOCIATION_BODY="Verbandsorgan hinzufügen"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_ASSOCIATION_BODY="Willst Du dieses Verbandsorgan wirklich entfernen?"
|
||||||
|
COM_SPORTSMANAGER_INVALID_ASSOCIATION_BODY_NAME="Ungültiger Name für Verbandsorgan!"
|
||||||
|
COM_SPORTSMANAGER_NAME_NOT_COMPLETE="Der Name ist nicht komplett ausgefüllt"
|
||||||
|
COM_SPORTSMANAGER_ADDITIONAL_INFO="Zusatzinfo"
|
||||||
|
COM_SPORTSMANAGER_USE_HTML="Hier sollte HTML-formatierter Text verwendet werden"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_ASSOCIATION_BODY_MEMBER="Möchtest du dieses Mitglied des Verbandsorgans wirklich entfernen?"
|
||||||
|
COM_SPORTSMANAGER_HELP_EDIT_ASSOCIATION_BODY_MEMBER="Wird ein Name aus der Spielerliste ausgewählt, werden Nachname und Vorname übernommen.<br>Telefon, Mobil, E-Mail werden aus der Spielerliste übernommen, wenn sie hier nicht ausgefüllt sind."
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME="Hall of Fame"
|
||||||
|
COM_SPORTSMANAGER_ADD_HALL_OF_FAME="Hall of Fame hinzufügen"
|
||||||
|
COM_SPORTSMANAGER_INVALID_HALL_OF_FAME_NAME="Invalider Name für Hall of Fame"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_HALL_OF_FAME="Willst Du wirklich diese Hall of Fame mit allen Mitgliedern löschen?"
|
||||||
|
COM_SPORTSMANAGER_MATCH_TYPE="Spielform"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_HALL_OF_FAME_YEAR="Willst Du wirklich dieses Hall of Fame Jahr löschen?"
|
||||||
|
COM_SPORTSMANAGER_YEARS="Jahre"
|
||||||
|
COM_SPORTSMANAGER_ADD_HALL_OF_FAME_YEAR="Hall of Fame Jahr hinzufügen"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_TITLE_COUNT="Anzahl"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_TITLES="Titel"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_TEAM_PLAYERS="Mannschaftsspieler"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_NOT_HELD="Nicht ausgespielt"
|
||||||
|
COM_SPORTSMANAGER_NO_ENTRY="kein Eintrag"
|
||||||
|
COM_SPORTSMANAGER_REALLY_SWAP_MATCH="Willst Du wirklich das Heimrecht tauschen?"
|
||||||
|
COM_SPORTSMANAGER_SWAP_MATCH="Heimrechttausch"
|
||||||
|
COM_SPORTSMANAGER_REALLY_DELETE_MATCH_REPORT="Der Spielbericht wird zusammen mit allen historischen Einträgen gelöscht. Willst du den Spielbericht wirklich löschen?"
|
||||||
|
COM_SPORTSMANAGER_MATCH_REPORT_DELETED="Spielbericht gelöscht"
|
||||||
|
COM_SPORTSMANAGER_MATCH_REPORT_WAS_DELETED="Der Spielbericht wurde erfolgreich gelöscht!"
|
||||||
|
COM_SPORTSMANAGER_MATCH_REPORT_CORRECTED="Spielberichtskorrektur"
|
||||||
|
COM_SPORTSMANAGER_MIN_MATCHES="Mindestzahl Spiele"
|
||||||
|
COM_SPORTSMANAGER_SELECT_ALL="Alle"
|
||||||
|
COM_SPORTSMANAGER_MAIL_SEND_ERROR="Die Benachrichtigungs-E-Mail zum Ergebnis konnte nicht versendet werden."
|
||||||
|
COM_SPORTSMANAGER_TERMIN_MAIL_SEND_ERROR="Mindestens eine Benachrichtigungs-E-Mail zum Termin konnte nicht versendet werden."
|
||||||
@@ -39,6 +39,7 @@ COM_SPORTSMANAGER_ORGANISATION="Organisation"
|
|||||||
COM_SPORTSMANAGER_TEAM_MEMBERS="Team members"
|
COM_SPORTSMANAGER_TEAM_MEMBERS="Team members"
|
||||||
COM_SPORTSMANAGER_TEAM_MEMBERS2="Club members"
|
COM_SPORTSMANAGER_TEAM_MEMBERS2="Club members"
|
||||||
COM_SPORTSMANAGER_MEMBERS="Members"
|
COM_SPORTSMANAGER_MEMBERS="Members"
|
||||||
|
COM_SPORTSMANAGER_MEMBER="Member"
|
||||||
COM_SPORTSMANAGER_ACTIVE_MEMBERS="Active members"
|
COM_SPORTSMANAGER_ACTIVE_MEMBERS="Active members"
|
||||||
COM_SPORTSMANAGER_TEAMS="Teams"
|
COM_SPORTSMANAGER_TEAMS="Teams"
|
||||||
COM_SPORTSMANAGER_CURRENT_TEAMS="Current teams"
|
COM_SPORTSMANAGER_CURRENT_TEAMS="Current teams"
|
||||||
@@ -72,7 +73,6 @@ COM_SPORTSMANAGER_CONFIRM_REMOVE_RANKING="Do you really want to remove the ranki
|
|||||||
COM_SPORTSMANAGER_ADD_INDIVIDUAL_COMPETITION="Add individual competition"
|
COM_SPORTSMANAGER_ADD_INDIVIDUAL_COMPETITION="Add individual competition"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITION="Individual competition"
|
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITION="Individual competition"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITIONS="Individual competitions"
|
COM_SPORTSMANAGER_INDIVIDUAL_COMPETITIONS="Individual competitions"
|
||||||
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Association bodies"
|
|
||||||
COM_SPORTSMANAGER_GAME="Game"
|
COM_SPORTSMANAGER_GAME="Game"
|
||||||
COM_SPORTSMANAGER_GAMES="Games"
|
COM_SPORTSMANAGER_GAMES="Games"
|
||||||
COM_SPORTSMANAGER_GAMES_SHORTCUT="G"
|
COM_SPORTSMANAGER_GAMES_SHORTCUT="G"
|
||||||
@@ -157,6 +157,7 @@ COM_SPORTSMANAGER_DEFEAT="Defeat"
|
|||||||
COM_SPORTSMANAGER_DEFEATS="Defeats"
|
COM_SPORTSMANAGER_DEFEATS="Defeats"
|
||||||
COM_SPORTSMANAGER_DEFEATS_SHORTCUT="F"
|
COM_SPORTSMANAGER_DEFEATS_SHORTCUT="F"
|
||||||
COM_SPORTSMANAGER_GOALS="Goals"
|
COM_SPORTSMANAGER_GOALS="Goals"
|
||||||
|
COM_SPORTSMANAGER_GOALS_SHORTCUT="G"
|
||||||
COM_SPORTSMANAGER_SETS="Sets"
|
COM_SPORTSMANAGER_SETS="Sets"
|
||||||
COM_SPORTSMANAGER_POINT="Point"
|
COM_SPORTSMANAGER_POINT="Point"
|
||||||
COM_SPORTSMANAGER_POINTS="Points"
|
COM_SPORTSMANAGER_POINTS="Points"
|
||||||
@@ -169,9 +170,9 @@ COM_SPORTSMANAGER_GAME_POINTS="Game points"
|
|||||||
COM_SPORTSMANAGER_GAME_POINTS_SHORTCUT="GP"
|
COM_SPORTSMANAGER_GAME_POINTS_SHORTCUT="GP"
|
||||||
COM_SPORTSMANAGER_SUFFIX_ONE_TEAM=" (one team)"
|
COM_SPORTSMANAGER_SUFFIX_ONE_TEAM=" (one team)"
|
||||||
COM_SPORTSMANAGER_SUFFIX_TEAMS_TOGETHER=" (teams together)"
|
COM_SPORTSMANAGER_SUFFIX_TEAMS_TOGETHER=" (teams together)"
|
||||||
COM_SPORTSMANAGER_DIFFERENCE="Difference"
|
COM_SPORTSMANAGER_DIFFERENCE="Goal difference"
|
||||||
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Difference in points"
|
COM_SPORTSMANAGER_DIFFERENCE_IN_POINTS="Difference in game points"
|
||||||
COM_SPORTSMANAGER_POINTS_RATIO="Points ratio"
|
COM_SPORTSMANAGER_POINTS_RATIO="Game points ratio"
|
||||||
COM_SPORTSMANAGER_SCHEDULE_DATE="Appointment date"
|
COM_SPORTSMANAGER_SCHEDULE_DATE="Appointment date"
|
||||||
COM_SPORTSMANAGER_TEAM_HOME="Home"
|
COM_SPORTSMANAGER_TEAM_HOME="Home"
|
||||||
COM_SPORTSMANAGER_TEAM_VISITOR="Visitor"
|
COM_SPORTSMANAGER_TEAM_VISITOR="Visitor"
|
||||||
@@ -296,10 +297,9 @@ COM_SPORTSMANAGER_REQUEST_MESSAGE_PLURAL="At least %d dates must be given comple
|
|||||||
COM_SPORTSMANAGER_REJECT_SHIFT="Reject shift"
|
COM_SPORTSMANAGER_REJECT_SHIFT="Reject shift"
|
||||||
COM_SPORTSMANAGER_TO="until"
|
COM_SPORTSMANAGER_TO="until"
|
||||||
COM_SPORTSMANAGER_PLAYER_STATISTICS="Player statistics"
|
COM_SPORTSMANAGER_PLAYER_STATISTICS="Player statistics"
|
||||||
COM_SPORTSMANAGER_PERFORMANCE_INDEX_SHORTCUT="PI"
|
|
||||||
COM_SPORTSMANAGER_WON="won"
|
COM_SPORTSMANAGER_WON="won"
|
||||||
COM_SPORTSMANAGER_LOST="lost"
|
COM_SPORTSMANAGER_LOST="lost"
|
||||||
COM_SPORTSMANAGER_RATE="Rate"
|
COM_SPORTSMANAGER_RATE="Winning rate"
|
||||||
COM_SPORTSMANAGER_RATE_SHORTCUT="R"
|
COM_SPORTSMANAGER_RATE_SHORTCUT="R"
|
||||||
COM_SPORTSMANAGER_NO_CLUB="No club"
|
COM_SPORTSMANAGER_NO_CLUB="No club"
|
||||||
COM_SPORTSMANAGER_RATING="Rating"
|
COM_SPORTSMANAGER_RATING="Rating"
|
||||||
@@ -395,6 +395,8 @@ COM_SPORTSMANAGER_BEATEN="Excreted"
|
|||||||
COM_SPORTSMANAGER_HIDE="Hide"
|
COM_SPORTSMANAGER_HIDE="Hide"
|
||||||
COM_SPORTSMANAGER_PASSIVE="Passive"
|
COM_SPORTSMANAGER_PASSIVE="Passive"
|
||||||
COM_SPORTSMANAGER_BEATEN_CLUB="Club excreted"
|
COM_SPORTSMANAGER_BEATEN_CLUB="Club excreted"
|
||||||
|
COM_SPORTSMANAGER_ACTIVE_CLUBS="Active clubs"
|
||||||
|
COM_SPORTSMANAGER_INACTIVE_CLUBS="Inactive clubs"
|
||||||
COM_SPORTSMANAGER_SINGLE_SEED="Elo starting value singles"
|
COM_SPORTSMANAGER_SINGLE_SEED="Elo starting value singles"
|
||||||
COM_SPORTSMANAGER_DOUBLE_SEED="Elo starting value doubles"
|
COM_SPORTSMANAGER_DOUBLE_SEED="Elo starting value doubles"
|
||||||
COM_SPORTSMANAGER_PLAYER_EXPORT="Players: Export"
|
COM_SPORTSMANAGER_PLAYER_EXPORT="Players: Export"
|
||||||
@@ -500,6 +502,8 @@ COM_SPORTSMANAGER_WIN_1_POINT="Win: 1 point"
|
|||||||
COM_SPORTSMANAGER_WIN_2_POINTS="Win: 2 points, draw: 1 point"
|
COM_SPORTSMANAGER_WIN_2_POINTS="Win: 2 points, draw: 1 point"
|
||||||
COM_SPORTSMANAGER_WIN_3_POINTS="Win: 3 points, draw: 1 point"
|
COM_SPORTSMANAGER_WIN_3_POINTS="Win: 3 points, draw: 1 point"
|
||||||
COM_SPORTSMANAGER_MEETING_CONCLUDED_AT="Match won at"
|
COM_SPORTSMANAGER_MEETING_CONCLUDED_AT="Match won at"
|
||||||
|
COM_SPORTSMANAGER_GAMES_IN_STATISTIK="Games in player statistics"
|
||||||
|
COM_SPORTSMANAGER_GAMES_IN_STATISTIK_ALL="All games"
|
||||||
COM_SPORTSMANAGER_GENERALLY="Generally"
|
COM_SPORTSMANAGER_GENERALLY="Generally"
|
||||||
COM_SPORTSMANAGER_TYPE="Type"
|
COM_SPORTSMANAGER_TYPE="Type"
|
||||||
COM_SPORTSMANAGER_ELO_MIN="Elo min."
|
COM_SPORTSMANAGER_ELO_MIN="Elo min."
|
||||||
@@ -550,9 +554,22 @@ COM_SPORTSMANAGER_NO_RATING="No rating"
|
|||||||
COM_SPORTSMANAGER_TEAM_COMPETITIONS="Team competitions"
|
COM_SPORTSMANAGER_TEAM_COMPETITIONS="Team competitions"
|
||||||
COM_SPORTSMANAGER_TABLE_SUMMARY="Table rating"
|
COM_SPORTSMANAGER_TABLE_SUMMARY="Table rating"
|
||||||
COM_SPORTSMANAGER_HEAD_TO_HEAD_RECORD="Head-to-head record"
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_RECORD="Head-to-head record"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_NOT="Off"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_POINTS="Tie: pts"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_SETS="Tie: pts, set points"
|
||||||
|
COM_SPORTSMANAGER_HEAD_TO_HEAD_OPT_GOALS="Tie: pts, set points, goals"
|
||||||
COM_SPORTSMANAGER_POINTS_WON_LOST_DIFFERENCE="Game points won, game points lost, point difference"
|
COM_SPORTSMANAGER_POINTS_WON_LOST_DIFFERENCE="Game points won, game points lost, point difference"
|
||||||
COM_SPORTSMANAGER_PERFORMANCE_INDEX="Performance index (GP+ * GP+ * 100) / (GP+ + GP-), game points won, ..."
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX0="Game points won, game points lost, point difference"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX1="Performance index (GP+ * GP+ * 100) / (GP+ + GP-), game points won, ..."
|
||||||
COM_SPORTSMANAGER_PERFORMANCE_INDEX2="Performance index (games * P+ * 10) / (P+ + P-), game points won, ..."
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX2="Performance index (games * P+ * 10) / (P+ + P-), game points won, ..."
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX3="Race Performance Index (victories*2 + draws + goal difference)"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX4="Efficency index (G+ / (G+ + G-))"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_INDEX5="Set point average (P+ / count sets)"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT1="LI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT2="LI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT3="RPI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT4="EI"
|
||||||
|
COM_SPORTSMANAGER_PERFORMANCE_SHORT5="AVG"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS="Individual statistics of all games"
|
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS="Individual statistics of all games"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_SINGLES="Individual statistics of singles games"
|
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_SINGLES="Individual statistics of singles games"
|
||||||
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_DOUBLES="Individual statistics of doubles games"
|
COM_SPORTSMANAGER_INDIVIDUAL_STATISTICS_DOUBLES="Individual statistics of doubles games"
|
||||||
@@ -900,6 +917,9 @@ COM_SPORTSMANAGER_RESULT_ONLY="Result only"
|
|||||||
COM_SPORTSMANAGER_GAME_NUMBER="Game %d"
|
COM_SPORTSMANAGER_GAME_NUMBER="Game %d"
|
||||||
COM_SPORTSMANAGER_LABEL_GAME_NUMBER="Game nr"
|
COM_SPORTSMANAGER_LABEL_GAME_NUMBER="Game nr"
|
||||||
COM_SPORTSMANAGER_LABEL_GAME_TITLE="Gameday title"
|
COM_SPORTSMANAGER_LABEL_GAME_TITLE="Gameday title"
|
||||||
|
COM_SPORTSMANAGER_EXPLICIT_PENALTIES="Explicit Penalties"
|
||||||
|
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_SUBJECT="%s: received penalty"
|
||||||
|
COM_SPORTSMANAGER_EXPLICIT_PENALTIES_EMAIL_BODY="%s received a penalty of %f points based on the following justification: %s"
|
||||||
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_SUBJECT="%s vs %s: Shift game appointment"
|
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_SUBJECT="%s vs %s: Shift game appointment"
|
||||||
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_BODY="For match %s versus %s on %s in %s the game appointment is shifted by %s.\n\nAlternative appointments:\n\n"
|
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_BODY="For match %s versus %s on %s in %s the game appointment is shifted by %s.\n\nAlternative appointments:\n\n"
|
||||||
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_REQUESTED_BODY="For match %s on %s in %s the game appointment is shifted by %s.\n\nPlease propose alternative appointments under %s"
|
COM_SPORTSMANAGER_EMAIL_SHIFT_GAME_APPOINTMENT_REQUESTED_BODY="For match %s on %s in %s the game appointment is shifted by %s.\n\nPlease propose alternative appointments under %s"
|
||||||
@@ -1069,5 +1089,39 @@ COM_SPORTSMANAGER_MATCH_SWAPPING_HELP="If home advantage is swapped, enter the s
|
|||||||
COM_SPORTSMANAGER_NOT_VALID_TIME="Not valid time"
|
COM_SPORTSMANAGER_NOT_VALID_TIME="Not valid time"
|
||||||
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Do you really want to remove this match rescheduling?"
|
COM_SPORTSMANAGER_REALLY_MATCH_RESCHEDULING="Do you really want to remove this match rescheduling?"
|
||||||
COM_SPORTSMANAGER_REST_DAYS="Rest days"
|
COM_SPORTSMANAGER_REST_DAYS="Rest days"
|
||||||
|
COM_SPORTSMANAGER_ADDITIONAL_INFO="Additional info"
|
||||||
COM_SPORTSMANAGER_TRAINING_DAYS="Training days"
|
COM_SPORTSMANAGER_TRAINING_DAYS="Training days"
|
||||||
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Data not updated"
|
COM_SPORTSMANAGER_NOT_ACTUALIZED_DATA="Data not updated"
|
||||||
|
COM_SPORTSMANAGER_ASSOCIATION_BODIES="Association bodies"
|
||||||
|
COM_SPORTSMANAGER_ASSOCIATION_BODY="Association body"
|
||||||
|
COM_SPORTSMANAGER_ADD_ASSOCIATION_BODY="Add association body"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_ASSOCIATION_BODY="Do you really want to remove this association body?"
|
||||||
|
COM_SPORTSMANAGER_INVALID_ASSOCIATION_BODY_NAME="Invalid association body name"
|
||||||
|
COM_SPORTSMANAGER_NAME_NOT_COMPLETE="The name is not completely filled in"
|
||||||
|
COM_SPORTSMANAGER_ADDITIONAL_INFO="Additional information"
|
||||||
|
COM_SPORTSMANAGER_USE_HTML="HTML-formatted text should be used here."
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_ASSOCIATION_BODY_MEMBER="Do you really want to remove this association body member?"
|
||||||
|
COM_SPORTSMANAGER_HELP_EDIT_ASSOCIATION_BODY_MEMBER="Selecting a name from the player list will fill in the first and last name.<br>Phone, mobile, and email are filled from the player list if left blank here."
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME="Hall of Fame"
|
||||||
|
COM_SPORTSMANAGER_ADD_HALL_OF_FAME="Add Hall of Fame"
|
||||||
|
COM_SPORTSMANAGER_INVALID_HALL_OF_FAME_NAME="Invalid Hall of Fame name"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_HALL_OF_FAME="Are you sure you want to delete this Hall of Fame including all its members?"
|
||||||
|
COM_SPORTSMANAGER_MATCH_TYPE="Game Type"
|
||||||
|
COM_SPORTSMANAGER_REALLY_REMOVE_HALL_OF_FAME_YEAR="Are you sure you want to delete this Hall of Fame year?"
|
||||||
|
COM_SPORTSMANAGER_YEARS="Years"
|
||||||
|
COM_SPORTSMANAGER_ADD_HALL_OF_FAME_YEAR="Add Hall of Fame Year"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_TITLE_COUNT="Number"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_TITLES="Titles"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_TEAM_PLAYERS="Team Players"
|
||||||
|
COM_SPORTSMANAGER_HALL_OF_FAME_NOT_HELD="Not held"
|
||||||
|
COM_SPORTSMANAGER_NO_ENTRY="no entry"
|
||||||
|
COM_SPORTSMANAGER_REALLY_SWAP_MATCH="Do you really want to swap the home advantage?"
|
||||||
|
COM_SPORTSMANAGER_SWAP_MATCH="Swap home advantage"
|
||||||
|
COM_SPORTSMANAGER_REALLY_DELETE_MATCH_REPORT="The match report and all its history will be deleted. Are you sure you want to delete the match report?"
|
||||||
|
COM_SPORTSMANAGER_MATCH_REPORT_DELETED="Match report deleted"
|
||||||
|
COM_SPORTSMANAGER_MATCH_REPORT_WAS_DELETED="The match report has been successfully deleted!"
|
||||||
|
COM_SPORTSMANAGER_MATCH_REPORT_CORRECTED="Match report corrected"
|
||||||
|
COM_SPORTSMANAGER_MIN_MATCHES="Min count matches"
|
||||||
|
COM_SPORTSMANAGER_SELECT_ALL="All"
|
||||||
|
COM_SPORTSMANAGER_MAIL_SEND_ERROR="The notification e-mail for the result could not be sent."
|
||||||
|
COM_SPORTSMANAGER_TERMIN_MAIL_SEND_ERROR="At least one notification e-mail for the appointment could not be sent."
|
||||||
+128
-13
@@ -94,6 +94,12 @@ return new class () implements InstallerScriptInterface
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!bildKopierenAngepasst(JPATH_ROOT.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_sportsmanager'.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.'spieler-n.png', JPATH_ROOT.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.'sportsmanager'.DIRECTORY_SEPARATOR.'spieler'.DIRECTORY_SEPARATOR.'n.png', 180, 240, 1)) {
|
||||||
|
Log::add('Image /components/com_sportsmanager/images/spieler-n.png could not be copied to /images/sportsmanager/spieler/n.png', Log::ERROR);
|
||||||
|
echo '<p>Fehler: Bild spieler-n.png konnte nicht nach /images/sportsmanager/spieler/n.png verschoben werden</p>';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$adapter->getParent()->setRedirectURL('index.php?option=com_sportsmanager');
|
$adapter->getParent()->setRedirectURL('index.php?option=com_sportsmanager');
|
||||||
return true;
|
return true;
|
||||||
@@ -526,6 +532,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `bestenliste_id` int(11) NOT NULL DEFAULT '0',"
|
. "\n `bestenliste_id` int(11) NOT NULL DEFAULT '0',"
|
||||||
. "\n `spieler_id` int(11) NOT NULL DEFAULT '0',"
|
. "\n `spieler_id` int(11) NOT NULL DEFAULT '0',"
|
||||||
. "\n `spieler_2_id` int(11) DEFAULT NULL,"
|
. "\n `spieler_2_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `team_id` INT(11) DEFAULT NULL,"
|
||||||
. "\n `siege` smallint(6) DEFAULT NULL,"
|
. "\n `siege` smallint(6) DEFAULT NULL,"
|
||||||
. "\n `unentschieden` smallint(6) DEFAULT NULL,"
|
. "\n `unentschieden` smallint(6) DEFAULT NULL,"
|
||||||
. "\n `niederlagen` smallint(6) DEFAULT NULL,"
|
. "\n `niederlagen` smallint(6) DEFAULT NULL,"
|
||||||
@@ -673,6 +680,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `telefon` varchar(64) DEFAULT NULL,"
|
. "\n `telefon` varchar(64) DEFAULT NULL,"
|
||||||
. "\n `email` varchar(64) DEFAULT NULL,"
|
. "\n `email` varchar(64) DEFAULT NULL,"
|
||||||
. "\n `ruhetage` varchar(64) DEFAULT NULL,"
|
. "\n `ruhetage` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `zusatzinfo` text DEFAULT NULL,"
|
||||||
. "\n `beschreibung` varchar(500) DEFAULT NULL,"
|
. "\n `beschreibung` varchar(500) DEFAULT NULL,"
|
||||||
. "\n `status` tinyint(1) NOT NULL DEFAULT '0',"
|
. "\n `status` tinyint(1) NOT NULL DEFAULT '0',"
|
||||||
. "\n PRIMARY KEY (`spielort_id`)"
|
. "\n PRIMARY KEY (`spielort_id`)"
|
||||||
@@ -722,6 +730,18 @@ return new class () implements InstallerScriptInterface
|
|||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_team_strafen` ("
|
||||||
|
. "\n `team_strafen_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `zeitpunkt` datetime NOT NULL,"
|
||||||
|
. "\n `moderator_user_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `team_id` int(11) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `strafe` float(6,2) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `beschreibung` text NOT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`team_strafen_id`)"
|
||||||
|
. "\n) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_teamansprechpartner` ("
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_teamansprechpartner` ("
|
||||||
. "\n `kontaktperson_id` int(11) NOT NULL AUTO_INCREMENT,"
|
. "\n `kontaktperson_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
. "\n `team_id` int(11) NOT NULL DEFAULT '0',"
|
. "\n `team_id` int(11) NOT NULL DEFAULT '0',"
|
||||||
@@ -777,6 +797,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `spielpunkte_bedingung` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `spielpunkte_bedingung` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n `spielernamen` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `spielernamen` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n `heimtausch` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `heimtausch` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `spiele_in_spielerstatistik` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n `modus` varchar(200) NOT NULL DEFAULT '',"
|
. "\n `modus` varchar(200) NOT NULL DEFAULT '',"
|
||||||
. "\n `status` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `status` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
. "\n PRIMARY KEY (`teamspiel_modus_id`)"
|
. "\n PRIMARY KEY (`teamspiel_modus_id`)"
|
||||||
@@ -1049,6 +1070,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n `erster_tag` date NOT NULL DEFAULT '0000-00-00',"
|
. "\n `erster_tag` date NOT NULL DEFAULT '0000-00-00',"
|
||||||
. "\n `letzter_tag` date DEFAULT NULL,"
|
. "\n `letzter_tag` date DEFAULT NULL,"
|
||||||
. "\n `elo_wertung` tinyint(4) DEFAULT NULL,"
|
. "\n `elo_wertung` tinyint(4) DEFAULT NULL,"
|
||||||
|
. "\n `explizite_strafen` tinyint(4) DEFAULT '0',"
|
||||||
. "\n `logo_url` TINYTEXT NOT NULL,"
|
. "\n `logo_url` TINYTEXT NOT NULL,"
|
||||||
. "\n `ticker_logo_url` TINYTEXT NOT NULL,"
|
. "\n `ticker_logo_url` TINYTEXT NOT NULL,"
|
||||||
. "\n `status` tinyint(4) NOT NULL DEFAULT '0',"
|
. "\n `status` tinyint(4) NOT NULL DEFAULT '0',"
|
||||||
@@ -1134,7 +1156,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_verstoesse` ("
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_verstoesse` ("
|
||||||
. "\n `verstoesse_id` int(11) NOT NULL AUTO_INCREMENT,"
|
. "\n `verstoesse_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
. "\n `regelwerke_id` int(11) NOT NULL DEFAULT 0,"
|
. "\n `regelwerke_id` int(11) NOT NULL DEFAULT 0,"
|
||||||
@@ -1150,7 +1172,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_ordnungsstrafen` ("
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_ordnungsstrafen` ("
|
||||||
. "\n `ordnungsstrafen_id` int(11) NOT NULL AUTO_INCREMENT,"
|
. "\n `ordnungsstrafen_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
. "\n `verstoesse_id` int(11) NOT NULL DEFAULT 0,"
|
. "\n `verstoesse_id` int(11) NOT NULL DEFAULT 0,"
|
||||||
@@ -1168,7 +1190,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_email_vorlagen` ("
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_email_vorlagen` ("
|
||||||
. "\n `email_vorlagen_id` int(11) NOT NULL AUTO_INCREMENT,"
|
. "\n `email_vorlagen_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
. "\n `vorlage` varchar(64) NOT NULL,"
|
. "\n `vorlage` varchar(64) NOT NULL,"
|
||||||
@@ -1183,12 +1205,85 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_verbandsorgane` ("
|
||||||
|
. "\n `verbandsorgane_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `veranstalter_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `verbandsorgan` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `kategorie` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `reihenfolge` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `email` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `beschreibung` text NOT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`verbandsorgane_id`),"
|
||||||
|
. "\n KEY (`veranstalter_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_mitglied_von_verbandsorgan` ("
|
||||||
|
. "\n `mitglied_von_verbandsorgan_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `verbandsorgane_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `funktion` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `zusatzinfo` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `spieler_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `nachname` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `vorname` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `email` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `telefon` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `mobil` varchar(32) DEFAULT NULL,"
|
||||||
|
. "\n `reihenfolge` int(11) DEFAULT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`mitglied_von_verbandsorgan_id`),"
|
||||||
|
. "\n KEY (`verbandsorgane_id`),"
|
||||||
|
. "\n KEY (`spieler_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_halloffame` ("
|
||||||
|
. "\n `halloffame_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `veranstalter_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `halloffame` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `kategorie` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `spielform` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `reihenfolge` int(4) DEFAULT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`halloffame_id`),"
|
||||||
|
. "\n KEY `veranstalter_id` (`veranstalter_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = "CREATE TABLE IF NOT EXISTS `#__sportsmanager_mitglied_von_halloffame` ("
|
||||||
|
. "\n `mitglied_halloffame_id` int(11) NOT NULL AUTO_INCREMENT,"
|
||||||
|
. "\n `halloffame_id` int(11) NOT NULL,"
|
||||||
|
. "\n `jahr` int(4) DEFAULT NULL,"
|
||||||
|
. "\n `nicht_ausgespielt` tinyint(1) NOT NULL DEFAULT '0',"
|
||||||
|
. "\n `platz` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `verein_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `teamname` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `teamspieler` text DEFAULT NULL,"
|
||||||
|
. "\n `spieler1_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `spieler1` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n `spieler2_id` int(11) DEFAULT NULL,"
|
||||||
|
. "\n `spieler2` varchar(64) DEFAULT NULL,"
|
||||||
|
. "\n PRIMARY KEY (`mitglied_halloffame_id`),"
|
||||||
|
. "\n UNIQUE KEY `halloffame_jahr_platz` (`halloffame_id`,`jahr`,`platz`),"
|
||||||
|
. "\n KEY `halloffame_id` (`halloffame_id`),"
|
||||||
|
. "\n KEY `verein_id` (`verein_id`),"
|
||||||
|
. "\n KEY `spieler1_id` (`spieler1_id`),"
|
||||||
|
. "\n KEY `spieler2_id` (`spieler2_id`)"
|
||||||
|
. "\n ) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
|
||||||
|
$db->setQuery($query);
|
||||||
|
if (!$db->execute()) {
|
||||||
|
die($db->stderr(true));
|
||||||
|
}
|
||||||
|
|
||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'verbands_kuerzel', wert = 'tbe.';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'verbands_kuerzel', wert = 'tbe.';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'datenbank_version', wert = '116';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'datenbank_version', wert = '121';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
@@ -1219,11 +1314,11 @@ return new class () implements InstallerScriptInterface
|
|||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'turnierbaum_zeigen', wert = '0';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'turnierbaum_zeigen', wert = '0';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'ordnungsstrafen_verwenden', wert = '0';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'ordnungsstrafen_verwenden', wert = '0';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'spalte_mitglieder_zeigen', wert = '1';";
|
$query = "INSERT IGNORE #__sportsmanager_einstellungen SET name = 'spalte_mitglieder_zeigen', wert = '1';";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
@@ -1236,7 +1331,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
. "\n VALUES ('Beliebig', '0', '0', '0', '1', '3', '0');";
|
. "\n VALUES ('Beliebig', '0', '0', '0', '1', '3', '0');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT IGNORE INTO `#__sportsmanager_email_vorlagen` (`email_vorlagen_id`, `vorlage`) VALUES (NULL, 'Ordnungsstrafe');";
|
$query = "INSERT IGNORE INTO `#__sportsmanager_email_vorlagen` (`email_vorlagen_id`, `vorlage`) VALUES (NULL, 'Ordnungsstrafe');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
@@ -1244,7 +1339,7 @@ return new class () implements InstallerScriptInterface
|
|||||||
$query = "INSERT IGNORE INTO `#__sportsmanager_email_vorlagen` (`email_vorlagen_id`, `vorlage`) VALUES (NULL, 'Spielverlegung');";
|
$query = "INSERT IGNORE INTO `#__sportsmanager_email_vorlagen` (`email_vorlagen_id`, `vorlage`) VALUES (NULL, 'Spielverlegung');";
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "INSERT #__sportsmanager_rangliste_system"
|
$query = "INSERT #__sportsmanager_rangliste_system"
|
||||||
. "\n SET systembezeichnung = 'Klostermann/Wahle (1 Punkt für letzten Platz)',"
|
. "\n SET systembezeichnung = 'Klostermann/Wahle (1 Punkt für letzten Platz)',"
|
||||||
. "\n status = '1',"
|
. "\n status = '1',"
|
||||||
@@ -1677,6 +1772,10 @@ return new class () implements InstallerScriptInterface
|
|||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_team_strafen`;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "DROP TABLE IF EXISTS `#__sportsmanager_turnier`;";
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_turnier`;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
@@ -1732,21 +1831,37 @@ return new class () implements InstallerScriptInterface
|
|||||||
$query = "DROP TABLE IF EXISTS `#__sportsmanager_verteiler`;";
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_verteiler`;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "DROP TABLE IF EXISTS `#__sportsmanager_regelwerke`;";
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_regelwerke`;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "DROP TABLE IF EXISTS `#__sportsmanager_verstoesse`;";
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_verstoesse`;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "DROP TABLE IF EXISTS `#__sportsmanager_ordnungsstrafen`;";
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_ordnungsstrafen`;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
$query = "DROP TABLE IF EXISTS `#__sportsmanager_email_vorlagen`;";
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_email_vorlagen`;";
|
||||||
$db->setQuery( $query );
|
$db->setQuery( $query );
|
||||||
if (!$db->execute()) { die($db->stderr(true)); }
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_verbandsorgane`;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_mitglied_von_verbandsorgan`;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_halloffame`;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
|
|
||||||
|
$query = "DROP TABLE IF EXISTS `#__sportsmanager_mitglied_von_halloffame`;";
|
||||||
|
$db->setQuery( $query );
|
||||||
|
if (!$db->execute()) { die($db->stderr(true)); }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user