403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/burlakastudio.realcommenter/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/burlakastudio.realcommenter/lib/TALK_GROUPS.php
<?php
/**
 * ����� "��������� ����������� D7" ��� �������
 * �������� ���� �����: www.realcommenter.com
 * �������� ���� �����������: burlaka.studio
 * ����� � ����������: ������� ������� (AlexeyGfi) -> alexeygfi@gmail.com
 */

namespace Burlakastudio\Realcommenter;

//require_once 'TALK_GROUPS_TABLE.php';

class TALK_GROUPS extends REALCOMMENTER_HL_GENERAL_PROVIDER
{

    public static function is_active($talk_id = 0)
    {

        $talk_info = self::getInfo($talk_id);
        return ($talk_info && $talk_info['UF_ACTIVE']);
    }

    public static function is_paused($talk_id = 0)
    {

        $talk_info = self::getInfo($talk_id);
        return ($talk_info && $talk_info['UF_PAUSE']);
    }

    public static function valid($talk_id = 0)
    {

        $talk_info = self::getInfo($talk_id);
        return $talk_info['ID'];
    }

    /**
     * @param int $talk_id
     *
     * @return array|bool|mixed
     */
    public static function getInfo(&$talk_id = 0)
    {

        $talk_info = [];

        if (!$talk_id) {
            return $talk_info;
        }

        $cache_obj = CACHE::getCacheObj();
        $cache_key = CACHE::getTalkGroupKey($talk_id);
        $cache_TTL = CACHE::getTtl();

        if ($cache_obj->initCache($cache_TTL, $cache_key, TOOLS::getModuleName())) {
            $talk_info = $cache_obj->getVars();
        } else {

            $talk_info = self::get_by_ID($talk_id);
            $talk_info = array_filter($talk_info);

            if ($cache_obj->startDataCache($cache_TTL, $cache_key)) {
                // ���� � ��
                $cache_obj->endDataCache($talk_info);
            }
        }

        return $talk_info;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit