summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneccesary code to sort single concert by date.Harald Eilertsen2021-09-061-1/+0
|
* Fix indentation and whitespace, add braces where missing.Harald Eilertsen2021-09-061-41/+46
|
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2021-09-055-4/+13
|\
| * added images for checkbox and rediconAndreaChirulescu2021-09-055-4/+13
| | | | | | | | added class for City dropdown form
* | security: Add proper CSRF checking for the import_gigs form.Harald Eilertsen2021-09-051-3/+7
|/
* used auto ident this timeAndreaChirulescu2021-09-051-165/+165
|
* used is_admin() to check if user shoudl see xtra columnsAndreaChirulescu2021-09-051-184/+184
| | | | Re-idented the file
* File to display concerts inside a page by calling getconcerts codeAndreaChirulescu2021-09-051-0/+14
|
* Extra changes to hide admincolumns on giglog page If logged in but not using ↵AndreaChirulescu2021-09-051-6/+8
| | | | plugin
* CHanges in the concerts table for logged/non logged user. Fixed row header ↵AndreaChirulescu2021-09-052-19/+31
| | | | with city
* Merge branch 'dev' of ↵AndreaChirulescu2021-09-052-4/+98
|\ | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * Add test for ConcertsTableHarald Eilertsen2021-09-051-0/+94
| |
| * Fix some bugs in generated HTML for ConcertsTable.Harald Eilertsen2021-09-051-5/+5
| |
* | no idea why it keeps showing a n extra > but commiting to avoid a headache. ↵AndreaChirulescu2021-09-051-1/+1
|/ | | | This commit is useless
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2021-09-057-18/+50
|\
| * Re-added the changes for looks, and city/venue selectorAndreaChirulescu2021-09-052-14/+14
| |
| * Merge branch 'dev' of ↵AndreaChirulescu2021-09-054-252/+292
| |\ | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges # Conflicts: # includes/admin/views/giglog_admin_page.php
| * | Ordered venues by name in drop downAndreaChirulescu2021-09-051-1/+2
| | |
| * | Fixed filter by your concertsAndreaChirulescu2021-09-053-11/+34
| | | | | | | | | | | | Added CSS and extra fromatting to table
| * | Fixed a call to city() method in concert.php It needed ->venue->cityAndreaChirulescu2021-09-042-1/+3
| | | | | | | | | | | | Added order by concert date in concert list
| * | Merge branch 'dev' of ↵AndreaChirulescu2021-09-041-5/+8
| |\ \ | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * \ \ Merge branch 'dev' of ↵AndreaChirulescu2021-09-041-10/+11
| |\ \ \ | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * \ \ \ Merge branch 'dev' of ↵AndreaChirulescu2021-09-0417-1472/+373
| |\ \ \ \ | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * | | | | not sure why this change is here, can be ignoreAndreaChirulescu2021-09-041-3/+3
| | | | | |
| * | | | | Merge branch 'dev' of ↵AndreaChirulescu2021-06-1510-193/+453
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * \ \ \ \ \ Merge branch 'dev' of ↵AndreaChirulescu2021-05-092-0/+110
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * | | | | | | Recommitted, with removed head<<<<<< and >>>>AndreaChirulescu2021-05-093-67/+9
| | | | | | | |
| * | | | | | | Tried to fix the psalm local changes done when I manually installed itAndreaChirulescu2021-05-0920-107/+455
| |\ \ \ \ \ \ \
| * | | | | | | | After installing psalm, I got these files modified with, what seems to be, ↵AndreaChirulescu2021-05-094-5/+2003
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | local hashkeys?
* | | | | | | | | ConcertsTable: fix getting city row when changing cities.Harald Eilertsen2021-09-051-1/+1
| | | | | | | | |
* | | | | | | | | test: concertlogs table is gone, no need to clear itHarald Eilertsen2021-09-051-1/+0
| | | | | | | | |
* | | | | | | | | Don't error if obsolete indexes or keys are already deleted.Harald Eilertsen2021-09-051-2/+2
| | | | | | | | |
* | | | | | | | | Fix tests.Harald Eilertsen2021-09-051-0/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the plugin only should load on the admin side, set the WP_ADMIN constant before loading it in the tests.
* | | | | | | | Drop extra query for venue_id in concert queries.Harald Eilertsen2021-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not required since the id is in the concerts table too. That's what links them together.
* | | | | | | | Move the concerts table and edit form out of AdminPage.Harald Eilertsen2021-09-043-248/+291
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the AdminPage is still responsible for updating changes to any of the concerts, but I'd like to get that into their respective classes too. That way the AdminPage will just be a simple class to handle the layout of the page, while all the specific functionality is in their own classes. This is also the first step to be able to reuse the concerts table on the public end of the site.
* | | | | | | Fix so concert id is not overwritten by venue id.Harald Eilertsen2021-09-041-5/+8
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We originally had a more specified query, but simplified it to: SELECT * FROM wpg_concerts LEFT JOIN wpg_venues ON ...; But since both the concerts table and the venues table has a column id, the concert id would be overwritten with the venue id. MySQL/MariaDB does not allow columns with the same name in multiple tables when using unqualified column names in the query. So we need to be more explicit again. I was hoping that the following would work: SELECT wpg_concerts.*, wpg_venues.* FROM .... ; I think MySQL/MariaDB would handle that, but now since php turns the result into an array, where each key must be unique, this again overwrites the concert id with the venue id. So thus a more verbose specification of the columns was necessary.
* | | | | | Minor tweak: Only load plugin if in admin side.Harald Eilertsen2021-09-041-9/+11
| | | | | |
* | | | | | Remove obsolere require.Harald Eilertsen2021-09-041-1/+0
| |_|_|_|/ |/| | | |
* | | | | Remove obsolete source files.Harald Eilertsen2021-09-042-127/+0
| | | | |
* | | | | Drop obsolete database tables.Harald Eilertsen2021-09-041-97/+6
| | | | | | | | | | | | | | | | | | | | | | | | | These tables are no longer being used, so let's remove them and the code to add them.
* | | | | Remove obsolete shortcodes.Harald Eilertsen2021-09-045-731/+0
| | | | | | | | | | | | | | | | | | | | These are no longer in use, and have been replaced by the admin screens.
* | | | | Remove dangling $wpdb ref in AdminPage.Harald Eilertsen2021-09-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | AdminPage now references the database only through the Concert (and Venue) models.
* | | | | Mark recently added concerts as new again.Harald Eilertsen2021-09-042-21/+23
| | | | |
* | | | | Add timestamp columns to concerts and venues.Harald Eilertsen2021-09-041-2/+17
| | | | | | | | | | | | | | | | | | | | To keep track of creation and modification times for each record.
* | | | | Update db tables if needed on every load.Harald Eilertsen2021-09-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | No need to deactivate/activate plugin to get the right version of the tables.
* | | | | Make click to unassign from concert work again.Harald Eilertsen2021-09-042-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a user can only be assigned to one role at the time, we remove the current user from any role that they may have when clearing the assignment.
* | | | | Rename AdminPage::returnuser to assign_role_for_user_form.Harald Eilertsen2021-09-041-5/+5
| | | | | | | | | | | | | | | | | | | | It did not return any users, but a form so name it for what it does.
* | | | | Make click to assign concert/role to self work again.Harald Eilertsen2021-09-041-29/+25
| | | | |
* | | | | Editing concerts now work again.Harald Eilertsen2021-09-032-24/+63
| | | | |
* | | | | Handle updating concert status again.Harald Eilertsen2021-09-031-6/+7
| | | | |