$96 GRAYBYTE WORDPRESS FILE MANAGER $93

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/

HOME
Current File : /var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications//pushover.php
<?php

namespace GOSMTP\Notifications;

use GOSMTP\Notifications\Manager;

class Pushover extends Manager{

	var $title = 'Pushover';
	var $service = 'pushover';

	public function send($message){

		$pushover_user_key = $this->get_option('pushover_user_key', $this->service);
		$pushover_api_token = $this->get_option('pushover_api_token', $this->service);

		if(empty($pushover_user_key) || empty($pushover_api_token)){
			return false;
		};

		$message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');

		$body = [
			'user' => $pushover_user_key,
			'token' => $pushover_api_token,
			'message' => $message
		];

		$args = [
			'body' => $body
		];
		$pushover_api = 'https://api.pushover.net/1/messages.json';

		return wp_remote_post($pushover_api, $args);
	}

	public function load_services_field(){

		$fields = [
			'pushover_user_key' => [
				'title' => __('Pushover User key', 'gosmtp-pro'),
				'type' => 'password',
				'desc' => __('Enter your Pushover User Key', 'gosmtp-pro')
			],

			'pushover_api_token' => [
				'title' => __('Pushover Api Token', 'gosmtp-pro'),
				'type'  => 'password',
				'desc'  => __('Enter your Pushover application token', 'gosmtp-pro')
			]
		];

		return $fields;
	}

}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
discord.php
0.957 KB
18 Feb 2026 11.32 PM
root / root
0644
email.php
1.043 KB
18 Feb 2026 11.32 PM
root / root
0644
manager.php
1.184 KB
18 Feb 2026 11.32 PM
root / root
0644
pushover.php
1.248 KB
18 Feb 2026 11.32 PM
root / root
0644
sender.php
1.146 KB
18 Feb 2026 11.32 PM
root / root
0644
slack.php
0.965 KB
18 Feb 2026 11.32 PM
root / root
0644
webhook.php
0.855 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF