@@ -354,4 +354,4 @@
-
+
diff --git a/public/old/editRole.php b/public/old/editRole.php
index 8576dc8d..5258744c 100755
--- a/public/old/editRole.php
+++ b/public/old/editRole.php
@@ -47,14 +47,14 @@
//$roleId = filter_var($roleId, FILTER_SANITIZE_NUMBER_INT);
if (empty($users)) {
$sql = "DELETE FROM userRoles WHERE roleId = '$roleId'";
- mysqli_query(db(), $sql) or die(mysqli_error(db()));
+ mysqli_query(db(), $sql) or exit(mysqli_error(db()));
} else {
$sqlPeople = "SELECT
userId
FROM userRoles
WHERE roleId = '$roleId'";
- $resultPeople = mysqli_query(db(), $sqlPeople) or die('mysqli_error(db())');
+ $resultPeople = mysqli_query(db(), $sqlPeople) or exit('mysqli_error(db())');
$existingUsers = [];
while ($viewPeople = mysqli_fetch_array($resultPeople, MYSQLI_ASSOC)) {
@@ -90,7 +90,7 @@
$sql = "SELECT *
FROM roles
WHERE id = '$roleId'";
-$result = mysqli_query(db(), $sql) or die(mysqli_error(db()));
+$result = mysqli_query(db(), $sql) or exit(mysqli_error(db()));
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
$id = $row['id'];
@@ -105,7 +105,7 @@
FROM users u
ORDER BY u.firstName";
-$result = mysqli_query(db(), $sqlPeople) or die(mysqli_error(db()));
+$result = mysqli_query(db(), $sqlPeople) or exit(mysqli_error(db()));
while ($viewPeople = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
$users[] = $viewPeople;
@@ -146,7 +146,7 @@
-
+
-
+
- 0): ?>
-
+ 0) { ?>
+
-
-
+
+
diff --git a/public/old/emailGroup.php b/public/old/emailGroup.php
index 58eee33b..18999123 100644
--- a/public/old/emailGroup.php
+++ b/public/old/emailGroup.php
@@ -44,7 +44,6 @@
exit;
}
- $groups;
foreach ($_POST['group'] as $group) {
$groups[] = intval($group);
}
@@ -74,7 +73,7 @@
INNER JOIN userRoles ur ON ur.roleId = r.id
GROUP BY
g.id';
-$result = mysqli_query(db(), $sql) or die(mysqli_error(db()));
+$result = mysqli_query(db(), $sql) or exit(mysqli_error(db()));
while ($ob = mysqli_fetch_object($result)) {
$groups[] = $ob;
}
@@ -110,13 +109,13 @@
Send to
- 0): ?>
-
+ 0) { ?>
+
-
-
+
+
diff --git a/public/old/emails.php b/public/old/emails.php
index d8c8b5af..eefc1cf4 100755
--- a/public/old/emails.php
+++ b/public/old/emails.php
@@ -71,7 +71,7 @@
if ($editskillID != '') {
$sql = ("INSERT INTO eventPeople (eventID, skillID) VALUES ('$editeventID', '$editskillID')");
if (!mysqli_query(db(), $sql)) {
- die('Error: '.mysqli_error(db()));
+ exit('Error: '.mysqli_error(db()));
}
// After we have inserted the data, we want to head back to the main page
@@ -81,14 +81,14 @@
if ($editbandID != '') {
$sqlbandMembers = "SELECT * FROM bandMembers WHERE bandID = '$editbandID'";
- $resultbandMembers = mysqli_query(db(), $sqlbandMembers) or die(mysqli_error(db()));
+ $resultbandMembers = mysqli_query(db(), $sqlbandMembers) or exit(mysqli_error(db()));
while ($bandMember = mysqli_fetch_array($resultbandMembers, MYSQLI_ASSOC)) {
$editskillID = $bandMember['skillID'];
$sql = ("INSERT INTO eventPeople (eventID, skillID) VALUES ('$editeventID', '$editskillID')");
if (!mysqli_query(db(), $sql)) {
- die('Error: '.mysqli_error(db()));
+ exit('Error: '.mysqli_error(db()));
}
}
diff --git a/public/old/events.php b/public/old/events.php
index 7b55ef91..d7dffea0 100755
--- a/public/old/events.php
+++ b/public/old/events.php
@@ -110,7 +110,7 @@
if ($editskillID != '') {
$sql = ("INSERT INTO eventPeople (eventId, userRoleId) VALUES ('$editeventID', '$editskillID')");
if (!mysqli_query(db(), $sql)) {
- die('Error: '.mysqli_error(db()));
+ exit('Error: '.mysqli_error(db()));
}
// After we have inserted the data, we want to head back to the main page
@@ -120,14 +120,14 @@
if ($editbandID != '') {
$sqlbandMembers = "SELECT * FROM bandMembers WHERE bandID = '$editbandID'";
- $resultbandMembers = mysqli_query(db(), $sqlbandMembers) or die(mysqli_error(db()));
+ $resultbandMembers = mysqli_query(db(), $sqlbandMembers) or exit(mysqli_error(db()));
while ($bandMember = mysqli_fetch_object($resultbandMembers)) {
$editskillID = $bandMember->skillID;
$sql = ("INSERT INTO eventPeople (eventId, userRoleId) VALUES ('$editeventID', '$editskillID')");
if (!mysqli_query(db(), $sql)) {
- die('Error: '.mysqli_error(db()));
+ exit('Error: '.mysqli_error(db()));
}
}
@@ -158,7 +158,7 @@
if (isAdmin()) {
$sql = 'SELECT COUNT(id) AS pendingSwaps FROM swaps WHERE accepted = 0 AND declined = 0';
- $results = mysqli_query(db(), $sql) or die(mysqli_error(db()));
+ $results = mysqli_query(db(), $sql) or exit(mysqli_error(db()));
$ob = mysqli_fetch_object($results);
$pendingSwaps = $ob->pendingSwaps;
@@ -175,7 +175,7 @@
echo 'All Events';
} elseif ($filter != '') {
$mysqli_query = "SELECT DISTINCT name FROM eventTypes WHERE id = $filter";
- $result = mysqli_query(db(), $mysqli_query) or die(mysqli_error(db()));
+ $result = mysqli_query(db(), $mysqli_query) or exit(mysqli_error(db()));
$row = mysqli_fetch_object($result);
echo $row->name.'s';
@@ -202,27 +202,28 @@
}
- 0):
- if ($pendingSwaps > 1) {
- $swapsMessage = $pendingSwaps.' swaps are pending approval. Emails have been sent to the people covering to approve the swaps.';
- } else {
- $swapsMessage = 'A swap is pending approval. An email has been sent to the person covering to approve the swap.';
- } ?>
+ 0) {
+ if ($pendingSwaps > 1) {
+ $swapsMessage = $pendingSwaps.' swaps are pending approval. Emails have been sent to the people covering to approve the swaps.';
+ } else {
+ $swapsMessage = 'A swap is pending approval. An email has been sent to the person covering to approve the swap.';
+ } ?>
No roles assigned to this event.';
- endif; ?>
+ if ($viewPeople->group == $groupId) {
+ // Do nothing, because they are all in the same group
+ } else {
+ // Update the group heading
+ $groupId = $viewPeople->group;
+ $groupName = $viewPeople->groupName;
+ if ($firstTime) {
+ $firstTime = false;
+ } else {
+ echo '';
+ }
+ echo '
@@ -357,12 +356,12 @@
*/
- if (isset($_SESSION['userid'])): ?>
+ if (isset($_SESSION['userid'])) { ?>
@@ -405,7 +404,7 @@
-
+
@@ -475,7 +474,7 @@
WHERE date >= DATE(NOW())
AND events.removed = 0)
ORDER BY name';
- $result = mysqli_query(db(), $filter_sql) or die(mysqli_error(db()));
+ $result = mysqli_query(db(), $filter_sql) or exit(mysqli_error(db()));
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
?>
@@ -491,11 +490,11 @@
No roles assigned to this event.';
- endif;
+ if ($viewPeople->group == $groupId) {
+ // Do nothing, because they are all in the same group
+ } else {
+ // Update the group heading
+ $groupId = $viewPeople->group;
+ $groupName = $viewPeople->groupName;
+ if ($firstTime) {
+ $firstTime = false;
+ } else {
+ echo '';
+ }
+ echo '
No roles assigned to this event.';
- endif;
+ if ($viewPeople->group == $groupId) {
+ // Do nothing, because they are all in the same group
+ } else {
+ // Update the group heading
+ $groupId = $viewPeople->group;
+ $groupName = $viewPeople->groupName;
+ if ($firstTime) {
+ $firstTime = false;
+ } else {
+ echo '';
+ }
+ echo '
diff --git a/public/old/license.php b/public/old/license.php
index b0245221..389e3103 100755
--- a/public/old/license.php
+++ b/public/old/license.php
@@ -22,7 +22,7 @@
You should have received a copy of the GNU General Public License
along with Church Rota. If not, see .
*/
-include 'includes/header.php'; ?>
+include 'includes/header.php'; ?>
License
GNU GENERAL PUBLIC LICENSE
diff --git a/public/old/linkSocialAuth.php b/public/old/linkSocialAuth.php
index c97c2dca..ac5face1 100644
--- a/public/old/linkSocialAuth.php
+++ b/public/old/linkSocialAuth.php
@@ -88,37 +88,37 @@
-
+
Social login has not been enabled.
Speak with your site administrator if you think this feature should be enabled.
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/public/old/plugins/ckeditor/samples/old/assets/posteddata.php b/public/old/plugins/ckeditor/samples/old/assets/posteddata.php
index 2d7e01f9..dfb57dec 100755
--- a/public/old/plugins/ckeditor/samples/old/assets/posteddata.php
+++ b/public/old/plugins/ckeditor/samples/old/assets/posteddata.php
@@ -4,7 +4,7 @@
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
-?>
+?>
@@ -35,7 +35,7 @@
$value = htmlspecialchars(stripslashes((string) $value));
} else {
$value = htmlspecialchars((string) $value);
- } ?>
+ } ?>