corrade-http-templates
/instantMessage/storeInstantMessages.php |
@@ -23,10 +23,13 @@ |
|
# Check if this is the group chat notification. |
if(!isset($_POST['type']) || $_POST['type'] != "message") return; |
# Bail if "firstname", "lastname" or the "message" variables are blank. |
# Check that we have all the required variables. |
if(!isset($_POST['firstname']) || |
empty($_POST['firstname']) || |
!isset($_POST['lastname']) || |
!isset($_POST['message'])) return; |
empty($_POST['lastname']) || |
!isset($_POST['message']) || |
empty($_POST['message'])) return; |
|
#### |
# I. Get the path to the configured chat directory. |