-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e29fe13
Showing
45 changed files
with
2,488 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Bug report | ||
description: Report something not working on the website. See below for mobile app. | ||
labels: ['bug'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
<b>Thank you for reporting an issue.</b> | ||
- type: textarea | ||
id: url | ||
attributes: | ||
label: Exact URL of where the bug happened | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce the bug | ||
description: Provide precise step by step instructions on how to reproduce the bug | ||
placeholder: | | ||
1. Go to ... | ||
2. Click ... | ||
3. ... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: What did you expect to happen? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: outcome | ||
attributes: | ||
label: What happened instead? | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Operating system | ||
description: Specify the OS you are using (e.g. Windows 11) | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Browser and version (or alternate access method) | ||
description: Specify the browser and version you are using (e.g. Firefox 110.0). Otherwise, specify your access method (such as API). | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
description: | | ||
Provide any additional information that will give more context for the issue you are encountering. | ||
Screenshots can be added by clicking this area and then pasting or dragging them in. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Other | ||
about: Other issue or enhancement for the website. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
daysUntilStale: 730 | ||
daysUntilClose: 14 | ||
exemptLabels: | ||
- prospect | ||
- foundational | ||
- wanted | ||
- bug | ||
staleLabel: stale | ||
markComment: > | ||
There has been no activity on this issue for 2 years. It will be | ||
automatically closed in 2 weeks. | ||
If the issue is still relevant, please briefly explain (or remove the label). | ||
Feel free to reopen at any time. | ||
closeComment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# the composer package lock file and install directory | ||
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# /composer.lock | ||
/fuel/vendor | ||
|
||
# the fuelphp document | ||
/docs/ | ||
|
||
# you may install these packages with `oil package`. | ||
# http://fuelphp.com/docs/packages/oil/package.html | ||
# /fuel/packages/auth/ | ||
# /fuel/packages/email/ | ||
# /fuel/packages/oil/ | ||
# /fuel/packages/orm/ | ||
# /fuel/packages/parser/ | ||
|
||
# dynamically generated files | ||
/fuel/app/logs/*/*/* | ||
/fuel/app/cache/*/* | ||
/fuel/app/config/crypt.php | ||
|
||
# Server | ||
*/.htpasswd | ||
*/.htaccess | ||
|
||
|
||
# PHPStorm | ||
.idea/ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Erik Skopp | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SimpleDWZ | ||
|
||
Track your chess club's rating development effortlessly. | ||
|
||
|
||
## Expose | ||
My developed tool allows chess clubs to track their skill development similar to the German Chess Federation, but without the hefty price tag they demand for an official evaluation. Unlike the German Chess Federation, which demands a significant amount of money for rating calculations, my tool offers a cost-effective alternative. | ||
|
||
Instead of exploiting clubs financially, my tool provides a fair opportunity to track DWZ development. It is based on the same calculation methods as the German Chess Federation and takes into account players' performance in tournaments or matches. Through regular updates, clubs can analyze their skill development transparently and without exorbitant costs. | ||
|
||
Furthermore, my tool provides features to visualize DWZ development without any additional charges, as it is completely free and open-source. Clubs can generate charts and graphs to identify trends and visually represent players' progress. | ||
|
||
So why spend a substantial amount of money on the German Chess Federation when my tool offers a cost-effective and reliable alternative? It's time for clubs to invest their hard-earned money wisely and free themselves from the expensive offerings of an official evaluation. My tool is ready to assist clubs in effectively and budget-friendly tracking their DWZ development. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Erik Skopp | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SimpleDWZ | ||
|
||
Track your chess club's rating development effortlessly. | ||
|
||
|
||
## Expose | ||
My developed tool allows chess clubs to track their skill development similar to the German Chess Federation, but without the hefty price tag they demand for an official evaluation. Unlike the German Chess Federation, which demands a significant amount of money for rating calculations, my tool offers a cost-effective alternative. | ||
|
||
Instead of exploiting clubs financially, my tool provides a fair opportunity to track DWZ development. It is based on the same calculation methods as the German Chess Federation and takes into account players' performance in tournaments or matches. Through regular updates, clubs can analyze their skill development transparently and without exorbitant costs. | ||
|
||
Furthermore, my tool provides features to visualize DWZ development without any additional charges, as it is completely free and open-source. Clubs can generate charts and graphs to identify trends and visually represent players' progress. | ||
|
||
So why spend a substantial amount of money on the German Chess Federation when my tool offers a cost-effective and reliable alternative? It's time for clubs to invest their hard-earned money wisely and free themselves from the expensive offerings of an official evaluation. My tool is ready to assist clubs in effectively and budget-friendly tracking their DWZ development. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
White,DWZ_old,DWZ_new,Result,Black,DWZ_old,DWZ_new,Date,Time,DB_Fragment | ||
Erik,1100,1108,1-0,Lara,900,892,20230626+,013402-,P0HuDZvcZsWsYuzP | ||
Felix,900,902,0.5-0.5,Georg,950,948,20230626+,013413-,aCJLLl4JUSF0j6TK | ||
Erik,1108,1103,0.5-0.5,Lena,1000,1005,20230626+,013428-,YHIfxf5FAMU0E73R | ||
Erik,1103,1076,0-1,Sina,800,827,20230626+,013449-,Js35irqCnBTUVHsI | ||
Georg,948,967,1-0,Lena,1005,986,20230626+,013518-,DwR0FMRiF2I9iAdm | ||
Lara,892,879,0-1,Georg,967,980,20230626+,013525-,WhwpwHQlXPMEiKz5 | ||
Erik,1076,1088,1-0,Georg,980,968,20230626+,013539-,KEjU7Ylc2eCvldz6 | ||
Lena,986,966,0-1,Felix,902,922,20230626+,013607-,RkyGnHuB8ipTFXwb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Sina,827 | ||
Lara,879 | ||
Erik,1088 | ||
Georg,968 | ||
Lena,966 | ||
Felix,922 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Lara,900,892,879 | ||
Lena,1000,1005,986,966 | ||
Georg,950,948,967,980,968 | ||
Sina,800,827 | ||
Felix,900,902,922 | ||
Erik,1100,1108,1103,1076,1088 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
// Weiterleitung | ||
header("Location: ../"); | ||
die(__DIR__); | ||
?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
include __DIR__."/php/index.php"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function validateInputText(input) { | ||
input.value = input.value.replace(/[^A-Za-z]/g, ""); | ||
} | ||
|
||
function validateInputZahl(input) { | ||
input.value = input.value.replace(/[^0-9]/g, ""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
<label for="message">New player:</label> | ||
<input type="text" id="message" name="balg" value="" oninput="validateInputText(this)" required><br><br> | ||
|
||
<label for="message">Start rating:</label> | ||
<input type="text" id="message" name="rating" value="900" required><br><br> | ||
|
||
<div id="startrating">A rating of 900 is recommended as a starting value.</div><br> | ||
<br> | ||
|
||
<button type="submit">Add player</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Internal Rating</title> | ||
<link rel="icon" href="../img/logo.png" > | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" type="text/css" href="../style/style.css"> | ||
<link rel="stylesheet" type="text/css" href="../style/div.css"> | ||
|
||
|
||
</head> | ||
|
||
<body> | ||
<div class="container"> | ||
<h1> Internal Rating </h1> <br> <hr> | ||
<?php | ||
// Aktueller Pfad | ||
$currentPath = __DIR__."/"; | ||
|
||
|
||
// Lade Daten aus dem POST-Array | ||
include $currentPath."dwz.php"; | ||
$child = $_POST["balg"]; | ||
$rating = $_POST["rating"]; | ||
|
||
|
||
// Testen der Daten | ||
if (!preg_match('/^[1-9][0-9]*$/', $rating) && $rating !== '0') { | ||
echo "{$rating} ist keine normale ganze Zahl."; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
|
||
if (!preg_match('/^[1-9][0-9]*$/', $rating) && $rating !== '0') { | ||
echo "{$rating} ist keine normale ganze Zahl."; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
|
||
if ($rating <= 799){ | ||
echo "Das Rating darf nicht unter 800 sein (".$rating.")"; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
if (strlen($child) < 3){ | ||
echo "Der Name muss mindestens 3 Zeichen haben (".$child.")"; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
|
||
if (strlen($child) > 12){ | ||
echo "Der Name muss weniger als 12 Zeichen haben (".$child.")"; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
|
||
if (preg_match('/\s|[^\w\s]/', $child)){ | ||
echo "Error: Sonderzeichen"; | ||
echo "Bitte entferne die Sonderzeichen (".$child.")"; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
|
||
if (preg_match('/^[a-zA-Z]+$/', $child) == False){ | ||
echo "Sonderzeichen II"; | ||
echo "Bitte gib einen normalen Namen ein (".$child.")"; | ||
die("<br><br><a href='../'><button>Back</button></a>"); | ||
} | ||
|
||
$rating = roundNumber($rating); | ||
|
||
$tableFile = substr(__DIR__, 0, -3)."/txt/table.txt"; | ||
|
||
if (!file_exists($tableFile)) { | ||
touch($tableFile); | ||
chmod($tableFile, 0644); | ||
} | ||
|
||
$fileHandle = fopen($tableFile, 'a+'); | ||
|
||
if ($fileHandle) { | ||
if (flock($fileHandle, LOCK_EX)) { | ||
fseek($fileHandle, 0); | ||
|
||
$fileContent = file_get_contents($tableFile); | ||
|
||
if (strpos($fileContent, $child) === false) { | ||
fwrite($fileHandle, $child . "," . $rating . "\n"); | ||
echo "TABLE: Eintrag angelegt. <br><br>"; | ||
} else { | ||
echo "TABLE: Eintrag existiert bereits. <br><br>"; | ||
} | ||
|
||
flock($fileHandle, LOCK_UN); | ||
} else { | ||
echo "Fehler beim Sperren der CSV-Datei."; | ||
} | ||
|
||
fclose($fileHandle); | ||
} | ||
|
||
$currentPath = __DIR__; | ||
|
||
$child = $_POST["balg"]; | ||
$rating = $_POST["rating"]; | ||
|
||
$tableFile = substr(__DIR__, 0, -3)."/txt/user.txt"; | ||
|
||
if (!file_exists($tableFile)) { | ||
touch($tableFile); | ||
chmod($tableFile, 0644); | ||
} | ||
|
||
$fileHandle = fopen($tableFile, 'a+'); | ||
|
||
if ($fileHandle) { | ||
if (flock($fileHandle, LOCK_EX)) { | ||
fseek($fileHandle, 0); | ||
|
||
$fileContent = file_get_contents($tableFile); | ||
|
||
if (strpos($fileContent, $child) === false) { | ||
fwrite($fileHandle, $child . "," . $rating . "\n"); | ||
echo "USER: Eintrag angelegt. <br><br>"; | ||
} else { | ||
echo "USER: Eintrag existiert bereits. <br><br>"; | ||
} | ||
|
||
flock($fileHandle, LOCK_UN); | ||
} else { | ||
echo "Fehler beim Sperren der CSV-Datei."; | ||
} | ||
|
||
fclose($fileHandle); | ||
} | ||
|
||
print("<br><br><a href='../'><button>Back</button></a>"); | ||
|
||
?> | ||
</div> | ||
<!-- partial:index.partial.html --> | ||
<?php include substr(__DIR__, 0, -3)."/php/particel.php"; ?> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.