No parens for include functions

This commit is contained in:
mattpass
2020-05-04 08:17:05 +01:00
parent acf7300514
commit 36b3622d11
6 changed files with 17 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
<?php
include("headers.php");
include("settings.php");
include "headers.php";
include "settings.php" ;
$t = $text['auto-logout-warning'];
?>
<!DOCTYPE html>
@@ -21,4 +21,4 @@ $t = $text['auto-logout-warning'];
</body>
</html>
</html>

View File

@@ -1,7 +1,7 @@
<?php
// Load common functions
include("headers.php");
include("settings.php");
include "headers.php";
include "settings.php";
$file = str_replace("|", "/", xssClean($_GET['file'], 'html'));

View File

@@ -1,7 +1,7 @@
<?php
// Load common functions
include("headers.php");
include("settings.php");
include "headers.php";
include "settings.php";
$text = $_SESSION['text'];
$t = $text['backup-versions'];
@@ -90,7 +90,7 @@ let highlightVersion = function(elem) {
<?php
echo "fileName = '" . basename($file) . "';";
include(dirname(__FILE__) . "/../assets/js/language-modes-partial.js");
include dirname(__FILE__) . "/../assets/js/language-modes-partial.js";
?>
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {

View File

@@ -1,7 +1,7 @@
<?php
// Load common functions
include("headers.php");
include_once("settings-common.php");
include "headers.php";
include_once "settings-common.php";
$text = $_SESSION['text'];
$t = $text['bug-files-check'];
@@ -107,7 +107,7 @@ $status = array(
);
// Include our process once our bug checking work is done
include("../processes/on-bug-check.php");
include "../processes/on-bug-check.php";
// Finally, display our status in JSON format as the XHR response text
echo json_encode($status);

View File

@@ -1,6 +1,6 @@
<?php
include("headers.php");
include("settings.php");
include "headers.php";
include "settings.php";
// Establish the real absolute path to the file
$file = realpath($docRoot . $iceRoot . str_replace("|", "/", $_GET['file']));

View File

@@ -1,7 +1,7 @@
<?php
include("headers.php");
include("settings.php");
include("ftp-control.php");
include "headers.php";
include "settings.php";
include "ftp-control.php";
$t = $text['file-control'];
?>
<script>
@@ -119,7 +119,7 @@ if ("load" === $_GET['action']) {
$loadedFile = preg_replace('/\\n/', '&#13;', $loadedFile);
echo '</script><textarea name="loadedFile" id="loadedFile">' . $loadedFile . '</textarea><script>';
// Run our custom processes
include_once("../processes/on-file-load.php");
include_once "../processes/on-file-load.php";
} else if (0 === strpos($finfo, "image")) {
echo 'fileType="image";fileName=\'' . $fileLoc . "/" . $fileName . '\';';
} else {