HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/js-support-ticket/includes/message.php
<?php

if (!defined('ABSPATH'))
    die('Restricted Access');

class JSSTmessage {
    /*
     * Set Message
     * @params $jsst_message = Your message to display
     * @params $jsst_type = Messages types => 'updated','error','update-nag'
     */
    public static $jsst_response_msg = array();

    static function setMessage($jsst_message, $jsst_type) {
        JSSTincluder::getObjectClass('wphdnotification')->addSessionNotificationDataToTable($jsst_message,$jsst_type,'notification');
    }

    static function getMessage() {
        $jsst_frontend = (is_admin()) ? '' : 'frontend';
        $jsst_divHtml = '';
        $jsst_option = get_option('jssupportticket', array());
        $jsst_notificationdata = JSSTincluder::getObjectClass('wphdnotification')->getNotificationDatabySessionId('notification',true);
        if (isset($jsst_notificationdata) && !empty($jsst_notificationdata)) {
            $jsst_data = $jsst_notificationdata;
            for ($jsst_i = 0; $jsst_i < COUNT($jsst_data['msg']); $jsst_i++){
                $jsst_divHtml .= '<div class=" ' . esc_attr($jsst_frontend) . ' ' . esc_attr($jsst_data['type'][$jsst_i]) . '"><p>' . $jsst_data['msg'][$jsst_i] . '</p></div>';
            }
        }
        echo wp_kses($jsst_divHtml, JSST_ALLOWED_TAGS);
    }

}

?>