HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/crm.dmstech.online/modules/prchat/views/initViewCheckClients.php
<?php
if (get_option('pusher_chat_enabled') == '1' && is_client_logged_in()) {
    echo '<script src="https://js.pusher.com/7.0/pusher.min.js"></script>';
    echo '<script src="' . base_url('modules/prchat/assets/js/emoparser.js') . '"></script>';
    echo '<script src="' . base_url('modules/prchat/assets/js/lity.min.js') . '"></script>';

    $this->load->view('chat_clients_view');

    /**
     * After view is loaded  we inject the JS files otherwise it will throw and error
     */
    $isHttps = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? $isHttps = true : false);
    if ($isHttps) {
        echo '<script src="' . module_dir_url('prchat', 'assets/js/audio/WebAudioRecorder.min.js' . '?v=' . VERSIONING . '') . '"></script>';
        echo '<script src="' . module_dir_url('prchat', 'assets/js/audio/WebAudioRecorderOgg.min.js' . '?v=' . VERSIONING . '') . '"></script>';
        echo '<script src="' . module_dir_url('prchat', 'assets/js/audio/sound_app.js' . '?v=' . VERSIONING . '') . '"></script>';
    }
}