diff --git a/frontend/package.json b/frontend/package.json index 8760a39..72af22b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "sleeky-frontend", - "version": "2.5.0", + "version": "2.6.0", "description": "", "main": "index.js", "scripts": { diff --git a/user/plugins/sleeky-backend/assets/js/theme.js b/user/plugins/sleeky-backend/assets/js/theme.js index d4b8c78..a067a91 100644 --- a/user/plugins/sleeky-backend/assets/js/theme.js +++ b/user/plugins/sleeky-backend/assets/js/theme.js @@ -136,9 +136,7 @@ $( document ).ready(function() { } else if (/Powered by/.test($(this).text())) { // Update footer var content = $(this).html(); - var i = 77 - var updated_content = "Running on" + content.slice(13, i) + ' & Sleeky' + content.slice(i-0) - $(this).html(updated_content); + var updated_content = `${content.replace(/Powered by.*?(?=<|$)/i, '')}
Sleeky v 2.6.0`; $(this).html(updated_content); } }); }); diff --git a/user/plugins/sleeky-backend/plugin.php b/user/plugins/sleeky-backend/plugin.php index 1470ebb..93b2d31 100755 --- a/user/plugins/sleeky-backend/plugin.php +++ b/user/plugins/sleeky-backend/plugin.php @@ -3,7 +3,7 @@ Plugin Name: Sleeky Backend Plugin URI: https://sleeky.flynntes.com Description: UI overhaul of the YOURLS backend -Version: 2.4.1 +Version: 2.6.0 Author: Flynn Tesoriero Author URI: https://flynntes.com */ @@ -92,14 +92,14 @@ function sleeky_do_settings_page() { if( isset( $_POST['theme_choice'] ) ) { // Check nonce yourls_verify_nonce( 'sleeky_settings' ); - + // Process form sleeky_settings_update(); } // Get value from database $theme_choice = yourls_get_option( 'theme_choice' ); - + // Create nonce $nonce = yourls_create_nonce( 'sleeky_settings' ); @@ -124,7 +124,7 @@ function sleeky_do_settings_page() { // Update option in database function sleeky_settings_update() { $in = $_POST['theme_choice']; - + if( $in ) { // Validate theme_choice. ALWAYS validate and sanitize user input. // Here, we want an integer @@ -135,7 +135,7 @@ function sleeky_settings_update() { } else { echo "Error"; } - + } }