corrade-http-templates
/instantMessage/storeInstantMessages.php |
@@ -7,6 +7,9 @@ |
## a sub-directory from the current path. ## |
########################################################################### |
|
# Send the response back to Corrade. |
http_response_code(200); |
|
########################################################################### |
## CONFIGURATION ## |
########################################################################### |
@@ -20,13 +23,10 @@ |
|
# Check if this is the group chat notification. |
if(!isset($_POST['type']) || $_POST['type'] != "message") return; |
# Check that we have all the required variables. |
# Bail if "firstname", "lastname" or the "message" variables are blank. |
if(!isset($_POST['firstname']) || |
empty($_POST['firstname']) || |
!isset($_POST['lastname']) || |
empty($_POST['lastname']) || |
!isset($_POST['message']) || |
empty($_POST['message'])) return; |
!isset($_POST['message'])) return; |
|
#### |
# I. Get the path to the configured chat directory. |