Skip to content

Commit

Permalink
Prevent load php
Browse files Browse the repository at this point in the history
  • Loading branch information
dignajar committed Mar 19, 2018
1 parent 9fb54af commit bff1af7
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 26 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Bludit Plugins Homepage
This repository contains the files (HTML, JS, CSS) for the official websites of Bludit Plugins.
# Source code of https://plugins.bludit.com
This repository contains the files of the official page of Bludit Plugins.

- (English) https://plugins.bludit.com
- (Deutsch) https://plugins.bludit.com/de/
- (Español) https://plugins.bludit.com/es/
English:
- https://plugins.bludit.com

Deutsch:
- https://plugins.bludit.com/de/

Español:
- https://plugins.bludit.com/es/

## How to add a Plugin
All plugins and authors are in the bellow repository.
- https://github.com/bludit/plugins-repository

## How to install a Plugin
- https://docs.bludit.com/en/getting-started/plugins
Add your free or paid plugin.
- https://github.com/bludit/plugins-repository
2 changes: 1 addition & 1 deletion boot.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php defined('BLUDIT') or die('Bludit');
<?php defined('BLUDIT') or die('BLUDIT');

// Language passed via $_GET['l']
$currentLanguage = 'en';
Expand Down
4 changes: 1 addition & 3 deletions config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

define('BLUDIT', true);
<?php defined('BLUDIT') or die('BLUDIT');
define('DS', DIRECTORY_SEPARATOR);
define('PATH_ROOT', __DIR__.DS);
define('PATH_HTML', PATH_ROOT.'html'.DS);
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php defined('BLUDIT') or die('Bludit');
<?php defined('BLUDIT') or die('BLUDIT');

// Returns the translation of the key
function l($key, $print=true) {
Expand Down
2 changes: 1 addition & 1 deletion html/footer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php defined('BLUDIT') or die('Bludit'); ?>
<?php defined('BLUDIT') or die('BLUDIT'); ?>
<footer class="py-4 bg-dark">
<div class="container">
<div class="row mb-2">
Expand Down
2 changes: 1 addition & 1 deletion html/head.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php defined('BLUDIT') or die('Bludit'); ?>
<?php defined('BLUDIT') or die('BLUDIT'); ?>
<head>

<meta charset="UTF-8">
Expand Down
2 changes: 1 addition & 1 deletion html/home.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php defined('BLUDIT') or die('Bludit'); ?>
<?php defined('BLUDIT') or die('BLUDIT'); ?>
<!-- Page Content -->
<div class="container">

Expand Down
2 changes: 1 addition & 1 deletion html/item.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php defined('BLUDIT') or die('Bludit'); ?>
<?php defined('BLUDIT') or die('BLUDIT'); ?>
<div class="container mb-2">
<div class="row">

Expand Down
30 changes: 23 additions & 7 deletions html/topnavbar.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
<?php defined('BLUDIT') or die('Bludit'); ?>
<?php defined('BLUDIT') or die('BLUDIT'); ?>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="<?php echo $_topbar['website'] ?>">
<img src="<?php echo DOMAIN ?>/img/bludit-logo.svg" width="30" height="30" class="d-inline-block align-top" alt="">
<span class="text-white">BLUDIT</span>
<span class="ml-1 text-muted"><?php l('Plugins') ?></span>
<span class="ml-1 text-muted"><?php l('Themes') ?></span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="<?php echo $_topbar['themes'] ?>"><?php l('Themes') ?></a></li>
<li class="nav-item"><a class="nav-link" href="<?php echo $_topbar['plugins'] ?>"><?php l('Plugins') ?></a></li>
<li class="nav-item"><a class="nav-link" href="<?php echo $_topbar['documentation'] ?>"><?php l('Documentation') ?></a></li>
<li class="nav-item"><a class="nav-link" href="<?php echo $_topbar['pro'] ?>">BLUDIT PRO</a></li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $_topbar['themes'] ?>"><?php l('themes') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $_topbar['plugins'] ?>"><?php l('plugins') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $_topbar['documentation'] ?>"><?php l('documentation') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $_topbar['pro'] ?>">Bludit PRO</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="https://plugins.bludit.com" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-globe"></i></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="https://plugins.bludit.com">English</a>
<a class="dropdown-item" href="https://plugins.bludit.com/de/">Deutsch</a>
<a class="dropdown-item" href="https://plugins.bludit.com/es/">Español</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
</nav>
5 changes: 4 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php include('config.php'); ?>
<?php
define('BLUDIT', true);
include('config.php');
?>
<!DOCTYPE html>
<html>
<?php include(PATH_HTML.'head.php'); ?>
Expand Down

0 comments on commit bff1af7

Please sign in to comment.