Skip to content

Commit f5e3235

Browse files
committed
consistency: update use of require to require_once; remove parens
1 parent cbedd8e commit f5e3235

File tree

325 files changed

+1308
-1308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+1308
-1308
lines changed

DEembedq.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//IMathAS: Embed a Question via iFrame
33
//(c) 2010 David Lippman
44

5-
require("./init_without_validate.php");
5+
require_once "./init_without_validate.php";
66

7-
require("includes/DEutil.php");
7+
require_once "includes/DEutil.php";
88
header('P3P: CP="ALL CUR ADM OUR"');
99

1010
if((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO']=='https')) {
@@ -13,7 +13,7 @@
1313
$urlmode = 'http://';
1414
}
1515

16-
require("./assessment/displayq2.php");
16+
require_once "./assessment/displayq2.php";
1717
$GLOBALS['assessver'] = 1;
1818

1919
$_SESSION = array();
@@ -44,7 +44,7 @@
4444
$flexwidth = true; //tells header to use non _fw stylesheet
4545
$placeinhead .= '<style type="text/css">div.question {width: auto;} div.review {width: auto; margin-top: 5px;} body {height:auto;}</style>';
4646
$useeditor = 1;
47-
require("./assessment/header.php");
47+
require_once "./assessment/header.php";
4848

4949
if (isset($_GET['showscored'])) {
5050
//DE is requesting that the question be redisplayed with right/wrong markers
@@ -181,7 +181,7 @@
181181
}
182182

183183

184-
require("./footer.php");
184+
require_once "./footer.php";
185185

186186

187187
function getansweights($code,$seed) {

OEAembedq.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//(c) 2010 David Lippman
44
$inline_choicemap = !empty($CFG['GEN']['choicesalt']) ? $CFG['GEN']['choicesalt'] : 'test';
55
$init_skip_csrfp = true;
6-
require("./init_without_validate.php");
6+
require_once "./init_without_validate.php";
77

8-
require("includes/JWT.php");
8+
require_once "includes/JWT.php";
99
header('P3P: CP="ALL CUR ADM OUR"');
1010

1111
if((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO']=='https')) {
@@ -14,7 +14,7 @@
1414
$urlmode = 'http://';
1515
}
1616

17-
require("./assessment/displayq2.php");
17+
require_once "./assessment/displayq2.php";
1818
$GLOBALS['assessver'] = 2;
1919

2020
$_SESSION = array();
@@ -139,7 +139,7 @@ function sendresizemsg() {
139139
</script>';
140140
}
141141
$useeditor = 1;
142-
require("./assessment/header.php");
142+
require_once "./assessment/header.php";
143143

144144
if ($_SESSION['graphdisp'] == 1) {
145145
echo '<div style="position:absolute;width:1px;height:1px;left:0px:top:-1px;overflow:hidden;"><a href="OEAembedq.php?'.Sanitize::encodeStringForDisplay($_SERVER['QUERY_STRING']).'&graphdisp=0">Enable text based alternatives for graph display and drawing entry</a></div>';
@@ -318,7 +318,7 @@ function sendresizemsg() {
318318

319319
}
320320

321-
require("./footer.php");
321+
require_once "./footer.php";
322322

323323

324324
function getansweights($code,$seed) {

0 commit comments

Comments
 (0)