HEX
Server: nginx/1.18.0
System: Linux vps-9dcdb12e 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.24
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /var/www/goautomatic.pl/wp-content/plugins/latepoint/lib/controllers/support_topics_controller.php
<?php
/*
 * Copyright (c) 2024 LatePoint LLC. All rights reserved.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}


if ( ! class_exists( 'OsSupportTopicsController' ) ) :


	class OsSupportTopicsController extends OsController {

		function __construct() {
			parent::__construct();

			$this->views_folder = LATEPOINT_VIEWS_ABSPATH . 'support_topics/';
		}

		function view(){
			$topic = sanitize_text_field($this->params['topic']);
			$topic = str_replace(['..', '/'], '', $topic);

			$available_topics = ['payment_request'];
			if(in_array($topic, $available_topics)){
				$this->vars['topic'] = $topic;
				$response_html = $this->render($this->views_folder.'view', 'none');
				$status = LATEPOINT_STATUS_SUCCESS;
			}else{
				$response_html = __('Not Found', 'latepoint');
				$status = LATEPOINT_STATUS_ERROR;
			}
			$this->send_json( [ 'status' => $status, 'message' => $response_html ] );

		}
	}


endif;