summaryrefslogtreecommitdiff
path: root/Postman/notifications
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/notifications')
-rw-r--r--Postman/notifications/INotify.php3
-rw-r--r--Postman/notifications/PostmanMailNotify.php4
-rw-r--r--Postman/notifications/PostmanNotify.php3
-rw-r--r--Postman/notifications/PostmanPushoverNotify.php4
-rw-r--r--Postman/notifications/PostmanSlackNotify.php4
5 files changed, 15 insertions, 3 deletions
diff --git a/Postman/notifications/INotify.php b/Postman/notifications/INotify.php
index d330cbe..f40548d 100644
--- a/Postman/notifications/INotify.php
+++ b/Postman/notifications/INotify.php
@@ -1,4 +1,7 @@
<?php
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
interface Postman_Notify {
public function send_message( $message );
} \ No newline at end of file
diff --git a/Postman/notifications/PostmanMailNotify.php b/Postman/notifications/PostmanMailNotify.php
index a76fb2a..922c304 100644
--- a/Postman/notifications/PostmanMailNotify.php
+++ b/Postman/notifications/PostmanMailNotify.php
@@ -1,5 +1,7 @@
<?php
-
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
class PostmanMailNotify implements Postman_Notify {
public function send_message($message)
diff --git a/Postman/notifications/PostmanNotify.php b/Postman/notifications/PostmanNotify.php
index 365d708..7654ecb 100644
--- a/Postman/notifications/PostmanNotify.php
+++ b/Postman/notifications/PostmanNotify.php
@@ -1,4 +1,7 @@
<?php
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
require_once 'INotify.php';
require_once 'PostmanMailNotify.php';
require_once 'PostmanPushoverNotify.php';
diff --git a/Postman/notifications/PostmanPushoverNotify.php b/Postman/notifications/PostmanPushoverNotify.php
index 1c483b3..14ef7d2 100644
--- a/Postman/notifications/PostmanPushoverNotify.php
+++ b/Postman/notifications/PostmanPushoverNotify.php
@@ -1,5 +1,7 @@
<?php
-
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
class PostmanPushoverNotify implements Postman_Notify {
public function send_message($message)
diff --git a/Postman/notifications/PostmanSlackNotify.php b/Postman/notifications/PostmanSlackNotify.php
index 41094ed..5b6fae3 100644
--- a/Postman/notifications/PostmanSlackNotify.php
+++ b/Postman/notifications/PostmanSlackNotify.php
@@ -1,5 +1,7 @@
<?php
-
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
class PostmanSlackNotify implements Postman_Notify {
public function send_message($message)