| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/administrator/components/com_jlexreview/tables/ |
Upload File : |
<?php
/**
* @package JLex Review
* @version 4.2.3
* @copyright Copyright (c) 2013-2018 JLexArt. All rights reserved
* @license GNU General Public License version 2 or later;
* @author www.jlexart.com
*/
defined('_JEXEC') or die;
class TableJRNotification extends JTable
{
public $id = null;
public $entry_id = null;
public $type_id = null;
public $action_type = 0;
public $user_remind = 0;
public $guest_name = null;
public $created_by = 0;
public $created_time = null;
public $unread = null;
public $sent = null;
public function __construct(&$db)
{
parent::__construct('#__jlexreview_notification', 'id', $db);
}
public function alert()
{
$config = JLexReviewHelperAdmin::getConfig();
if($this->id<1) return;
$user_actions = array(
"CM_REVIEW",
"CM_REPLY"
);
$admin_actions = array(
"CM_ADDED",
"CM_MODIFIED",
"REVIEW_ADDED",
"REVIEW_MODIFIED"
);
if(in_array($this->action_type, $admin_actions) && $config->get("admin_alert_send_method",0)==0)
{
$emails = explode(",", $config->get("admin_alert_emails",""));
if(count($emails))
{
$userClass = JLexReviewHelperSite::getProfile();
$this->author = $userClass->getUser($this->created_by, '', $this->guest_name);
JLexReviewHelperAdmin::getAlert()->set($this)->send($emails, $config->get("admin_alert_quicktask",1)==1?true:false);
}
}
}
}