From 8f072292c199f856b63bae5f581af6b746a72715 Mon Sep 17 00:00:00 2001 From: Edwin Noorlander Date: Wed, 12 Nov 2025 08:34:20 +0100 Subject: [PATCH] Organize scattered PHP files into scripts/ and tests/ directories --- AGENTS.md | 0 AGENTS.md~ | 0 README.md | 0 collections.sqlite | Bin index.php | 0 public/.htaccess | 0 public/000-default.conf | 0 public/index.php | 0 public/uploads/69136d74d6b90_D_D.jpg | Bin public/uploads/69136da8e5916_Edwin_Gabrielle.jpeg | Bin public/uploads/691370c3b19f6_logo.png | Bin public/uploads/691370ce4f27e_D_D.jpg | Bin public/uploads/qr/03F784B2.svg | 0 public/uploads/qr/DC9726D2.svg | 0 add_col.php => scripts/add_col.php | 0 add_col2.php => scripts/add_col2.php | 0 add_col3.php => scripts/add_col3.php | 0 add_columns.php => scripts/add_columns.php | 4 ++-- check_items.php => scripts/check_items.php | 4 ++-- fix_db.php => scripts/fix_db.php | 4 ++-- migrate_db.php => scripts/migrate_db.php | 4 ++-- templates/overview.twig | 0 templates/parts.twig | 0 templates/print_qr.twig | 0 test_trans.php | 1 - {public => tests}/test.php | 0 test_qr.php => tests/test_qr.php | 2 +- tests/test_trans.php | 1 + 28 files changed, 10 insertions(+), 10 deletions(-) mode change 100644 => 100755 AGENTS.md mode change 100644 => 100755 AGENTS.md~ mode change 100644 => 100755 README.md mode change 100644 => 100755 collections.sqlite mode change 100644 => 100755 index.php mode change 100644 => 100755 public/.htaccess mode change 100644 => 100755 public/000-default.conf mode change 100644 => 100755 public/index.php mode change 100644 => 100755 public/uploads/69136d74d6b90_D_D.jpg mode change 100644 => 100755 public/uploads/69136da8e5916_Edwin_Gabrielle.jpeg mode change 100644 => 100755 public/uploads/691370c3b19f6_logo.png mode change 100644 => 100755 public/uploads/691370ce4f27e_D_D.jpg mode change 100644 => 100755 public/uploads/qr/03F784B2.svg mode change 100644 => 100755 public/uploads/qr/DC9726D2.svg rename add_col.php => scripts/add_col.php (100%) mode change 100644 => 100755 rename add_col2.php => scripts/add_col2.php (100%) mode change 100644 => 100755 rename add_col3.php => scripts/add_col3.php (100%) mode change 100644 => 100755 rename add_columns.php => scripts/add_columns.php (68%) mode change 100644 => 100755 rename check_items.php => scripts/check_items.php (69%) mode change 100644 => 100755 rename fix_db.php => scripts/fix_db.php (88%) mode change 100644 => 100755 rename migrate_db.php => scripts/migrate_db.php (83%) mode change 100644 => 100755 mode change 100644 => 100755 templates/overview.twig mode change 100644 => 100755 templates/parts.twig mode change 100644 => 100755 templates/print_qr.twig delete mode 100644 test_trans.php rename {public => tests}/test.php (100%) mode change 100644 => 100755 rename test_qr.php => tests/test_qr.php (88%) mode change 100644 => 100755 create mode 100755 tests/test_trans.php diff --git a/AGENTS.md b/AGENTS.md old mode 100644 new mode 100755 diff --git a/AGENTS.md~ b/AGENTS.md~ old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/collections.sqlite b/collections.sqlite old mode 100644 new mode 100755 diff --git a/index.php b/index.php old mode 100644 new mode 100755 diff --git a/public/.htaccess b/public/.htaccess old mode 100644 new mode 100755 diff --git a/public/000-default.conf b/public/000-default.conf old mode 100644 new mode 100755 diff --git a/public/index.php b/public/index.php old mode 100644 new mode 100755 diff --git a/public/uploads/69136d74d6b90_D_D.jpg b/public/uploads/69136d74d6b90_D_D.jpg old mode 100644 new mode 100755 diff --git a/public/uploads/69136da8e5916_Edwin_Gabrielle.jpeg b/public/uploads/69136da8e5916_Edwin_Gabrielle.jpeg old mode 100644 new mode 100755 diff --git a/public/uploads/691370c3b19f6_logo.png b/public/uploads/691370c3b19f6_logo.png old mode 100644 new mode 100755 diff --git a/public/uploads/691370ce4f27e_D_D.jpg b/public/uploads/691370ce4f27e_D_D.jpg old mode 100644 new mode 100755 diff --git a/public/uploads/qr/03F784B2.svg b/public/uploads/qr/03F784B2.svg old mode 100644 new mode 100755 diff --git a/public/uploads/qr/DC9726D2.svg b/public/uploads/qr/DC9726D2.svg old mode 100644 new mode 100755 diff --git a/add_col.php b/scripts/add_col.php old mode 100644 new mode 100755 similarity index 100% rename from add_col.php rename to scripts/add_col.php diff --git a/add_col2.php b/scripts/add_col2.php old mode 100644 new mode 100755 similarity index 100% rename from add_col2.php rename to scripts/add_col2.php diff --git a/add_col3.php b/scripts/add_col3.php old mode 100644 new mode 100755 similarity index 100% rename from add_col3.php rename to scripts/add_col3.php diff --git a/add_columns.php b/scripts/add_columns.php old mode 100644 new mode 100755 similarity index 68% rename from add_columns.php rename to scripts/add_columns.php index 2f933d8..de75d5b --- a/add_columns.php +++ b/scripts/add_columns.php @@ -1,6 +1,6 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); try { diff --git a/check_items.php b/scripts/check_items.php old mode 100644 new mode 100755 similarity index 69% rename from check_items.php rename to scripts/check_items.php index f7a25b9..896b11c --- a/check_items.php +++ b/scripts/check_items.php @@ -1,6 +1,6 @@ query('SELECT id, name FROM items'); = ->fetchAll(PDO::FETCH_ASSOC); diff --git a/fix_db.php b/scripts/fix_db.php old mode 100644 new mode 100755 similarity index 88% rename from fix_db.php rename to scripts/fix_db.php index 7b2b6f9..868b400 --- a/fix_db.php +++ b/scripts/fix_db.php @@ -1,7 +1,7 @@ exec('ALTER TABLE items ADD COLUMN id_code TEXT UNIQUE'); diff --git a/templates/overview.twig b/templates/overview.twig old mode 100644 new mode 100755 diff --git a/templates/parts.twig b/templates/parts.twig old mode 100644 new mode 100755 diff --git a/templates/print_qr.twig b/templates/print_qr.twig old mode 100644 new mode 100755 diff --git a/test_trans.php b/test_trans.php deleted file mode 100644 index e0d4237..0000000 --- a/test_trans.php +++ /dev/null @@ -1 +0,0 @@ -trans("Category not found"); diff --git a/public/test.php b/tests/test.php old mode 100644 new mode 100755 similarity index 100% rename from public/test.php rename to tests/test.php diff --git a/test_qr.php b/tests/test_qr.php old mode 100644 new mode 100755 similarity index 88% rename from test_qr.php rename to tests/test_qr.php index 97aaa0d..b940824 --- a/test_qr.php +++ b/tests/test_qr.php @@ -1,5 +1,5 @@ QRCode::OUTPUT_MARKUP_SVG, 'eccLevel' => QRCode::ECC_L]);$ diff --git a/tests/test_trans.php b/tests/test_trans.php new file mode 100755 index 0000000..6c486a8 --- /dev/null +++ b/tests/test_trans.php @@ -0,0 +1 @@ +trans("Category not found");