Changeset:
ac4e4b9b927f
https://sourceforge.net/p/mrbs/hg-code/ci/ac4e4b9b927f80f0c79c8a7ba997b60d09759268
Author:
Campbell Morrison <[email protected]>
Date:
Wed May 31 06:11:44 2017 +0100
Log message:
Made all calls to header() use the lowercase version of the function name,for
consistency within MRBS and with the function declaration.
diffstat:
web/del.php | 2 +-
web/del_entry.php | 2 +-
web/edit_area_room.php | 6 +++---
web/edit_users.php | 8 ++++----
web/session/session_http.inc | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
diffs (105 lines):
diff -r d15543350b4a -r ac4e4b9b927f web/del.php
--- a/web/del.php Tue May 30 20:52:25 2017 +0100
+++ b/web/del.php Wed May 31 06:11:44 2017 +0100
@@ -38,7 +38,7 @@
db()->commit();
// Go back to the admin page
- Header("Location: admin.php?area=$area");
+ header("Location: admin.php?area=$area");
}
else
{
diff -r d15543350b4a -r ac4e4b9b927f web/del_entry.php
--- a/web/del_entry.php Tue May 30 20:52:25 2017 +0100
+++ b/web/del_entry.php Wed May 31 06:11:44 2017 +0100
@@ -105,7 +105,7 @@
}
}
- Header("Location: $returl");
+ header("Location: $returl");
exit();
}
}
diff -r d15543350b4a -r ac4e4b9b927f web/edit_area_room.php
--- a/web/edit_area_room.php Tue May 30 20:52:25 2017 +0100
+++ b/web/edit_area_room.php Wed May 31 06:11:44 2017 +0100
@@ -624,7 +624,7 @@
{
$area = mrbsGetRoomArea($room);
}
- Header("Location: admin.php?day=$day&month=$month&year=$year&area=$area");
+ header("Location: admin.php?day=$day&month=$month&year=$year&area=$area");
exit();
}
@@ -777,7 +777,7 @@
// Release the mutex and go back to the admin page (for the new area)
db()->mutex_unlock($tbl_area);
- Header("Location:
admin.php?day=$day&month=$month&year=$year&area=$new_area");
+ header("Location:
admin.php?day=$day&month=$month&year=$year&area=$new_area");
exit();
}
@@ -1041,7 +1041,7 @@
db()->command($sql, $sql_params);
// Go back to the admin page
- Header("Location:
admin.php?day=$day&month=$month&year=$year&area=$area");
+ header("Location:
admin.php?day=$day&month=$month&year=$year&area=$area");
exit();
}
}
diff -r d15543350b4a -r ac4e4b9b927f web/edit_users.php
--- a/web/edit_users.php Tue May 30 20:52:25 2017 +0100
+++ b/web/edit_users.php Wed May 31 06:11:44 2017 +0100
@@ -525,7 +525,7 @@
array(utf8_strtolower($user)));
if (($level < $min_user_editing_level) && ($Id != $my_id ))
{
- Header("Location: edit_users.php");
+ header("Location: edit_users.php");
exit;
}
@@ -599,7 +599,7 @@
// but someone might have spoofed the input in the edit form
if ($values[$fieldname] > $level)
{
- Header("Location: edit_users.php");
+ header("Location: edit_users.php");
exit;
}
break;
@@ -680,7 +680,7 @@
// form values
if (!$valid_data)
{
- Header("Location: edit_users.php?$q_string");
+ header("Location: edit_users.php?$q_string");
exit;
}
@@ -773,7 +773,7 @@
db()->command($operation, $sql_params);
/* Success. Redirect to the user list, to remove the form args */
- Header("Location: edit_users.php");
+ header("Location: edit_users.php");
}
}
diff -r d15543350b4a -r ac4e4b9b927f web/session/session_http.inc
--- a/web/session/session_http.inc Tue May 30 20:52:25 2017 +0100
+++ b/web/session/session_http.inc Wed May 31 06:11:44 2017 +0100
@@ -24,7 +24,7 @@
{
global $auth;
header("WWW-Authenticate: Basic realm=\"$auth[realm]\"");
- Header("HTTP/1.0 401 Unauthorized");
+ header("HTTP/1.0 401 Unauthorized");
}
function getAuthPassword()
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits