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 /
hermes.bdcloud.fr /
core /
triggers /
Delete
Unzip
Name
Size
Permission
Date
Action
README
639
B
-rw-r--r--
2020-10-31 14:38
README-FR
757
B
-rw-r--r--
2020-10-31 14:38
dolibarrtriggers.class.php
3.34
KB
-rw-r--r--
2020-10-31 14:38
index.html
0
B
-rw-r--r--
2020-10-31 14:38
interface_20_all_Logevents.class.php
8.41
KB
-rw-r--r--
2020-10-31 14:38
interface_20_modWorkflow_WorkflowManager.class.php
19.69
KB
-rw-r--r--
2020-12-15 10:52
interface_50_modAgenda_ActionsAuto.class.php
43.3
KB
-rw-r--r--
2020-10-31 14:38
interface_50_modBlockedlog_ActionsBlockedLog.class.php
5.2
KB
-rw-r--r--
2020-10-31 14:38
interface_50_modLdap_Ldapsynchro.class.php
26.22
KB
-rw-r--r--
2020-10-31 14:38
interface_50_modMailmanspip_Mailmanspipsynchro.class.php
6.26
KB
-rw-r--r--
2020-10-31 14:38
interface_50_modNotification_Notification.class.php
4.84
KB
-rw-r--r--
2020-10-31 14:38
interface_50_modTicket_TicketEmail.class.php
12.73
KB
-rw-r--r--
2020-10-31 14:38
interface_80_modStripe_Stripe.class.php
10.39
KB
-rw-r--r--
2020-10-31 14:38
interface_90_modSociete_ContactRoles.class.php
4.12
KB
-rw-r--r--
2020-10-31 14:38
interface_99_modZapier_ZapierTriggers.class.php
17.72
KB
-rw-r--r--
2020-10-31 14:38
Save
Rename
<?php /* Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 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_modMailmanspip_Mailmanspipsynchro.class.php * \ingroup core * \brief File to manage triggers Mailman and Spip */ require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; /** * Class of triggers for MailmanSpip module */ class InterfaceMailmanSpipsynchro extends DolibarrTriggers { public $family = 'mailmanspip'; public $description = "Triggers of this module allows to synchronize Mailman an Spip."; /** * Version of the trigger * @var string */ public $version = self::VERSION_DOLIBARR; /** * @var string Image of the trigger */ public $picto = 'technic'; /** * 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->mailmanspip->enabled)) return 0; // Module not active, we do nothing require_once DOL_DOCUMENT_ROOT."/mailmanspip/class/mailmanspip.class.php"; require_once DOL_DOCUMENT_ROOT."/user/class/usergroup.class.php"; if ($action == 'CATEGORY_LINK') { dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); // We add subscription if we change category (new category may means more mailing-list to subscribe) if (is_object($object->context['linkto']) && method_exists($object->context['linkto'], 'add_to_abo') && $object->context['linkto']->add_to_abo() < 0) { $this->error = $object->context['linkto']->error; $this->errors = $object->context['linkto']->errors; $return = -1; } else { $return = 1; } return $return; } elseif ($action == 'CATEGORY_UNLINK') { dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); // We remove subscription if we change category (lessw category may means less mailing-list to subscribe) if (is_object($object->context['unlinkoff']) && method_exists($object->context['unlinkoff'], 'del_to_abo') && $object->context['unlinkoff']->del_to_abo() < 0) { $this->error = $object->context['unlinkoff']->error; $this->errors = $object->context['unlinkoff']->errors; $return = -1; } else { $return = 1; } return $return; } // Members elseif ($action == 'MEMBER_VALIDATE') { dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); $return = 0; if ($object->add_to_abo() < 0) { $this->errors = $object->errors; if (!empty($object->error)) $this->errors[] = $object->error; $return = -1; } else { $return = 1; } return $return; } elseif ($action == 'MEMBER_MODIFY') { dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); $return = 0; // Add user into some linked tools (mailman, spip, etc...) if (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid)) { if (is_object($object->oldcopy) && (($object->oldcopy->email != $object->email) || ($object->oldcopy->typeid != $object->typeid))) // If email has changed or if list has changed we delete mailman subscription for old email { if ($object->oldcopy->del_to_abo() < 0) { $this->errors = $object->oldcopy->errors; if (!empty($object->oldcopy->error)) $this->errors[] = $object->oldcopy->error; $return = -1; } else { $return = 1; } } // We add subscription if new email or new type (new type may means more mailing-list to subscribe) if ($object->add_to_abo() < 0) { $this->errors = $object->errors; if (!empty($object->error)) $this->errors[] = $object->error; $return = -1; } else { $return = 1; } } return $return; } elseif ($action == 'MEMBER_RESILIATE' || $action == 'MEMBER_DELETE') { dol_syslog("Trigger '".$this->name."' for action '$action' launched by ".__FILE__.". id=".$object->id); $return = 0; // Remove from external tools (mailman, spip, etc...) if ($object->del_to_abo() < 0) { $this->errors = $object->errors; if (!empty($object->error)) $this->errors[] = $object->error; $return = -1; } else { $return = 1; } return $return; } return 0; } }