Skip to content

Commit

Permalink
No parens for include functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpass committed May 4, 2020
1 parent acf7300 commit 36b3622
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions lib/auto-logout-warning.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
include("headers.php");
include("settings.php");
include "headers.php";
include "settings.php" ;
$t = $text['auto-logout-warning'];
?>
<!DOCTYPE html>
Expand All @@ -21,4 +21,4 @@

</body>

</html>
</html>
4 changes: 2 additions & 2 deletions lib/backup-versions-preview-loader.php
Original file line number Diff line number Diff line change
@@ -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'));

Expand Down
6 changes: 3 additions & 3 deletions lib/backup-versions.php
Original file line number Diff line number Diff line change
@@ -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'];

Expand Down Expand Up @@ -90,7 +90,7 @@

<?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"), {
Expand Down
6 changes: 3 additions & 3 deletions lib/bug-files-check.php
Original file line number Diff line number Diff line change
@@ -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'];

Expand Down Expand Up @@ -107,7 +107,7 @@
);

// 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);
Expand Down
4 changes: 2 additions & 2 deletions lib/download.php
Original file line number Diff line number Diff line change
@@ -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']));
Expand Down
8 changes: 4 additions & 4 deletions lib/file-control.php
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -119,7 +119,7 @@
$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 {
Expand Down

0 comments on commit 36b3622

Please sign in to comment.