Skip to content

Commit

Permalink
feat: Improve Attendance control (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored Nov 9, 2023
1 parent 38e2a77 commit 9cd9595
Show file tree
Hide file tree
Showing 54 changed files with 1,557 additions and 251 deletions.
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

0 comments on commit 9cd9595

Please sign in to comment.