Commit Graph

240 Commits

Author SHA1 Message Date
Julian Prieber 5dbb2b182d Version 4.0
-- Dashboard Update --

Update to version 4.0.0.
Complete redesign of the admin panel.
New features and a license change.
2023-04-26 15:44:39 +02:00
Julian Prieber 70a382a6df Update UserController.php 2023-03-28 17:05:29 +02:00
Julian Prieber 90e272d11a Update UserController.php 2023-03-28 16:02:36 +02:00
Julian Prieber dbab3a64ef Fixed vcard edit
Removed file upload from form
2023-03-28 15:12:01 +02:00
Julian Prieber 0155d96381 Bugfix
Fixed vcard title bug
2023-03-28 14:19:37 +02:00
Julian Prieber ad744dbbaa Update UserController.php 2023-03-28 13:45:54 +02:00
Julian Prieber adee9ccaec Initial Vcard
Added Vcard feature
2023-03-27 19:04:41 +02:00
Julian Prieber 8a21ddfff6 Revert "Turned ll home page into one function"
This reverts commit b9c0b38260.
2023-03-21 20:24:23 +01:00
Julian Prieber b47ba6959d Update AdminController.php 2023-03-16 15:11:22 +01:00
Julian Prieber 811e56178b Added option to test SMTP setup 2023-03-13 19:49:30 +01:00
Julian Prieber b9c0b38260 Turned ll home page into one function 2023-03-13 15:32:48 +01:00
Julian Prieber 03db2656ba Bugfix
Checkmark not showing when ll page set as home page. https://github.com/JulianPrieber/littlelink-custom/issues/359
2023-03-11 12:32:37 +01:00
Julian Prieber 7a37f50231 User export now includes profile picture 2023-03-09 00:59:52 +01:00
Julian Prieber 02bc23c832 Avatar type findAvatar() 2023-03-08 22:03:54 +01:00
Julian Prieber 19c6097a1c Removed unique constrain from usernames 2023-03-08 19:12:14 +01:00
Julian Prieber ab3812b5a0 Updated naming format
For exported files
2023-03-08 18:01:23 +01:00
Julian Prieber 4eca39e9ce Added option to import and export user data 2023-03-08 17:20:39 +01:00
Julian Prieber 7aea53e0b8 Added new blocks:
- E-Mail Block
- Telephone number Block
2023-03-05 20:02:42 +01:00
Julian Prieber 40dd951c01 jank 2023-02-16 16:10:41 +01:00
Julian Prieber 231586b69a Added option for users to disable checkmark
First test of the new database user setting save system.
2023-02-16 15:38:17 +01:00
Julian Prieber 5622b4fe65 Update UserController.php 2023-02-16 14:25:37 +01:00
Julian Prieber 65766efd71 Added model to save userdata
UserData::saveData(ID, 'foo', 'bar');
UserData::getData(ID, 'foo');
UserData::removeData(ID, 'foo');
2023-02-16 14:22:18 +01:00
Julian Prieber 2ebfe4db94 Added last seen section to users page 2023-02-16 13:02:05 +01:00
Julian Prieber 5665465076 Added option for admins to upload background image for users 2023-02-15 18:14:54 +01:00
Julian Prieber 5c26f1e8ab Updated users table
Added new fields to the users table.
Added ability to sort users table alphabetically.
2023-02-15 15:53:55 +01:00
Julian Prieber b593b2ddfd Update AdminController.php 2023-02-14 13:45:01 +01:00
Julian Prieber 2798c1f8d1 Update AdminController.php 2023-02-14 13:13:35 +01:00
Julian Prieber 50bf79a800 Update findfile.php 2023-02-13 21:12:44 +01:00
Julian Prieber d727455e96 Fixed error
Call to undefined function exif_imagetype() (View: /htdocs/resources/views/littlelink.blade.php)
2023-02-13 20:02:56 +01:00
Julian Prieber 5c73cc3c59 Added button to remove custom background image 2023-02-13 18:40:18 +01:00
Julian Prieber c279661e0b Added dark/light mode detection to background image
Only active on default theme
2023-02-13 18:10:13 +01:00
Julian Prieber 96c155c518 Custom background image file type 2023-02-13 17:18:32 +01:00
Julian Prieber fc73453872 Added option to upload custom background image 2023-02-13 16:22:11 +01:00
Julian Prieber 3bc5b6418b Bugfix 2023-02-13 14:47:47 +01:00
Julian Prieber 715726d330 Fixed 404 error when installing
https://github.com/JulianPrieber/littlelink-custom/issues/313

https://www.youtube.com/watch?v=VJpZMZOBeB0
2023-02-13 13:22:49 +01:00
Julian Prieber a92739c950 Update UserController.php 2023-02-09 20:32:19 +01:00
Julian Prieber 98933c784a Added page icon twitch 2023-02-09 20:30:23 +01:00
pey b794a2c7ab
Update UserController.php
updated to access to the user's role as a variable
2023-02-07 08:45:09 -05:00
Julian Prieber 4e97bae3e2 Change URL for footer pages
Change the URL for footer pages when footer page is renamed
2023-02-06 20:13:11 +01:00
Julian Prieber 85469283a6 Switched to IDs 2023-02-03 16:18:28 +01:00
Julian Prieber ffb123c306 Update AdminController.php 2023-02-02 18:40:40 +01:00
Julian Prieber 369965f55f
Merge pull request #317 from JulianPrieber/image-id
Changed profile picture save method to use user id
2023-02-02 18:07:16 +01:00
Julian Prieber 2329d8345b Added new helper function
Added new helper function to replace file_get_contents with curl.
2023-01-31 15:49:56 +01:00
Julian Prieber ab1557110d Disabling footer pages when inactive in config
Footer pages now return an error 404 when disabled in the config.
2023-01-31 15:10:51 +01:00
Julian Prieber 6f6e260f4b Fixed for current system 2023-01-25 17:41:04 +01:00
Julian Prieber 590f5b45ad Added button to remove profile picture 2023-01-23 17:19:09 +01:00
Julian Prieber 5b23fa08de Changed profile picture save method to use user id
Changed profile picture to use user id instead of username to save it.

If merged, this will reset all current profile pictures on the instance.
2023-01-23 16:54:18 +01:00
Julian Prieber 26bd92fdc7 Bugfix
Fixed bug changes not applying when not changing littlelink name.
2023-01-23 16:30:29 +01:00
Julian Prieber 1950ba2a18 Now forcing usernames to be unique
Now forcing usernames to be unique in regard to capitalization.
2023-01-23 16:06:07 +01:00
Julian Prieber 972e7c7c96 Added Facebook page icon 2023-01-11 21:59:06 +01:00
Julian Prieber b9a371b924 Turned function findFile() into helper function 2022-12-22 09:51:19 +01:00
Julian Prieber cdea1ea175 Bugfix 2022-12-06 23:12:32 +01:00
Julian Prieber 449bff98c0 Update UserController.php 2022-12-05 22:58:06 +01:00
Julian Prieber f189d83bf1 Added new social icons
+ bugfix
2022-12-05 21:22:06 +01:00
Julian Prieber 42d2fabd55 Multiuser support for social icons 2022-12-05 20:43:29 +01:00
Julian Prieber 34133543f1 Added link icons to littlelink page 2022-12-05 20:02:23 +01:00
Julian Prieber 4adf239c8e Revert "Added skip option to installer"
This reverts commit bc900d0d29.
2022-12-02 16:06:07 +01:00
Julian Prieber bc900d0d29 Added skip option to installer 2022-12-02 14:35:14 +01:00
Julian Prieber 9c2a91e0fc Added new block "Text" 2022-12-01 12:51:16 +01:00
Julian Prieber fed93daf48 Added option to reset favicon and logo 2022-11-30 12:10:45 +01:00
Julian Prieber 38c856484d Added support for custom favicon
Custom logo and custom favicons can now have any supported format.
2022-11-29 23:33:25 +01:00
Julian Prieber bdb293c7a8 Added option to clear icon chache 2022-11-28 20:20:43 +01:00
Julian Prieber 19a49fedad Caching favicons locally 2022-11-28 19:44:02 +01:00
Julian Prieber 6422f78eda Removed URL from link query string 2022-11-25 16:50:11 +01:00
Julian Prieber 80644a14b7 Updated first setup page 2022-11-23 22:09:59 +01:00
Julian Prieber 9b9593b98d Added first setup page
This setup will:
1. Check the server dependencies
2. Setup the database
3. Create the admin user
4. Configure the app
2022-11-23 15:52:33 +01:00
Julian Prieber 3b08b5b6d9 Disabling maintenance mode now forces application out of maintenance 2022-11-20 15:13:53 +01:00
Julian Prieber b90a2245dc Update AdminController.php 2022-11-17 21:32:47 +01:00
Julian Prieber 1d792ee963 Update AdminController.php 2022-11-17 21:22:06 +01:00
Julian Prieber 6a03987169 Update AdminController.php 2022-11-17 16:20:04 +01:00
Julian Prieber 8350373262 Updated config editor 2022-11-17 15:07:06 +01:00
Julian Prieber f26a1336b9 Fixed bug while editing 2022-11-16 16:33:00 +01:00
Julian Prieber 11b5d09eb1 Update UserController.php 2022-11-14 11:37:30 +01:00
Julian Prieber 42069cce03 Update UserController.php 2022-11-14 09:33:21 +01:00
Julian Prieber 3564cfff74 Added protection against use of JS in users page description 2022-11-10 21:48:48 +01:00
Julian Prieber 4dd317b641 Update UserController.php 2022-11-10 19:55:46 +01:00
Julian Prieber 9c535873dd Update LinkTypeViewController.php 2022-11-10 19:42:34 +01:00
Julian Prieber 87a24b47ca Fixed custom website favicon check box not being checked when editing 2022-11-10 19:17:41 +01:00
Julian Prieber 759e859102 Fixed link type always defaulting to link when editing 2022-11-10 19:03:35 +01:00
Julian Prieber 2132140c5f Fixed edit link defaulting to custom button 2022-11-10 18:21:59 +01:00
Julian Prieber ffdb0cff5d Update UserController.php 2022-11-10 16:51:56 +01:00
Julian Prieber 7dce109163 Update UserController.php 2022-11-09 18:07:50 +01:00
Julian Prieber 951df23c91 Laravel 9
Update to Laravel 9

Commit for the upcoming from-end update.
2022-11-08 16:11:59 +01:00
snicker 697ed3ce19 retrieve link url from database rather than request url
increases robustness and solve issues with sloppy redirect
interpretation across browsers
2022-09-24 11:01:09 -07:00
Julian Prieber 4c8f8283d9 Fixed GitHub API rate limit
For Theme Updater
2022-09-13 21:04:17 +02:00
Julian Prieber c589a3adad Implemented Theme Updater beta
https://github.com/JulianPrieber/littlelink-custom/discussions/49#discussioncomment-3408857
2022-09-13 13:47:21 +02:00
Milan C 0444297a6a Refactor code 2022-08-15 01:12:40 +05:30
Milan C cb613f6a05 Init Sortable links. 2022-08-15 00:35:26 +05:30
Julian Prieber 33fd0f7e10 Added option to adjust visible button count on edit link page 2022-08-05 17:29:49 +02:00
Julian Prieber 7eee9bc1a2 Update UserController.php 2022-08-02 00:34:18 +02:00
Julian Prieber e4f77996e2 Sorted buttons alphabetically 2022-08-02 00:33:32 +02:00
Julian Prieber 388d2f27b8 Sorted buttons alphabetically
again...
2022-07-31 23:55:20 +02:00
Julian Prieber 38c471ec61 Edit Link now defaults to current link instead of "custom"
If a link is edited on the edit-link section, the default button selection now has the current button selected rather than the custom button.

@bonelifer

https://github.com/JulianPrieber/littlelink-custom/issues/113
2022-07-31 13:35:52 +02:00
Julian Prieber b835101292 Fixed mail links 2022-07-15 19:37:34 +02:00
Julian Prieber 564a9d160b Added phone number button 2022-07-15 17:46:26 +02:00
Julian Prieber 0afd520412 Update AdminController.php 2022-07-12 16:12:54 +02:00
Julian Prieber 49981c8c6c Now displaying user's emails on user page 2022-07-12 16:10:49 +02:00
Julian Prieber ceb65f6d17 Fixed SQLSTATE[23000]: Integrity constraint violation: 19 CHECK constraint failed when deleting user 2022-07-11 20:46:45 +02:00
Julian Prieber be5b890ce7 Added proper option to delete users
Users links will now NOT be deleted anymore if blocked.
2022-07-11 16:25:26 +02:00
Julian Prieber 9a38e061c9 Added option to create new user from the Admin Panel 2022-07-11 16:05:28 +02:00
Julian Prieber ffcab1c8ec Added manual E-Mail verification
Admins are now able to verify users emails manually from the Admin Panel.
2022-07-11 14:51:24 +02:00
Julian Prieber 8f6a4cdb30 Fixed bug
Fixed bug bricking your instance if you delete themes if no theme is left
2022-07-05 10:30:25 +02:00
Julian Prieber 1ee73d0554 Added option for deleting themes 2022-07-04 23:41:28 +02:00
Julian Prieber e4f682c3a1 Added page to download updater backups 2022-06-16 13:35:39 +02:00
Julian Prieber b5baeecab9 Added Advanced Config editor to Admin Panel
+ .ENV editor for NGINX users
2022-06-13 17:47:24 +02:00
Julian Prieber e98d942b04 Added Theme Credit page
A short page that displays the contents of a Theme's readme.md.

Currently, a link to this page is only visible in the HTML meta tags if viewed as page source.
This page can always be accessed on your.domain.com/theme/@littlelink_name.
(For example your.domain.com/theme/@admin)
2022-05-31 14:11:26 +02:00
Julian Prieber 2dc3e3d185 Added option for admins to view and delete user links 2022-05-30 15:02:27 +02:00
Julian Prieber 592dde4b2a Added support for custom themes 2022-05-18 21:08:58 +02:00
Julian Prieber d0f024df84 Update UserController.php 2022-05-13 16:09:00 +02:00
Julian Prieber 5b63080f8c Added custom spaces and headings
Added custom spaces and headings users can add like buttons to their littlelink pages to divide button sections into groups.

Spaces can be changed via the number in the title, and one space equals one "<br>". The maximum spaces that can be added with one space 'button' is capped at 10.

The 'Space' button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space's distance.

The 'Heading' button will be replaced with a sub-heading, where the title defines the text on that heading.
2022-05-06 15:26:39 +02:00
Julian Prieber 845327a628 Updated button-editor 2022-05-04 00:40:41 +02:00
Julian Prieber 3994c1a64f
Fixed custom Home URL 2022-04-28 16:54:57 +02:00
Julian Prieber 62c9baba23 Added custom button editor
Added the long planned button editor. This solution does not look optimal, but works... mostly.

This solution is implemented with JavaScript and the current versions code is very unorganized mostly uncommented and the HTML is still mostly done with inline code. I hope I will fix this in future revisions.

To learn more about the new button editor, read:
https://littlelink-custom.com/blog/upcoming-features/
https://littlelink-custom.com/blog/progress-of-the-new-button-editor/
2022-04-27 20:55:19 +02:00
Julian Prieber aadd01c4a2
Fixed Integrity constraint violation: 19 UNIQUE 2022-04-25 20:30:25 +02:00
Julian Prieber 53805444aa Expanded controller for custom icon
Expanded user controller to save the custom icon of individual buttons for the Button Editor.

I wanted to put the saving part into its own controller, but I wasn't able to implement this because I couldn't put two controllers on one page via the route in web.php, and to my knowledge this is impossible. So I had to do some trickery to get this working. If I hadn't implemented the if-else statement, one value couldn't be saved without a NULL error violation.

This will be used to display a custom icon via Font Awesome.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-13 16:49:44 +02:00
Julian Prieber 978add4b7b Expanded controller for custom icon
Expanded user controller to get the custom icon of individual buttons as a variable for the Button Editor. This will be used to display a custom icon via Font Awesome.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-13 15:37:54 +02:00
Julian Prieber ba6ffe1808 Expanded controller for custom icon
Expanded user controller to get the custom icon of individual buttons as a variable on the LittleLink page. This will be used to display a custom icon via Font Awesome.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-11 13:31:11 +02:00
Julian Prieber 8fa1aa8e51 Expanded controller for button ID
Expanded user controller to get the button ID of individual buttons as a variable on the 'Links' page. This will be used to decide if the customize button prompt will be shown for the upcoming button editor.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-11 13:06:34 +02:00
Julian Prieber c0a8c4150b Added controller for button editor
Added controller to display and edit custom CSS for the upcoming button editor.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-10 17:42:29 +02:00
Julian Prieber c36e4b4b27 Fixed Integrity constraint violation
Fixed error exception, for now. Gonna add this functionality back in a separate controller.
2022-04-08 18:27:43 +02:00
Julian Prieber abb463efa4 Added controller to save custom CSS
Added controller to display and save custom CSS on the edit-link page.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-07 16:30:26 +02:00
Julian Prieber 1884cd2ab2 Added controller for custom CSS
Added controller to display custom CSS as a variable on the LittleLink page.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-07 15:54:03 +02:00
Julian Prieber 5e5ce391b9 Added check, if added links end with "/"
Added check if added, or edited links end with "/". Previously if links were saved without this formatting applied an error exception would be thrown.

For this, I used the previously added functions to check if the link ends with the slash.
2022-03-31 22:45:51 +02:00
Julian Prieber 268c6557a1 Added check, if added links begin with "https"
Added check added, or edited links begin with https. Previously if links were saved without this formatting applied an error exception would be thrown.

For this I added two functions, one can check if a string ends with a certain string, the other checks if it ends with a certain string. The first function is used for the newly added check, the other one is planned to be used in a similar check in the future.
2022-03-31 22:43:01 +02:00
Julian Prieber 56643ed068 Fixed bug 'profile changes not applying'
Fixed a bug where users were unable to change name, email or password unless every value was changed at once.
2022-03-31 21:31:00 +02:00
Julian Prieber cf66be63cb Fixed 'Edit User' changes not applying
Fixed bug where if a user was edited on the Admin Panel under 'Admin>Users> Edit User' changes would not apply without every value being changed.

This bug originates from LittleLink Admin (the fork of which this fork is based on).

One part of this issue was that most fields were required to fill in. If only one would be left, empty, none would apply. The problem was if this requirement was removed, the password would always overwrite the current password, even when left empty.
This meant you could only edit users if you knew their password, otherwise their passwords would be changed, probably preventing that user from login in ever again.

After some experimenting, I implemented the easiest fix I could come up with. A simple if-else statement that checks if the password field is empty and if so only saves the other parameters without touching the password. If the password is changed, the changes will be applied normally.

Also fixed the profile image size for the default placeholder image.
2022-03-28 19:54:17 +02:00
Julian Prieber 6f0bf16587 Added phpinfo debugger
Added PHPinfo section to the config editor to display information about the current state of PHP.
This new section can be found on the Admin Panel under 'Admin>Config>PHP Info'.

For this, a new route and section in the admin controller have been added. The page is loaded as phpinfo.blade.php with the route .../panel/phpinfo if the user is authenticated as an admin.

I added the usual dark mode detection to the page, with an extra section that changes the background color according to the preferred theme setting. The page itself can be downloaded and saved as an HTML, for this  JavaScript is used.
2022-03-28 12:20:47 +02:00
Julian Prieber 89d54492fd Added option to set profile as homepage
The homepage can now be changed to a user's profile page with the option "HOME_URL" in the config (found on the Admin Panel under Admin>Config).

This commit is a bit janky, I wanted to change the homepage with a setting saved in the database, but I couldn't finish this in time, so this has to do for now.

An if statement in the web routes PHP checks if the new setting is present in the config and changes the homepage to the listed LittleLink Custom name. If the homage  is changed, the page previously set as the homepage where users can register and or login can now be found at .../home.
2022-03-24 14:44:33 +01:00
Julian Prieber fa4f4f1441 Added email verification
Added email verification after user registration. After a user registered, an email is sent to the email used to sign up. The mail contains a verification link which is required to complete the registration process.

This feature can be turned off in the Admin Panel under: Admin>Config by changing the setting "Register_auth" from "verified" to "auth".

Read more about this on the Blog here: https://blog.littlelink-custom.com/optional-email-verification/
2022-03-19 16:48:21 +01:00
Julian Prieber 7fb6068d49 Made link title optional
Made link title (previously required) optional when adding personal LittleLink links on the User/Admin Panel.
If the 'Title' field is left empty, the button name is now used instead of rejecting the addition.
2022-03-18 12:04:13 +01:00
JulianPrieber 4e78b1a58f Added option to disable registration
Added option to disable registration.
2022-02-23 20:19:15 +01:00
JulianPrieber 872f720bb0
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:47:57 +01:00
JulianPrieber 660caf0f12
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:46:24 +01:00
aprillio 641b4397a1 fix redirect a link with multiple query string 2021-07-06 17:35:22 +07:00
aprillio ab3471b428 add ability to redirect a link with query string 2021-07-06 17:19:09 +07:00
aprillio 7560b63057 add user info, links title, title validation, ordering links, and role info 2021-07-06 15:40:16 +07:00
aprillio d9febf0fd0 add role vip redirect to studio after login 2021-07-06 15:36:17 +07:00
aprillio 3a16773f5d add column littlelink_name to user lists and validate user edit 2021-07-06 15:35:32 +07:00
Khashayar Zavosh bfeddce3ba fix: show & auth user with littlelink_name 2021-04-18 22:13:43 +04:30
Khashayar Zavosh 24db7cbbfb admin littlelink 2021-04-16 03:30:00 +04:30