Commit Graph

146 Commits

Author SHA1 Message Date
Julian Prieber fc8a18f0d7 Switched Font Awesome from JS to CSS 2022-08-08 14:11:19 +02:00
Julian Prieber b51b7c46a8 Added independent backup system 2022-08-06 12:20:28 +02:00
Julian Prieber 66ac92087a Update links.blade.php 2022-07-31 02:03:30 +02:00
Julian Prieber a68990a56b Update links.blade.php 2022-07-31 02:00:09 +02:00
Julian Prieber 32892f214f Changed Delete user button 2022-07-12 16:30:19 +02:00
Julian Prieber 49981c8c6c Now displaying user's emails on user page 2022-07-12 16:10:49 +02:00
Julian Prieber e28a831778 Update users.blade.php 2022-07-11 21:11:49 +02:00
Julian Prieber 5f58a1f4ad Added protection against admins deleting their own accounts
Admins cannot un-verify, block or delete admin accounts. This includes their own and other accounts.
2022-07-11 18:00:22 +02:00
Julian Prieber 6fa31bad06 Update users.blade.php 2022-07-11 17:21:19 +02:00
Julian Prieber 9ae47ad188 Update users.blade.php 2022-07-11 16:58:20 +02:00
Julian Prieber 5b8a3eb77f Update users.blade.php 2022-07-11 16:52:28 +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 8b98c5d84e Update links.blade.php 2022-07-07 23:30:58 +02:00
Julian Prieber 1ee73d0554 Added option for deleting themes 2022-07-04 23:41:28 +02:00
Julian Prieber 63f5c12ed8 Update backups.blade.php 2022-06-16 13:59:11 +02:00
Julian Prieber 0ad7c44b3d Update backups.blade.php 2022-06-16 13:52:56 +02:00
Julian Prieber c840d72fca Fixed path 2022-06-16 13:42:37 +02:00
Julian Prieber c739d7b1b3 Fixed cURL error 7 on proxied server 2022-06-16 09:56:36 +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 edbdd98649 Update phpinfo.blade.php 2022-06-08 17:37:52 +02:00
Julian Prieber 5e23002b58 Fixed color scheme not applying 2022-06-08 17:24:51 +02:00
Julian Prieber a36e985bfc Added overwrite for default color scheme
Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.

Either "dark" or "light".
2022-06-08 17:09:24 +02:00
Julian Prieber ca86582157 Added support for custom meta tags
Added support for custom meta tags via a new config file.
Custom meta tags will only be active if "CUSTOM_META_TAGS" is set to "true" in the config.

Replaced "<html lang="en">" with "@include('layouts.lang')" meaning HTML lang can be changed in the new config, defaults to en if not active or not defined.
2022-06-08 15:43:51 +02:00
Julian Prieber 217201fa66 Update users.blade.php 2022-05-30 15:18:17 +02:00
Julian Prieber 35f59acf91 Update users.blade.php 2022-05-30 15:11:01 +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 a8dec6ff9e Update edit-user.blade.php 2022-05-15 11:43:11 +02:00
Julian Prieber 1eb92e56b2 Added dark mode toggle for Admin/User Panel
A simple toggle switch that sets an override cookie with JavaScript.

The cookie is still read with PHP/blade.
2022-05-13 13:03:10 +02:00
Julian Prieber bdf1e7413c Updated 'no page URL' notice 2022-05-10 12:38:26 +02:00
Julian Prieber 89f8361edd Added security check tool
Added new security check tool. This tool is a new page that displays diagnostic information about your LittleLink Custom installation.

Previously, installing LittleLink Custom on NGINX or other platforms that do not support .htaccess functionality presented a significant security risk if not configured properly. This tool simply shows if critical system files can be accessed externally by anyone. In addition, information about writing access to important files or directories is displayed here.

Read more about this feature on the blog here: https://blog.littlelink-custom.com/new-security-check-tool/
2022-04-20 17:31:38 +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 393e18a3c9 Added visual HTML editor
Added visual HTML editor for editing HTML on the footer and home pages. This editor is based on the open source CKEditor a Smart Visual Text Editor for HTML coded in JavaScript.

Read the Blog post about this topic for more info about this feature here: https://blog.littlelink-custom.com/visual-html-editor/
2022-03-23 13:57:20 +01:00
Julian Prieber 6f94f40636 Added no Page URL message
Added no Page URL message to the Admin and User panel
2022-03-21 16:46:35 +01:00
JulianPrieber ec88a74889 Fixed bug/simplified setup
Fixed bug where users littlelink pages (domain.com/@username) would display a 404 error. This was caused due to the .env config file not containing an App URL. This issue could be solved by simply adding a URL to the config, this is now not necessary anymore, making the setup process easier and less confusing. 

I changed every instance of "{{ config('app.url') }}" to  "{{ url(' ') }}". This effectively automatically uses the correct URL for LittleLink links, even if LittleLink Custom is set up in a subdirectory.

In my testing, I couldn't find any problems this might have caused, so this appears to do the job just as well as setting the URL in the config. If I find any issues with this, I will revert this change.
2022-02-27 19:33:19 +01:00
JulianPrieber 4e78b1a58f Added option to disable registration
Added option to disable registration.
2022-02-23 20:19:15 +01:00
JulianPrieber c8696ca5d5 Fixed elseif
Fixed new elseif statements by changing:
"if
if"
to
"if
elseif"
2022-02-20 15:42:45 +01:00
JulianPrieber 96cfd5b4c1 Changed logo
As part of the new logo (https://github.com/JulianPrieber/littlelink-custom/milestone/1) I'm now using the new 'logo.svg' vector logo.

For this, I added an if-else statement in most cases, which first check for a custom logo uploaded by the admin or the avatar of an individual user. If the image doesn't exist, the default logo (logo.svg) is used.
2022-02-20 13:12:25 +01:00
JulianPrieber c097c0ae09
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:56:03 +01:00
aprillio 464cb2bbae update panel user lists blade 2021-07-06 15:50:47 +07:00
aprillio 8d2c55dc64 update panel index blade 2021-07-06 15:50:27 +07:00
aprillio 9d5bffd48b update panel edit user blade 2021-07-06 15:50:07 +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