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

Codeigniter 4 upgrade #3858

Open
wants to merge 275 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
275 commits
Select commit Hold shift + click to select a range
583e68b
Correct dockerignore to pick up changes to path folder names.
SteveIreland Jun 25, 2023
b27ce90
Revert to last working Dockerfile (#3584)
jekkos Jun 25, 2023
eeb19b5
added note about intl
objecttothis Sep 5, 2023
f275f43
Reinstate en-US files (#3468)
jekkos Sep 5, 2023
908422b
CI4: string interpolation changes (#3811)
owlbrudder Sep 8, 2023
41adce2
Add CI4 coding standards linter
jekkos Sep 19, 2023
d7fde47
CI4: Bugfix - add function to remove .env.bak issue #3826
owlbrudder Sep 21, 2023
289d8da
Clean up work on reports listing view and lang() methods (#3707)
edwinbsmith Sep 29, 2023
5f7160a
Ci4 bugfix string interpolation (#3836)
owlbrudder Oct 4, 2023
45c874f
Add CI4 language migration scripts (#3468)
jekkos Oct 14, 2023
239fede
CI4: Bugfix to correct two config issues
owlbrudder Oct 19, 2023
9d22ebf
CI4: Bugfix test sanity of config item
owlbrudder Oct 19, 2023
7f03a10
Bump to allow php 8.1
objecttothis Oct 31, 2023
48bd313
Corrected keys for Bootstrap_tables.php
objecttothis Oct 31, 2023
b795776
Remove Gruntfile.js + bower.json (#3842)
jekkos Oct 31, 2023
81cbd53
Remove location from gitignore
objecttothis Nov 2, 2023
7f8d66e
add location to gitignore
objecttothis Oct 31, 2023
65d0bdc
Replaced BASEPATH with FCPATH
objecttothis Nov 2, 2023
aea8981
Upgrade CI to 4.4.3
objecttothis Nov 2, 2023
f70c0ea
Fixed incorrect session table name
objecttothis Nov 2, 2023
23bb9ba
Syntax errors
objecttothis Nov 2, 2023
b114ae2
fixed out of range segment
objecttothis Nov 2, 2023
fe68278
Fixed Thumbnail Generation Endpoint
objecttothis Nov 2, 2023
6cf237c
Removed non-existent folders from gitignore
objecttothis Nov 2, 2023
8f14d09
gitignore logs
objecttothis Nov 2, 2023
f564035
gitignore debugbar
objecttothis Nov 2, 2023
d877d19
gitignore transient files
objecttothis Nov 2, 2023
ba7d2cb
- Converted statement to ternary notation for readability
objecttothis Nov 2, 2023
d618063
Formatting fixes
objecttothis Nov 3, 2023
ddd8435
Roll back committed injections
objecttothis Nov 3, 2023
4156670
ignore webp files
objecttothis Nov 3, 2023
d76d742
ignore files in uploads
objecttothis Nov 3, 2023
ceabedc
bump npm-check-updates to 16.14.6
objecttothis Nov 3, 2023
9d59cfc
bump gulp-debug to 5.0.1
objecttothis Nov 3, 2023
e54ea16
bump readable-stream to 4.4.2
objecttothis Nov 3, 2023
765f418
bump bootstrap5
objecttothis Nov 3, 2023
1aa1238
Resolve issue with item_pics
objecttothis Nov 3, 2023
5f13840
Sync language files (#3468)
jekkos Nov 5, 2023
56e9657
Fix bootstrap tables prefix in conversion
jekkos Nov 5, 2023
96d3bb5
Attributes queries fixes
objecttothis Nov 6, 2023
132a12c
Downgraded laminas/laminas-escaper
objecttothis Nov 7, 2023
acaaee7
Attributes fixes and warning removal
objecttothis Nov 7, 2023
5e283f9
Attributes fixes and warning removal
objecttothis Nov 7, 2023
d1ded17
Attributes fixes and warning removal
objecttothis Nov 9, 2023
4cb5055
Formatting fixes
objecttothis Nov 9, 2023
d2bfbb7
Code fixes
objecttothis Nov 9, 2023
f98f301
Code fixes
objecttothis Nov 10, 2023
089e6b8
Fix string escape (#3468)
jekkos Nov 10, 2023
c420a61
Fix gitignore
objecttothis Nov 17, 2023
9063b91
Formatting and naming refactor
objecttothis Nov 17, 2023
4d9e78d
Database Logging fixes
objecttothis Nov 27, 2023
ba5d745
Changed db log file type
objecttothis Nov 27, 2023
16edca1
Added long running query tag
objecttothis Nov 30, 2023
76b3fc0
Update .env
objecttothis Nov 30, 2023
c43e751
Corrected Problems
objecttothis Nov 30, 2023
fe6ea7d
Corrected Problems
objecttothis Nov 30, 2023
37d7128
Corrected Problems
objecttothis Nov 30, 2023
6756ca0
Declared class properties
objecttothis Nov 30, 2023
8e0acb1
Fixes
objecttothis Dec 1, 2023
d9e7d09
Fix Request variable retrieval
objecttothis Dec 1, 2023
d2c9d38
Added missing return type to function
objecttothis Dec 1, 2023
b81d47b
PSR compliance and formatting changes
objecttothis Dec 4, 2023
4fa7c2f
Formatting fixes
objecttothis Dec 4, 2023
8b6fc3b
Minor changes and fixes
objecttothis Dec 4, 2023
77066b2
Update Config.php (#3884)
odiea Dec 4, 2023
2befcdd
Fixed multiselect form issues
objecttothis Dec 4, 2023
d80084d
Fixed incorrectly named function for route.
objecttothis Dec 4, 2023
4b938ad
Fixed bug causing checkbox not to populate
objecttothis Dec 4, 2023
52c4609
Removed htmlspecialchars() calls
objecttothis Dec 5, 2023
eb9a965
Remove debugging log_message() references
objecttothis Dec 5, 2023
3fa60ab
Refactoring
objecttothis Dec 5, 2023
e9af46e
Corrected Function call
objecttothis Dec 5, 2023
10af7fe
Fixed enforce_privacy checkbox
objecttothis Dec 5, 2023
68cc317
PHPdocs
objecttothis Dec 5, 2023
abc3731
Compatibility changes
objecttothis Dec 6, 2023
1b1f3ca
PHPdocs
objecttothis Dec 7, 2023
494e818
Corrected ID
objecttothis Dec 7, 2023
e4f7dee
bootstrap-table
objecttothis Dec 7, 2023
05c876a
Dependencies
objecttothis Dec 8, 2023
bc0f947
Fixed incorrect verb
objecttothis Dec 8, 2023
2b351b0
Fixes
objecttothis Dec 8, 2023
54f8fc0
Fixed Customer CSV import
objecttothis Dec 11, 2023
17fe31d
Attempts at correcting problem with JSPDF
objecttothis Dec 11, 2023
dcc2bce
Fixes
objecttothis Dec 11, 2023
6020f19
Fixed report error
objecttothis Dec 11, 2023
4cf96d9
Bump tableexport.jquery.plugin
objecttothis Dec 12, 2023
d7dea67
Corrected Function names for routes
objecttothis Dec 12, 2023
ceea0fe
Update gitter link (#3898)
jekkos Dec 12, 2023
f2bb3a7
Add back debian base layer in Dockerfile (#3875)
jekkos Nov 20, 2023
88e4b84
Try to build with default travis docker (#3875)
jekkos Dec 5, 2023
6095132
Add .git to .dockerignore
jekkos Dec 21, 2023
e329d4c
Fix database.sql mount (#3875)
jekkos Dec 21, 2023
9e4a4d0
Remove stale .bowerrc, update INSTALL.md
jekkos Dec 22, 2023
dcca019
Enable docker config override (#3908)
jekkos Dec 23, 2023
14318d6
Create backup folder if it does not exist (#3826)
jekkos Dec 24, 2023
1216945
Add missing docker-mysql.yml (#3826)
jekkos Dec 24, 2023
7cdd478
Sync language files (#3468)
jekkos Dec 24, 2023
6843443
Add calendar language files (#3864)
jekkos Dec 24, 2023
2e901d9
Add english calendar language files (#3864)
jekkos Dec 25, 2023
865b6b5
Strip prefix in calendar files (#3864)
jekkos Dec 25, 2023
a3c714f
Replace Cal. with Calendar (#3864)
jekkos Dec 28, 2023
6de9873
CI4 bug fixes on behalf of DEV-byoos 3776
owlbrudder Dec 28, 2023
b34380d
Use loading animation only (#3891)
jekkos Dec 29, 2023
f6c89f2
Bump bstables (#3854)
jekkos Dec 20, 2023
08a8e9c
Map uid in container (#3875)
jekkos Dec 29, 2023
c3eedd5
Add back debian base layer in Dockerfile (#3875)
jekkos Nov 20, 2023
f6bc2d1
Fix bstables to commit ca85b98
jekkos Dec 29, 2023
e680137
Update npm dependencies (#3909)
jekkos Dec 29, 2023
ae09372
Remove free query + update CSP (#3885)
jekkos Dec 29, 2023
ab49182
ci4 bug fix Sales controller_name and Receivings function name
owlbrudder Dec 30, 2023
56bd732
ci4-bugfix ucase first letter of controller name
owlbrudder Jan 2, 2024
787ed9d
ci4-bugfix further corrections for lang calls
owlbrudder Jan 3, 2024
c34e419
Datepicker fixes
objecttothis Jan 8, 2024
8f39ea4
Fix reference to chartist-tooltip (#3923)
jekkos Jan 8, 2024
8d547a5
Update packaga-lock.json (#3923)
jekkos Jan 9, 2024
cdfa1fa
ci4-bugfix to items customers and attributes
owlbrudder Jan 9, 2024
7f24667
ci4-bugfix to stock locations and item csv import
owlbrudder Jan 13, 2024
279486f
Add docker build args (#3826)
jekkos Feb 1, 2024
7264483
Fix user/groupadd in container (#3826)
jekkos Feb 2, 2024
3311cba
Fix docker compose version (#3826)
jekkos Feb 3, 2024
005c333
Added Error log
objecttothis Feb 6, 2024
701b8f7
Added check to javascript
objecttothis Feb 6, 2024
2dab1fc
Updated helper
objecttothis Feb 6, 2024
5cc3be6
Add suggestion for receiving validation (#3878)
jekkos Feb 6, 2024
3bb16fc
Inline docker-mysql (#3826)
jekkos Feb 7, 2024
515b126
Bump PHP require version range
objecttothis Feb 20, 2024
19032a4
Company logo upload
objecttothis Feb 20, 2024
a80247f
Company logo upload
objecttothis Feb 26, 2024
4b41a98
CodeIgniter 4.4.5 version bump
objecttothis Feb 26, 2024
2b7d4f2
Removed log_message() call for debugging
objecttothis Feb 26, 2024
1119c44
Fixed issues related to barcode generation
objecttothis Feb 26, 2024
989eeed
Barcode Changes
objecttothis Mar 5, 2024
e930ffd
Update Customer form.php
odiea Mar 8, 2024
4f3ef7b
Update general_config.php (#3942)
odiea Mar 10, 2024
e0fab07
Update Config.php (#3944)
odiea Mar 11, 2024
4e0bc4e
Barcode Changes
objecttothis Mar 11, 2024
a43e3aa
Barcode Changes
objecttothis Mar 11, 2024
bc665e1
Formattings
objecttothis Mar 11, 2024
35c41e8
Formattings
objecttothis Mar 11, 2024
82756ef
- Fixed missing call to helper and helper function
objecttothis Mar 12, 2024
1e8cda2
Decimal changes
objecttothis Mar 12, 2024
1dfeb78
Convert Barcode to new Types
objecttothis Mar 19, 2024
2891192
Item Kits updates for form and Barcodes to show (#3949)
odiea Mar 19, 2024
b12e920
Change generated Barcodes to SVG
objecttothis Mar 19, 2024
81ddc6b
Suppliers Fixes
objecttothis Mar 19, 2024
9237a44
Update Supplier.php (#3952)
odiea Mar 22, 2024
a229717
Update Suppliers.php
odiea Mar 22, 2024
b870a5d
Update Customers.php
odiea Mar 22, 2024
00bd8f1
Barcode & escaping
objecttothis Mar 25, 2024
638a782
Removed escaping
objecttothis Mar 26, 2024
409a702
Removed escaping
objecttothis Mar 26, 2024
3333df2
Bumped bootstrap-table to 1.22.4
objecttothis Mar 26, 2024
0fe770d
Changes to Cash_up and Cash_ups for better date feature and Table vie…
odiea Mar 28, 2024
946cb36
Changed < 0 to == NEW_ENTRY (#3960)
odiea Mar 28, 2024
1f8d4b1
Update Persons.php (#3961)
odiea Mar 29, 2024
54daf37
Update Persons.php (#3962)
odiea Mar 29, 2024
e9a584b
Formatting
objecttothis Apr 1, 2024
e11f0a5
Formatting
objecttothis Apr 1, 2024
a8d3392
Prepped barcode for being able to be set by width.
objecttothis Apr 1, 2024
1e402e4
- Minor HTML formatting
objecttothis Apr 2, 2024
861ffc4
Fixing accidentally deleted line of code
objecttothis Apr 2, 2024
c459f1b
Bump CI4 to 4.4.8
objecttothis Apr 8, 2024
2dbf9da
Attribute item form
objecttothis Apr 9, 2024
9797797
Attribute item form and decimal fixes
objecttothis Apr 9, 2024
d322887
Bump CodeIgniter to 4.5.1
objecttothis Apr 15, 2024
fd9cc26
Update .env template
objecttothis Apr 15, 2024
f125b70
Bump CodeIgniter to 4.5.1
objecttothis Apr 15, 2024
082b261
Added missing filters
objecttothis Apr 15, 2024
48328d6
Changed .editorconfig
objecttothis Apr 15, 2024
fa7f56b
CI 4.5.1 fixes
objecttothis Apr 15, 2024
fc0b859
- Updated .gitattributes to automatically convert line endings on com…
objecttothis Apr 15, 2024
aaf870e
- Updated .gitattributes to automatically convert line endings on com…
objecttothis Apr 15, 2024
4991565
- Refactor file name to match class name.
objecttothis Apr 15, 2024
02362e6
Clean up code
objecttothis Apr 15, 2024
f2fc540
Filtering
objecttothis Apr 16, 2024
fda0bc4
Receivings Bugfixes
objecttothis Apr 16, 2024
88d97e6
Adding item to sales fix
WebShells Apr 16, 2024
5d2f7d9
Routes change
objecttothis Apr 16, 2024
9538c61
Cast tax code id's to string
objecttothis Apr 16, 2024
acfd083
Fix for Serialnumber & Discount Type
WebShells Apr 16, 2024
a2ff7c0
Fixing routes
objecttothis Apr 16, 2024
c939b6f
Fixing routes
objecttothis Apr 16, 2024
41e92c3
Fix for Item Update in Items
WebShells Apr 16, 2024
9a60c67
Fix for Update Inventory
WebShells Apr 16, 2024
c6fe216
Fix for Quantity Update in Register
WebShells Apr 16, 2024
de4c13e
Fix for Gift Cards creation
WebShells Apr 17, 2024
dfaef67
Refactoring Change Register Mode
WebShells Apr 17, 2024
50d5d61
Fix for Shortcuts
WebShells Apr 17, 2024
84f6b7f
Set default timezone to UTC
jekkos Apr 17, 2024
e3946df
Fix for Sale Suspend/Unsuspend
WebShells Apr 19, 2024
30ffece
Fix for Sale Suspend/Unsuspend
WebShells Apr 19, 2024
318bcaf
Fix for Gift Card Number Display
WebShells Apr 19, 2024
95adb92
Fix For Gift Card: Always displaying invalid when generated randomly
WebShells Apr 19, 2024
105098a
Fix for Receipt & Invoice Reprint / Display through Daily Sales
WebShells Apr 19, 2024
0a2a36b
Fix for New Kit
WebShells Apr 20, 2024
6c73ec4
Fix for line break in invoice
WebShells Apr 20, 2024
008c8ad
Fix for invoice barcode
WebShells Apr 20, 2024
a3e8e90
Fixing routes
objecttothis Apr 23, 2024
cf1c58b
Fixing routes
objecttothis Apr 23, 2024
a3e49df
Fixing Reports
objecttothis Apr 23, 2024
e357161
Fixing Reports
objecttothis Apr 23, 2024
a768cd4
Minor formating fix
objecttothis Apr 23, 2024
7d7dfff
Fix for Low Inventory Report
WebShells Apr 24, 2024
9506ec3
Fix for Receivings Edit form
WebShells Apr 25, 2024
bfdb0f5
Fix for Receivings Receipt display
WebShells Apr 25, 2024
61c1515
Gift Card edit
WebShells Apr 25, 2024
4b0a938
Fix for Edit Sales Receipt Details
WebShells Apr 25, 2024
15f08c6
Fix for attribute addition for items
SpookedByRoaches Apr 28, 2024
1f7b1f7
Summary Reports fix
objecttothis Apr 29, 2024
f1aa7ae
Summary Taxes Report fix
objecttothis Apr 29, 2024
4f5aa9d
Removed escaping of data
objecttothis Apr 29, 2024
ee3ef1b
Bump npm dependencies
objecttothis Apr 29, 2024
c804bb4
Bump npm dependencies
objecttothis Apr 29, 2024
ba1e88c
Bump npm dependencies
objecttothis Apr 29, 2024
2cf69f3
Docs updated
BudsieBuds Apr 29, 2024
e870697
Docker compose typo
BudsieBuds Apr 29, 2024
42a54bb
Upgrade jspdf (#3909)
jekkos Apr 29, 2024
b85b246
Revert gulp downgrade (#3909)
jekkos Apr 30, 2024
2b016f5
Add suffix to exported filename (#3970)
jekkos Apr 30, 2024
eabd8d9
Add gulp compress task (#3916)
jekkos Apr 30, 2024
2fa0ea1
Update travis file (#3916)
jekkos May 2, 2024
425389b
Fix delete payment (#3983)
jekkos May 2, 2024
860bccf
Fix no_access route (#3984)
jekkos May 3, 2024
f22235e
Fix redirect + no permission error message
jekkos May 4, 2024
60551d4
Make register background colors use bootswatch
SpookedByRoaches May 4, 2024
94a94cb
Convert raw query to querybuilder for security
objecttothis May 6, 2024
3dbf15e
Remove unneeded use statement
objecttothis May 6, 2024
fafa6af
- Removed TODOs that had been completed
objecttothis May 6, 2024
ec45c01
- Converted raw queries to QueryBuilder where possible
objecttothis May 7, 2024
e581b30
Fix gulp font copy issue (#3987)
jekkos May 9, 2024
573e47a
Add workflow to test coding standards
jekkos May 9, 2024
bd9eb0c
Remove action for userguide (#3708)
jekkos May 9, 2024
60a57f5
Remove admin folder from linter (#3708)
jekkos May 9, 2024
0ccc846
Remove linter overrides (#3708)
jekkos May 9, 2024
8f24bc6
Update login screen
BudsieBuds May 8, 2024
9b24231
Fix permissions checkbox state (#3993)
jekkos May 11, 2024
1296e28
Fix register functionality
jekkos May 11, 2024
90ae865
Fix graphical reports (#3773)
jekkos May 11, 2024
ccd6f5c
Fix pie charts (#3773)
jekkos May 11, 2024
1cf078d
Update BUILD.md
BudsieBuds May 13, 2024
046adbe
Update README.md
BudsieBuds May 13, 2024
50d9117
Fixed csv import when updating items that have a barcode
SpookedByRoaches May 6, 2024
bfbccc9
- Corrected capitalization
objecttothis May 14, 2024
235845d
Language fallback improvement
BudsieBuds May 13, 2024
b22ddb9
Minor fixes.
objecttothis May 20, 2024
a7a3233
revert fallback language to `en`
objecttothis May 20, 2024
b98b61b
HTMLPurifier filtering
objecttothis May 21, 2024
f62a01d
Revert push
objecttothis May 21, 2024
1adde79
HTMLPurifier filtering on searches
objecttothis May 21, 2024
a88a75c
Updated PHPDocs
objecttothis May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 0 additions & 7 deletions .bowerrc

This file was deleted.

9 changes: 7 additions & 2 deletions .dockerignore
@@ -1,6 +1,6 @@
node_modules
tmp
application/config/email.php
app/Config/Email.php
*.patch
patches/
.idea/
Expand All @@ -10,10 +10,15 @@ git-svn-diff.py
.buildpath
.project
.settings/*
.git
dist/
node_modules/
*.swp
*.rej
*.orig
*~
*.~
*.log
application/sessions/*
app/writable/session/*
!app/writable/session/index.html

22 changes: 22 additions & 0 deletions .editorconfig
@@ -0,0 +1,22 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
max_line_length = 120
tab_width = 4

[{*.cjs,*.js}]
indent_style = tab

[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
indent_style = tab

[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,composer.lock,jest.config}]
indent_style = tab

[{*.htm,*.html,*.ng,*.sht,*.shtm,*.shtml}]
indent_style = tab
86 changes: 86 additions & 0 deletions .env
@@ -0,0 +1,86 @@
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

CI_ENVIRONMENT = production
CI_DEBUG = false


#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------
app.appTimezone = 'UTC'

#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------

database.default.hostname = 'localhost'
database.default.database = 'ospos'
database.default.username = 'admin'
database.default.password = 'pointofsale'
database.default.DBDriver = 'MySQLi'
database.default.DBPrefix = 'ospos_'
database.default.port = 3306

database.development.hostname = 'localhost'
database.development.database = 'ospos'
database.development.username = 'admin'
database.development.password = 'pointofsale'
database.development.DBDriver = 'MySQLi'
database.development.DBPrefix = 'ospos_'
database.development.port = 3306

database.tests.hostname = 'localhost'
database.tests.database = 'ospos'
database.tests.username = 'admin'
database.tests.password = 'pointofsale'
database.tests.DBDriver = 'MySQLi'
database.tests.DBPrefix = 'ospos_'
database.tests.charset = utf8mb4
database.tests.DBCollat = utf8mb4_general_ci
database.tests.port = 3306

#--------------------------------------------------------------------
# EMAIL
#--------------------------------------------------------------------
email.SMTPHost = ''
email.SMTPUser = ''
email.SMTPPass = ''
email.SMTPPort =
email.SMTPTimeout = 5
email.SMTPCrypto = 'tls'

#--------------------------------------------------------------------
# ENCRYPTION
#--------------------------------------------------------------------

encryption.key = ''

#--------------------------------------------------------------------
# HONEYPOT
#--------------------------------------------------------------------

honeypot.hidden = true
honeypot.label = 'Fill This Field'
honeypot.name = 'honeypot'
honeypot.template = '<label>{label}</label><input type="text" name="{name}" value=""/>'
honeypot.container = '<div style="display:none">{template}</div>'

#--------------------------------------------------------------------
# LOGGER
# - 0 = Disables logging, Error logging TURNED OFF
# - 1 = Emergency Messages - System is unusable
# - 2 = Alert Messages - Action Must Be Taken Immediately
# - 3 = Critical Messages - Application component unavailable, unexpected exception.
# - 4 = Runtime Errors - Don't need immediate action, but should be monitored.
# - 5 = Warnings - Exceptional occurrences that are not errors.
# - 6 = Notices - Normal but significant events.
# - 7 = Info - Interesting events, like user logging in, etc.
# - 8 = Debug - Detailed debug information.
# - 9 = All Messages
#--------------------------------------------------------------------

logger.threshold = 0
app.db_log_enabled = false
app.db_log_only_long = false
63 changes: 63 additions & 0 deletions .env-example
@@ -0,0 +1,63 @@
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

CI_ENVIRONMENT = production

#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------

database.default.hostname = 'localhost'
database.default.database = 'ospos'
database.default.username = 'admin'
database.default.password = 'pointofsale'
database.default.DBDriver = 'MySQLi'
database.default.DBPrefix = 'ospos_'

database.development.hostname = 'localhost'
database.development.database = 'ospos'
database.development.username = 'admin'
database.development.password = 'pointofsale'
database.development.DBDriver = 'MySQLi'
database.development.DBPrefix = 'ospos_'

database.tests.hostname = 'localhost'
database.tests.database = 'ospos'
database.tests.username = 'admin'
database.tests.password = 'pointofsale'
database.tests.DBDriver = 'MySQLi'
database.tests.DBPrefix = 'ospos_'

#--------------------------------------------------------------------
# ENCRYPTION
#--------------------------------------------------------------------

encryption.key = ''

#--------------------------------------------------------------------
# LOGGER
# - 0 = Disables logging, Error logging TURNED OFF
# - 1 = Emergency Messages - System is unusable
# - 2 = Alert Messages - Action Must Be Taken Immediately
# - 3 = Critical Messages - Application component unavailable, unexpected exception.
# - 4 = Runtime Errors - Don't need immediate action, but should be monitored.
# - 5 = Warnings - Exceptional occurrences that are not errors.
# - 6 = Notices - Normal but significant events.
# - 7 = Info - Interesting events, like user logging in, etc.
# - 8 = Debug - Detailed debug information.
# - 9 = All Messages
#--------------------------------------------------------------------

logger.threshold = 0
app.db_log_enabled = false

#--------------------------------------------------------------------
# HONEYPOT
#--------------------------------------------------------------------

honeypot.hidden = true
honeypot.label = 'Fill This Field'
honeypot.name = 'honeypot'
honeypot.template = '<label>{label}</label><input type="text" name="{name}" value=""/>'
honeypot.container = '<div style="display:none">{template}</div>'
4 changes: 2 additions & 2 deletions .gitattributes
@@ -1,3 +1,3 @@
dist/ merge=ours
application/language/**/*.php merge=ours
text=auto
app/Language/**/*.php merge=ours
text=auto eol=lf
64 changes: 64 additions & 0 deletions .github/workflows/test-coding-standards.yml
@@ -0,0 +1,64 @@
name: Coding Standards

on:
push:
paths:
- '**.php'
- 'spark'
- '.github/workflows/test-coding-standards.yml'
pull_request:
paths:
- '**.php'
- 'spark'
- '.github/workflows/test-coding-standards.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
name: PHP ${{ matrix.php-version }} Lint with PHP CS Fixer
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
php-version:
- '8.1'
- '8.3'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: tokenizer
coverage: none

- name: Get composer cache directory
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
key: ${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php-version }}-
${{ runner.os }}-

- name: Install dependencies
run: composer update --ansi --no-interaction

- name: Run lint on `app/`, `public/`
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.php-cs-fixer.no-header.php --using-cache=no --diff

- name: Run lint on `tests`
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.php-cs-fixer.tests.php --using-cache=no --diff
54 changes: 24 additions & 30 deletions .gitignore
@@ -1,33 +1,15 @@
# Dependency directories
/node_modules
/vendor
/public/bower_components

# Logs
/application/logs/*
*.log
node_modules
vendor
public/resources
app/Config/email.php
npm-debug.log*

# Build generated
/tmp
/public/license/.licenses
/public/license/bower.LICENSES
/public/dist

# Docker
!/docker/.env
/docker/data/database/db/*
/docker/data/certbot/conf/*
/docker/data/ospos/app/*

# Database
/database/database.sql
/database/migrate_phppos_dist.sql

# Use files
/application/config/email.php
/application/sessions/*
/application/uploads/*
!docker/.env
docker/data/database/db/*
docker/data/certbot/conf/*
docker/data/ospos/app/*

# Editors
## SublimeText
Expand Down Expand Up @@ -69,22 +51,34 @@ $RECYCLE.BIN/
.com.apple.timemachine.donotpresent

# Other
/generate_langauges.php
/dist
/docs
generate_languages.php
dist
docs
/patches
/translations
translations
/.buildpath
/.project
/.settings/*
*.patch
git-svn-diff.py
*.bash
.swp
system/
*.swp
*.rej
*.orig
*~
*.~
.env
auth.json

*.png
*.jpg
*.jpeg
*.webp
*copy*
/writable/logs/*.log
/writable/debugbar/*.json
/app/Database/database.sql
/writable/cache/settings
/.env.bak