Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
asiafood.bdcloud.fr /
core /
triggers /
Delete
Unzip
Name
Size
Permission
Date
Action
README
654
B
-rwxr-xr-x
2021-01-30 17:42
README-FR
775
B
-rwxr-xr-x
2021-01-30 17:42
dolibarrtriggers.class.php
3.48
KB
-rwxr-xr-x
2021-01-30 17:42
index.html
0
B
-rwxr-xr-x
2021-01-30 17:42
interface_20_all_Logevents.class.php
8.62
KB
-rwxr-xr-x
2021-01-30 17:42
interface_20_modWorkflow_WorkflowManager.class.php
19.85
KB
-rwxr-xr-x
2021-06-16 18:34
interface_50_modAgenda_ActionsAuto.class.php
44.24
KB
-rwxr-xr-x
2021-01-30 17:42
interface_50_modBlockedlog_ActionsBlockedLog.class.php
5.35
KB
-rwxr-xr-x
2021-01-30 17:42
interface_50_modLdap_Ldapsynchro.class.php
27.03
KB
-rwxr-xr-x
2021-01-30 17:42
interface_50_modMailmanspip_Mailmanspipsynchro.class.php
6.43
KB
-rwxr-xr-x
2021-01-30 17:42
interface_50_modNotification_Notification.class.php
4.99
KB
-rwxr-xr-x
2021-01-30 17:42
interface_50_modTicket_TicketEmail.class.php
13.07
KB
-rwxr-xr-x
2023-04-13 09:15
interface_80_modStripe_Stripe.class.php
10.68
KB
-rwxr-xr-x
2021-01-30 17:42
interface_90_modSociete_ContactRoles.class.php
4.32
KB
-rwxr-xr-x
2024-04-29 12:21
interface_99_modZapier_ZapierTriggers.class.php
18.24
KB
-rwxr-xr-x
2021-01-30 17:42
Save
Rename
<?php /* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2011 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2013-2014 Marcos GarcĂa <marcosgdf@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/core/triggers/interface_50_modNotification_Notification.class.php * \ingroup notification * \brief File of class of triggers for notification module */ require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; /** * Class of triggers for notification module */ class InterfaceNotification extends DolibarrTriggers { public $family = 'notification'; public $description = "Triggers of this module send email notifications according to Notification module setup."; /** * Version of the trigger * @var string */ public $version = self::VERSION_DOLIBARR; /** * @var string Image of the trigger */ public $picto = 'email'; // @todo Defined also into notify.class.php) public $listofmanagedevents = array( 'BILL_VALIDATE', 'BILL_PAYED', 'ORDER_VALIDATE', 'PROPAL_VALIDATE', 'PROPAL_CLOSE_SIGNED', 'FICHINTER_VALIDATE', 'FICHINTER_ADD_CONTACT', 'ORDER_SUPPLIER_VALIDATE', 'ORDER_SUPPLIER_APPROVE', 'ORDER_SUPPLIER_REFUSE', 'SHIPPING_VALIDATE', 'EXPENSE_REPORT_VALIDATE', 'EXPENSE_REPORT_APPROVE', 'HOLIDAY_VALIDATE', 'HOLIDAY_APPROVE' ); /** * Function called when a Dolibarrr business event is done. * All functions "runTrigger" are triggered if file is inside directory htdocs/core/triggers or htdocs/module/code/triggers (and declared) * * @param string $action Event action code * @param Object $object Object * @param User $user Object user * @param Translate $langs Object langs * @param conf $conf Object conf * @return int <0 if KO, 0 if no triggered ran, >0 if OK */ public function runTrigger($action, $object, User $user, Translate $langs, Conf $conf) { if (empty($conf->notification->enabled)) return 0; // Module not active, we do nothing require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php'; $notify = new Notify($this->db); if (!in_array($action, $notify->arrayofnotifsupported)) return 0; dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); $notify->send($action, $object); return 1; } /** * Return list of events managed by notification module * * @return array Array of events managed by notification module */ public function getListOfManagedEvents() { global $conf; $ret = array(); $sql = "SELECT rowid, code, label, description, elementtype"; $sql .= " FROM ".MAIN_DB_PREFIX."c_action_trigger"; $sql .= $this->db->order("rang, elementtype, code"); dol_syslog("getListOfManagedEvents Get list of notifications", LOG_DEBUG); $resql = $this->db->query($sql); if ($resql) { $num = $this->db->num_rows($resql); $i = 0; while ($i < $num) { $obj = $this->db->fetch_object($resql); $qualified = 0; // Check is this event is supported by notification module if (in_array($obj->code, $this->listofmanagedevents)) $qualified = 1; // Check if module for this event is active if ($qualified) { //print 'xx'.$obj->code; $element = $obj->elementtype; // Exclude events if related module is disabled if ($element == 'order_supplier' && empty($conf->fournisseur->enabled)) $qualified = 0; elseif ($element == 'invoice_supplier' && empty($conf->fournisseur->enabled)) $qualified = 0; elseif ($element == 'withdraw' && empty($conf->prelevement->enabled)) $qualified = 0; elseif ($element == 'shipping' && empty($conf->expedition->enabled)) $qualified = 0; elseif ($element == 'member' && empty($conf->adherent->enabled)) $qualified = 0; elseif (!in_array($element, array('order_supplier', 'invoice_supplier', 'withdraw', 'shipping', 'member', 'expensereport')) && empty($conf->$element->enabled)) $qualified = 0; } if ($qualified) { $ret[] = array('rowid'=>$obj->rowid, 'code'=>$obj->code, 'label'=>$obj->label, 'description'=>$obj->description, 'elementtype'=>$obj->elementtype); } $i++; } } else dol_print_error($this->db); return $ret; } }