Move PHP scripts to scripts folder

This commit is contained in:
Mcat12
2016-12-19 19:44:51 -05:00
committed by DL6ER
parent d0553ef169
commit 2f65430a4d
29 changed files with 15 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
<?php <?php
$api = true; $api = true;
require "php/password.php"; require "scripts/pi-hole/php/password.php";
require "php/auth.php"; require "scripts/pi-hole/php/auth.php";
check_cors(); check_cors();

View File

@@ -42,7 +42,7 @@
<script src="scripts/vendor/dataTables.bootstrap.min.js"></script> <script src="scripts/vendor/dataTables.bootstrap.min.js"></script>
<script src="scripts/vendor/Chart.bundle.min.js"></script> <script src="scripts/vendor/Chart.bundle.min.js"></script>
<script src="scripts/pi-hole/footer.js"></script> <script src="scripts/pi-hole/js/footer.js"></script>
</body> </body>
</html> </html>

View File

@@ -24,4 +24,4 @@
?> ?>
<script src="scripts/pi-hole/gravity.js"></script> <script src="scripts/pi-hole/js/gravity.js"></script>

View File

@@ -1,6 +1,6 @@
<?php <?php
require "php/auth.php"; require "scripts/pi-hole/php/auth.php";
require "php/password.php"; require "scripts/pi-hole/php/password.php";
check_cors(); check_cors();
@@ -160,7 +160,7 @@
<p>To enable Javascript click <a href="http://www.enable-javascript.com/" target="_blank">here</a></p><label for="js-hide">Close</label></div> <p>To enable Javascript click <a href="http://www.enable-javascript.com/" target="_blank">here</a></p><label for="js-hide">Close</label></div>
</div> </div>
<!-- /JS Warning --> <!-- /JS Warning -->
<script src="scripts/pi-hole/header.js"></script> <script src="scripts/pi-hole/js/header.js"></script>
<!-- Send token to JS --> <!-- Send token to JS -->
<div id="token" hidden><?php echo $token ?></div> <div id="token" hidden><?php echo $token ?></div>
<div class="wrapper"> <div class="wrapper">
@@ -421,7 +421,7 @@
// If auth is required and not set, i.e. no successfully logged in, // If auth is required and not set, i.e. no successfully logged in,
// we show the reduced version of the summary (index) page // we show the reduced version of the summary (index) page
if(!$auth && (!isset($indexpage) || isset($_GET['login']))){ if(!$auth && (!isset($indexpage) || isset($_GET['login']))){
require "php/loginpage.php"; require "scripts/pi-hole/php/loginpage.php";
require "footer.php"; require "footer.php";
exit(); exit();
} }

View File

@@ -149,4 +149,4 @@
require "footer.php"; require "footer.php";
?> ?>
<script src="scripts/pi-hole/help.js"></script> <script src="scripts/pi-hole/js/help.js"></script>

View File

@@ -216,4 +216,4 @@ else
require "footer.php"; require "footer.php";
?> ?>
<script src="scripts/pi-hole/index.js"></script> <script src="scripts/pi-hole/js/index.js"></script>

View File

@@ -55,4 +55,4 @@ function getFullName() {
require "footer.php"; require "footer.php";
?> ?>
<script src="scripts/pi-hole/list.js"></script> <script src="scripts/pi-hole/js/list.js"></script>

View File

@@ -100,4 +100,4 @@ if(isset($setupVars["API_QUERY_LOG_SHOW"]))
require "footer.php"; require "footer.php";
?> ?>
<script src="scripts/pi-hole/queries.js"></script> <script src="scripts/pi-hole/js/queries.js"></script>

View File

@@ -22,4 +22,4 @@
?> ?>
<script src="scripts/pi-hole/queryads.js"></script> <script src="scripts/pi-hole/js/queryads.js"></script>

View File

@@ -1,6 +1,6 @@
<?php <?php
require "header.php"; require "header.php";
require "php/savesettings.php"; require "scripts/pi-hole/php/savesettings.php";
// Reread ini file as things might have been changed // Reread ini file as things might have been changed
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf"); $setupVars = parse_ini_file("/etc/pihole/setupVars.conf");
?> ?>
@@ -507,5 +507,5 @@
<script src="scripts/vendor/jquery.inputmask.js"></script> <script src="scripts/vendor/jquery.inputmask.js"></script>
<script src="scripts/vendor/jquery.inputmask.extensions.js"></script> <script src="scripts/vendor/jquery.inputmask.extensions.js"></script>
<script src="scripts/vendor/jquery.confirm.min.js"></script> <script src="scripts/vendor/jquery.confirm.min.js"></script>
<script src="scripts/pi-hole/settings.js"></script> <script src="scripts/pi-hole/js/settings.js"></script>