Skip to content

Commit

Permalink
Merge pull request #12 from bootscore/Deny-direct-access
Browse files Browse the repository at this point in the history
Deny direct access
  • Loading branch information
crftwrk committed Aug 26, 2023
2 parents 48864b3 + 868b2d0 commit 0369b7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
9 changes: 9 additions & 0 deletions main.php
Expand Up @@ -3,11 +3,19 @@
Plugin URI: https://bootscore.me/plugins/bs-preloader/
Description: This plugin adds a preloader to bootScore
Version: 5.1.0
Tested up to: 6.3
Requires at least: 5.0
Requires PHP: 5.6
Author: bootScore
Author URI: https://bootscore.me
License: MIT License
*/


// Exit if accessed directly
defined( 'ABSPATH' ) || exit;


// Update checker
require 'update/update-checker.php';
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
Expand All @@ -16,6 +24,7 @@
'bs-preloader-main'
);


// Register Styles and Scripts
function bs_preloader_scripts() {

Expand Down
11 changes: 6 additions & 5 deletions templates/preloader.php
Expand Up @@ -5,17 +5,18 @@
*
* This template can be overriden by copying this file to your-theme/bs-preloader-main/preloader.php
*
* @author bootScore
* @package bS Preloader
* @version 5.0.1.5
* @author bootScore
* @package bS Preloader
* @version 5.1.1
*/

if (!defined('ABSPATH')) exit; // Don't allow direct access
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

?>

<div id="preloader" class="align-items-center justify-content-center position-fixed top-0 end-0 bottom-0 start-0 zi-1070">
<div id="status" class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>

0 comments on commit 0369b7d

Please sign in to comment.