mirror of
https://github.com/pi-hole/web.git
synced 2025-12-22 19:58:27 +00:00
Move PHP scripts to scripts folder
This commit is contained in:
4
api.php
4
api.php
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -24,4 +24,4 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<script src="scripts/pi-hole/gravity.js"></script>
|
<script src="scripts/pi-hole/js/gravity.js"></script>
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
2
help.php
2
help.php
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
2
list.php
2
list.php
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -22,4 +22,4 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<script src="scripts/pi-hole/queryads.js"></script>
|
<script src="scripts/pi-hole/js/queryads.js"></script>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user