Skip to content

Commit 9f3dfc4

Browse files
V1.2.0
PASSAGE
1 parent c89ff2f commit 9f3dfc4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4599
-881
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/assets/img/brand
22
másolata.env
3+
/assets/img/trainers
4+
/assets/img/logincard
5+
/assets/docs/invoices
6+
/assets/img/profiles
37
admin/shop/gateway/PAYPALCHECK.php
48
\!\!\!SHOWCASE/index.php

CODE_OF_CONDUCT.MD

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# 📜 Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and maintainers of the GYM One project pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, experience level, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We are committed to fostering an open, welcoming, diverse, inclusive, and respectful community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contribute to a positive environment include:
12+
13+
- Using welcoming and inclusive language
14+
- Being respectful of differing viewpoints and experiences
15+
- Gracefully accepting constructive criticism
16+
- Showing empathy toward others
17+
18+
Examples of unacceptable behavior include:
19+
20+
- The use of sexualized language or imagery
21+
- Trolling, insulting or derogatory comments
22+
- Public or private harassment
23+
- Publishing others’ private information without explicit permission
24+
- Other conduct which could reasonably be considered inappropriate
25+
26+
## Our Responsibilities
27+
28+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
29+
30+
They have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that do not align with this Code of Conduct.
31+
32+
## Scope
33+
34+
This Code of Conduct applies within all project spaces and public communication channels (e.g., GitHub issues, pull requests, discussions, Discord, etc.), and it also applies when an individual is representing the project in public spaces.
35+
36+
## Enforcement
37+
38+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting us at:
39+
40+
41+
All complaints will be reviewed and investigated promptly and fairly.
42+
43+
## Attribution
44+
45+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
46+
47+
---
48+
49+
Let’s build a safe, fun, and respectful community together!

LICENSE

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GYM One License Agreement
22

3-
**Version Beta 1.0 - December 15, 2024**
3+
**Version 1.0 - June 27, 2025**
44

55
This License Agreement (hereafter referred to as "Agreement") governs the use, distribution, and modification of the GYM One software (hereafter referred to as "Software"). By using, distributing, or modifying the Software, you agree to be bound by the terms of this Agreement.
66

@@ -116,10 +116,13 @@ For any questions or inquiries about this Agreement or the Software, please cont
116116
117117
[https://www.gymoneglobal.com]
118118

119+
**GYM One Press**
120+
121+
119122
---
120123

121124
## 14. **Conclusion**
122125

123126
By downloading, installing, using, or distributing the Software, you agree to the terms and conditions outlined in this Agreement. Failure to comply with these terms may result in legal consequences, including termination of rights granted under this Agreement.
124127

125-
**Last Updated**: October 22, 2024
128+
**Last Updated**: June 27, 2025

SECURITY.MD

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# 🔐 Security Policy
2+
3+
Thank you for helping make GYM One more secure!
4+
5+
The security of our users and systems is a top priority for us. If you discover a vulnerability in the GYM One project, please follow the guidelines below to report it responsibly.
6+
7+
## 📬 Reporting a Vulnerability
8+
9+
If you believe you have found a security issue:
10+
11+
1. **Do NOT disclose it publicly.**
12+
2. Send us an email at:
13+
14+
3. Please include:
15+
- A clear description of the issue
16+
- Steps to reproduce (if applicable)
17+
- Your environment details (e.g. browser, OS)
18+
- Any potential fixes or suggestions you may have
19+
20+
## ⏱ Response Timeline
21+
22+
- We will acknowledge your report **within 5 business days**.
23+
- The issue will be triaged and addressed based on severity.
24+
- We aim to resolve valid issues as quickly as possible.
25+
26+
## 💡 Recognition
27+
28+
We sincerely appreciate and recognize individuals who help improve GYM One's security through responsible disclosure. With your permission, we can acknowledge your contribution in our project documentation.
29+
30+
---
31+
32+
Thank you for your support and commitment to keeping our community safe!

admin/boss/chroom/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function read_env_file($file_path)
383383
<option value="Female"><?php echo $translations["girl"]; ?></option>
384384
</select>
385385
</div>
386-
<button type="submit" name="add" class="btn btn-primary mt-5"><?php echo $translations["add"]; ?></button>
386+
<button type="submit" name="add" class="btn btn-primary mt-5"><i class="bi bi-plus-circle"></i> <?php echo $translations["add"]; ?></button>
387387
</form>
388388

389389
<table class="mt-4 table table-bordered">
@@ -409,7 +409,7 @@ function read_env_file($file_path)
409409
}
410410
echo "</td>
411411
<td>
412-
<a href='?delete={$row['id']}' class='btn btn-danger btn-sm'>{$translations["delete"]}</a>
412+
<a href='?delete={$row['id']}' class='btn btn-danger btn-sm'><i class='bi bi-x-circle'></i> {$translations["delete"]}</a>
413413
</td>
414414
</tr>";
415415
}

admin/boss/hours/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function read_env_file($file_path)
395395
<?php endforeach; ?>
396396
</tbody>
397397
</table>
398-
<button type="submit" class="btn btn-primary"><?= $translations["save"]; ?></button>
398+
<button type="submit" class="btn btn-primary"><i class="bi bi-save"></i> <?= $translations["save"]; ?></button>
399399

400400
</form>
401401
<?php

admin/boss/mainsettings/index.php

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,30 +110,34 @@ function read_env_file($file_path)
110110
}
111111
}
112112

113-
function handleFileUpload($fileInputName, $targetFileName, $uploadDir)
113+
function handleFileUpload($fileInputName, $targetFileName, $uploadDir, $submitName)
114114
{
115-
if (isset($_FILES[$fileInputName])) {
115+
if (isset($_POST[$submitName]) && isset($_FILES[$fileInputName])) {
116116
$file_type = strtolower(pathinfo($_FILES[$fileInputName]['name'], PATHINFO_EXTENSION));
117117
$allowed_types = array('png', 'jpg', 'jpeg');
118118
if (!in_array($file_type, $allowed_types)) {
119-
header("Refresh:2");
119+
return;
120120
}
121121
if ($_FILES[$fileInputName]['size'] > 4000000) {
122-
header("Refresh:2");
122+
return;
123123
}
124-
if (empty($errors)) {
125-
$file_tmp = $_FILES[$fileInputName]['tmp_name'];
126-
$target_file = $uploadDir . $targetFileName;
127-
move_uploaded_file($file_tmp, $target_file);
128-
header("Refresh:2");
124+
125+
$file_tmp = $_FILES[$fileInputName]['tmp_name'];
126+
$target_file = $uploadDir . $targetFileName;
127+
128+
if (move_uploaded_file($file_tmp, $target_file)) {
129+
header("Refresh:1");
130+
exit;
129131
}
130132
}
131133
}
132134

133135
$upload_dir = '../../../assets/img/brand/';
134-
handleFileUpload('logoFile', 'logo.png', $upload_dir);
135-
handleFileUpload('backgroundFile', 'background.png', $upload_dir);
136-
handleFileUpload('faviconFile', 'favicon.png', $upload_dir);
136+
137+
handleFileUpload('logoFile', 'logo.png', $upload_dir, 'uploadLogo');
138+
handleFileUpload('backgroundFile', 'background.png', $upload_dir, 'uploadBackground');
139+
handleFileUpload('faviconFile', 'favicon.png', $upload_dir, 'uploadFavicon');
140+
137141

138142
$sql = "SELECT is_boss FROM workers WHERE userid = ?";
139143
$stmt = $conn->prepare($sql);
@@ -405,6 +409,7 @@ function handleFileUpload($fileInputName, $targetFileName, $uploadDir)
405409
<option value="ES" <?= ($env_data['LANG_CODE'] ?? '') == 'ES' ? 'selected' : '' ?>><?php echo $translations["ES"]; ?></option>
406410
<option value="GB" <?= ($env_data['LANG_CODE'] ?? '') == 'GB' ? 'selected' : '' ?>><?php echo $translations["GB"]; ?></option>
407411
<option value="DE" <?= ($env_data['LANG_CODE'] ?? '') == 'DE' ? 'selected' : '' ?>><?php echo $translations["DE"]; ?></option>
412+
<option value="TR" <?= ($env_data['LANG_CODE'] ?? '') == 'TR' ? 'selected' : '' ?>><?php echo $translations["TR"]; ?></option>
408413

409414
</select>
410415
</div>
@@ -486,7 +491,7 @@ class="form-text"><?php echo $translations["metakeys-separeate"]; ?>
486491

487492
</div>
488493
<button type="submit"
489-
class="btn btn-primary"><?php echo $translations["save"]; ?></button>
494+
class="btn btn-primary"><i class="bi bi-save"></i> <?php echo $translations["save"]; ?></button>
490495

491496
</form>
492497
<?php
@@ -522,7 +527,7 @@ class="btn btn-primary"><?php echo $translations["save"]; ?></button>
522527
<div class="row text-center">
523528
<div class="col">
524529
<img class="img img-fluid" width="150px"
525-
src="../../../assets/img/brand/logo.png" alt="Logo Preview">
530+
src="../../../assets/img/brand/logo.png?<?php echo filemtime("../../../assets/img/brand/logo.png"); ?>" alt="Logo Preview">
526531
</div>
527532
</div>
528533
</div>
@@ -547,7 +552,7 @@ class="btn btn-primary"><?php echo $translations["save"]; ?></button>
547552
<div class="row text-center">
548553
<div class="col">
549554
<img class="img img-fluid" width="150px"
550-
src="../../../assets/img/brand/background.png" alt="Background Preview">
555+
src="../../../assets/img/brand/background.png?<?php echo filemtime("../../../assets/img/brand/background.png"); ?>" alt="Background Preview">
551556
</div>
552557
</div>
553558
</div>
@@ -572,7 +577,7 @@ class="btn btn-primary"><?php echo $translations["save"]; ?></button>
572577
<div class="row text-center">
573578
<div class="col">
574579
<img class="img img-fluid" width="150px"
575-
src="../../../assets/img/brand/favicon.png" alt="Favicon Preview">
580+
src="../../../assets/img/brand/favicon.png?<?php echo filemtime("../../../assets/img/brand/favicon.png"); ?>" alt="Favicon Preview">
576581
</div>
577582
</div>
578583
</div>

admin/boss/packages/add/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ function read_env_file($file_path)
336336
<label for="barcode" class="form-label"><?php echo $translations["product-barcode"]; ?>:</label>
337337
<input type="number" id="barcode" name="barcode" class="form-control" required>
338338
</div>
339-
<button type="submit" class="btn btn-primary"><?php echo $translations["add"]; ?></button>
340-
<a href="../" class="btn btn-secondary"><?php echo $translations["not-yet"]; ?></a>
339+
<button type="submit" class="btn btn-primary"><i class="bi bi-box-arrow-down"></i> <?php echo $translations["add"]; ?></button>
340+
<a href="../" class="btn btn-secondary"><i class="bi bi-box-arrow-left"></i> <?php echo $translations["not-yet"]; ?></a>
341341
</form>
342342
</div>
343343
</div>

admin/boss/packages/edit/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ function read_env_file($file_path)
397397
</div>
398398
</div>
399399
<div class="mb-10">
400-
<button type="submit" class="btn btn-primary"><?php echo $translations["save"]; ?></button>
401-
<a href="../index.php" class="btn btn-secondary"><?php echo $translations["not-yet"]; ?></a>
400+
<button type="submit" class="btn btn-primary"><i class="bi bi-box-arrow-down"></i> <?php echo $translations["save"]; ?></button>
401+
<a href="../index.php" class="btn btn-secondary"><i class="bi bi-box-arrow-left"></i> <?php echo $translations["not-yet"]; ?></a>
402402
</div>
403403
</form>
404404
<?php endif; ?>

admin/boss/packages/index.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,20 +339,20 @@ function read_env_file($file_path)
339339
<form method="GET" class="mb-4">
340340
<div class="input-group">
341341
<input type="text" name="search" class="form-control mt-3" placeholder="<?php echo $translations["searchbyproductname"]; ?>" value="<?php echo htmlspecialchars($search); ?>">
342-
<button class="btn btn-primary mt-3" type="submit"><i class="bi bi-search"></i><?php echo $translations["search"]; ?>
342+
<button class="btn btn-primary mt-3" type="submit"><i class="bi bi-search"></i> <?php echo $translations["search"]; ?>
343343
</button>
344344
</div>
345345
</form>
346346
</div>
347347
</div>
348348
<div class="col-sm-4 text-center">
349349
<div class="card shadow">
350-
<a href="add/" class="btn btn-lg btn-success"><?php echo $translations["addpackage"]; ?></a>
350+
<a href="add/" class="btn btn-lg btn-success"><i class="bi bi-box-seam"></i> <?php echo $translations["addpackage"]; ?></a>
351351
</div>
352352
</div>
353353
<div class="col-sm-4 text-center">
354354
<div class="card shadow">
355-
<a href="inventory/" class="btn btn-lg btn-info"><?php echo $translations["werhousecorrection"]; ?>
355+
<a href="inventory/" class="btn btn-lg btn-info"><i class="bi bi-clipboard-check"></i> <?php echo $translations["werhousecorrection"]; ?>
356356
<?php if ($low_stock_count > 0): ?>
357357
<span class="badge badge-warning"><?php echo $low_stock_count; ?></span>
358358
<?php endif; ?></a>
@@ -374,7 +374,7 @@ function read_env_file($file_path)
374374
</div>
375375
<?php endwhile; ?>
376376
<?php else: ?>
377-
<p class="text-center">Nincs találat.</p>
377+
<p class="text-center"><?php echo $translations["nopackages"];?></p>
378378
<?php endif; ?>
379379
</div>
380380

0 commit comments

Comments
 (0)