Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve Attendance control #5

Merged
merged 8 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
db.sqlite
event/.htpasswd
src/.htpasswd
vendor/
.env*
.phpunit.cache/
Expand Down
5 changes: 4 additions & 1 deletion .makim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ groups:
runserver:
help: Run the server application
run: |
cd event
cd src
# echo "HOST_ADDRESS=http://localhost:8081" > .env
php -S localhost:8081
Expand All @@ -15,4 +15,7 @@ groups:
./vendor/bin/phpunit tests/SettingsTest.php
./vendor/bin/phpunit tests/PersonTest.php
./vendor/bin/phpunit tests/SubscriptionTest.php
./vendor/bin/phpunit tests/EventTest.php
./vendor/bin/phpunit tests/EventSessionTest.php
./vendor/bin/phpunit tests/AttendanceTest.php
# ./vendor/bin/phpunit tests/EmailTest.php
52 changes: 0 additions & 52 deletions event/attendance_list.php

This file was deleted.

55 changes: 0 additions & 55 deletions event/attendance_log_manual.php

This file was deleted.

28 changes: 0 additions & 28 deletions event/index.php

This file was deleted.

15 changes: 0 additions & 15 deletions event/migrations/all.php

This file was deleted.

2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
level: 6
paths:
- event
- src
- tests
treatPhpDocTypesAsCertain: false
File renamed without changes.
5 changes: 5 additions & 0 deletions src/attendance_log.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
// Redirect to templates/index.php
header("Location: templates/attendance/log.php");
exit; // Make sure to exit after the redirection
?>
5 changes: 4 additions & 1 deletion event/generate_qr.php → src/generate_qr.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
include __DIR__ . "/lib/settings.php";
include __DIR__ . "/lib/qr.php";

global $BASE_URL;
?>
<link rel="stylesheet" href="./static/style.css">
<link rel="stylesheet" href="<?php echo $BASE_URL; ?>/static/style.css">
<?php

$fullname = $_GET['fullname'];
Expand Down
5 changes: 5 additions & 0 deletions src/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
// Redirect to templates/index.php
header("Location: templates/index.php");
exit; // Make sure to exit after the redirection
?>
File renamed without changes.
Loading