Skip to content

Commit

Permalink
Moved more private files out of the root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER committed Dec 20, 2016
1 parent 30d70ba commit bb2c2e2
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion api.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

check_cors();

include('data.php');
include('scripts/pi-hole/php/data.php');
header('Content-type: application/json');

$data = array();
Expand Down
4 changes: 2 additions & 2 deletions gravity.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require "header.php";
require "scripts/pi-hole/php/header.php";
?>
<!-- Title -->
<div class="page-header">
Expand All @@ -20,7 +20,7 @@
<pre id="output" style="width: 100%; height: 100%;" hidden="true"></pre>

<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>


Expand Down
4 changes: 2 additions & 2 deletions help.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require "header.php";
require "scripts/pi-hole/php/header.php";

if(strlen($pwhash) > 0)
{
Expand Down Expand Up @@ -146,7 +146,7 @@
</div>

<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>

<script src="scripts/pi-hole/js/help.js"></script>
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$indexpage = true;
require "header.php";
require "scripts/pi-hole/php/header.php";
?>
<!-- Small boxes (Stat box) -->
<div class="row">
Expand Down Expand Up @@ -213,7 +213,7 @@
<!-- /.row -->
<?php } ?>
<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>

<script src="scripts/pi-hole/js/index.js"></script>
4 changes: 2 additions & 2 deletions list.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require "header.php";
require "scripts/pi-hole/php/header.php";

$list = $_GET['l'];

Expand Down Expand Up @@ -52,7 +52,7 @@ function getFullName() {
<ul class="list-group" id="list"></ul>

<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>

<script src="scripts/pi-hole/js/list.js"></script>
4 changes: 2 additions & 2 deletions queries.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require "header.php";
require "scripts/pi-hole/php/header.php";

// Generate CSRF token
if(empty($_SESSION['token'])) {
Expand Down Expand Up @@ -97,7 +97,7 @@
<!-- /.row -->

<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>

<script src="scripts/pi-hole/js/queries.js"></script>
4 changes: 2 additions & 2 deletions queryads.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require "header.php";
require "scripts/pi-hole/php/header.php";
?>
<!-- Title -->
<div class="page-header">
Expand All @@ -18,7 +18,7 @@
<pre id="output" style="width: 100%; height: 100%;" hidden="true"></pre>

<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require "header.php";
require "scripts/pi-hole/php/header.php";
require "scripts/pi-hole/php/savesettings.php";
// Reread ini file as things might have been changed
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf");
Expand Down Expand Up @@ -501,7 +501,7 @@
</div>

<?php
require "footer.php";
require "scripts/pi-hole/php/footer.php";
?>
<script src="scripts/vendor/jquery.inputmask.js"></script>
<script src="scripts/vendor/jquery.inputmask.extensions.js"></script>
Expand Down

0 comments on commit bb2c2e2

Please sign in to comment.