Skip to content

Commit a33a360

Browse files
committed
Merge branch 'absolute-require' into testing2
2 parents eeda9ce + 2aef082 commit a33a360

20 files changed

+47
-47
lines changed

webroot/admin/ajax/get_group_members.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../../resources/autoload.php";
3+
require_once __DIR__ . "/../../../resources/autoload.php";
44

55
use UnityWebPortal\lib\UnityGroup;
66

webroot/admin/ajax/get_page_contents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../../resources/autoload.php";
3+
require_once __DIR__ . "/../../../resources/autoload.php";
44

55
if (!$USER->isAdmin()) {
66
die();

webroot/admin/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../resources/autoload.php";
3+
require_once __DIR__ . "/../../resources/autoload.php";
44

55
if (!$USER->isAdmin()) {
66
die();

webroot/admin/notices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../resources/autoload.php";
3+
require_once __DIR__ . "/../../resources/autoload.php";
44

55
if (!$USER->isAdmin()) {
66
die();

webroot/admin/pi-mgmt.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../resources/autoload.php";
3+
require_once __DIR__ . "/../../resources/autoload.php";
44

55
use UnityWebPortal\lib\UnityUser;
66
use UnityWebPortal\lib\UnityGroup;
@@ -90,9 +90,9 @@
9090
"<form action='' method='POST'>
9191
<input type='hidden' name='form_name' value='req'>
9292
<input type='hidden' name='uid' value='" . $request_user->getUID() . "'>
93-
<input type='submit' name='action' value='Approve'
93+
<input type='submit' name='action' value='Approve'
9494
onclick='return confirm(\"Are you sure you want to approve " . $request_user->getUID() . "?\");'>
95-
<input type='submit' name='action' value='Deny'
95+
<input type='submit' name='action' value='Deny'
9696
onclick='return confirm(\"Are you sure you want to deny " . $request_user->getUID() . "?\");'>
9797
</form>";
9898
echo "</td>";
@@ -130,7 +130,7 @@
130130
echo "<td><a href='mailto:" . $pi_user->getMail() . "'>" . $pi_user->getMail() . "</a></td>";
131131
echo "<td>";
132132
echo
133-
"<form action='' method='POST'
133+
"<form action='' method='POST'
134134
onsubmit='return confirm(\"Are you sure you want to remove " . $pi_group->getPIUID() . "?\")'>
135135
<input type='hidden' name='form_name' value='remGroup'>
136136
<input type='hidden' name='pi' value='" . $pi_group->getPIUID() . "'>

webroot/admin/user-mgmt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../resources/autoload.php";
3+
require_once __DIR__ . "/../../resources/autoload.php";
44

55
use UnityWebPortal\lib\UnitySite;
66

@@ -63,7 +63,7 @@
6363
}
6464
echo "</td>";
6565
echo "<td>";
66-
echo "<form class='viewAsUserForm' action='' method='POST'
66+
echo "<form class='viewAsUserForm' action='' method='POST'
6767
onsubmit='return confirm(\"Are you sure you want to switch to the user " . $user->getUID() . "?\");'>
6868
<input type='hidden' name='form_name' value='viewAsUser'>
6969
<input type='hidden' name='uid' value='" . $user->getUID() . "'>

webroot/api/content/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
header('Content-type: text/plain');
44

5-
require_once "../../../resources/autoload.php";
5+
require_once __DIR__ . "/../../../resources/autoload.php";
66

77
if (isset($_GET["line_wrap"])) {
88
$CHAR_WRAP = $_GET["line_wrap"];

webroot/api/notices/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
header('Content-type: text/plain');
44

5-
require_once "../../../resources/autoload.php";
5+
require_once __DIR__ . "/../../../resources/autoload.php";
66

77
$notices = $SQL->getNotices();
88
$jsonArray = [];

webroot/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../resources/autoload.php";
3+
require_once __DIR__ . "/../resources/autoload.php";
44

55
require_once $LOC_HEADER;
66
?>

webroot/panel/account.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once "../../resources/autoload.php";
3+
require_once __DIR__ . "/../../resources/autoload.php";
44

55
use UnityWebPortal\lib\UnitySite;
66

@@ -114,16 +114,16 @@
114114
} elseif ($isActive) {
115115
echo "<p>You are curently a <strong>user</strong> on the Unity Cluster</p>";
116116
} else {
117-
echo "<p>You are currently not assigned to any PI, and will be
118-
<strong>unable to use the cluster</strong>. Go to the <a href='groups.php'>My PIs</a>
117+
echo "<p>You are currently not assigned to any PI, and will be
118+
<strong>unable to use the cluster</strong>. Go to the <a href='groups.php'>My PIs</a>
119119
page to join a PI, or click on the button below if you are a PI</p>";
120120
echo "<p>Students should not request a PI account.</p>";
121121
}
122122

123123
if (!$isPI) {
124124
if ($SQL->accDeletionRequestExists($USER->getUID())) {
125125
echo
126-
"<form action='' method='POST' id='piReq'
126+
"<form action='' method='POST' id='piReq'
127127
onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'>
128128
<input type='hidden' name='form_type' value='pi_request'>";
129129
echo "<input type='submit' value='Request PI Account' disabled>";
@@ -134,7 +134,7 @@
134134
echo "</form>";
135135
} else {
136136
echo
137-
"<form action='' method='POST' id='piReq'
137+
"<form action='' method='POST' id='piReq'
138138
onsubmit='return confirm(\"Are you sure you want to request a PI account?\")'>
139139
<input type='hidden' name='form_type' value='pi_request'>";
140140
if ($SQL->requestExists($USER->getUID())) {
@@ -162,7 +162,7 @@
162162
echo
163163
"<div class='key-box'>
164164
<textarea spellcheck='false' readonly>" . $sshPubKeys[$i] . "</textarea>
165-
<form action='' id='del-" . $i . "'
165+
<form action='' id='del-" . $i . "'
166166
onsubmit='return confirm(\"Are you sure you want to delete this SSH key?\");' method='POST'>
167167
<input type='hidden' name='delIndex' value='$i'>
168168
<input type='hidden' name='form_type' value='delKey'>
@@ -181,7 +181,7 @@
181181

182182
<input type="hidden" name="form_type" value="loginshell">
183183

184-
<select id="loginSelector" name= "shellSelect">
184+
<select id="loginSelector" name= "shellSelect">
185185

186186
<option value="" disabled hidden>Select Login Shell...</option>
187187

@@ -208,10 +208,10 @@
208208
<?php
209209

210210
if ($found_selector) {
211-
echo "<input id='customLoginBox' type='text'
211+
echo "<input id='customLoginBox' type='text'
212212
placeholder='Enter login shell path (ie. /bin/bash)' name='shell'>";
213213
} else {
214-
echo "<input id='customLoginBox' type='text'
214+
echo "<input id='customLoginBox' type='text'
215215
placeholder='Enter login shell path (ie. /bin/bash)' name='shell' value='$cur_shell'>";
216216
}
217217

@@ -231,7 +231,7 @@
231231
echo "<p>You cannot request to delete your account while you are in a PI group.</p>";
232232
} else {
233233
echo
234-
"<form action='' method='POST' id='accDel'
234+
"<form action='' method='POST' id='accDel'
235235
onsubmit='return confirm(\"Are you sure you want to request an account deletion?\")'>
236236
<input type='hidden' name='form_type' value='account_deletion_request'>";
237237
if ($SQL->accDeletionRequestExists($USER->getUID())) {

0 commit comments

Comments
 (0)