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.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
bdc.bdcloud.fr /
core /
triggers /
Delete
Unzip
Name
Size
Permission
Date
Action
README
639
B
-rwxr-x---
2023-04-04 15:50
README-FR
757
B
-rwxr-x---
2023-04-04 15:50
dolibarrtriggers.class.php
3.44
KB
-rwxr-x---
2023-04-04 15:50
interface_20_all_Logevents.class.php
7.76
KB
-rwxr-x---
2023-04-04 15:50
interface_20_modWorkflow_WorkflowManager.class.php
22.41
KB
-rwxr-x---
2023-04-04 15:50
interface_50_modAgenda_ActionsAuto.class.php
49.44
KB
-rwxr-x---
2023-04-04 15:50
interface_50_modBlockedlog_ActionsBlockedLog.class.php
5.96
KB
-rwxr-x---
2023-04-04 15:50
interface_50_modEventOrganization_EventOrganization.class.php
4.85
KB
-rwxr-x---
2023-04-04 15:50
interface_50_modLdap_Ldapsynchro.class.php
28.46
KB
-rwxr-x---
2023-04-04 15:50
interface_50_modMailmanspip_Mailmanspipsynchro.class.php
5.64
KB
-rwxr-x---
2023-04-04 15:50
interface_50_modNotification_Notification.class.php
5.78
KB
-rwxr-x---
2023-04-04 15:50
interface_80_modStripe_Stripe.class.php
10.38
KB
-rwxr-x---
2023-04-04 15:50
interface_90_modSociete_ContactRoles.class.php
4.31
KB
-rwxr-x---
2023-04-04 15:50
interface_95_modWebhook_WebhookTriggers.class.php
4.12
KB
-rwxr-x---
2023-04-04 15:50
interface_95_modZapier_ZapierTriggers.class.php
16.64
KB
-rwxr-x---
2023-04-04 15:50
Save
Rename
<?php /* Copyright (C) 2005-2017 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2021 Florian Henry <florian.henry@scopen.fr> * * 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_modEventOrganization_EventOrganization.class.php * \ingroup eventorganization * \brief Trigger file for Event Organization module */ require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php'; /** * Class of triggered functions for agenda module */ class InterfaceEventOrganization extends DolibarrTriggers { /** * Constructor * * @param DoliDB $db Database handler */ public function __construct($db) { $this->db = $db; $this->name = preg_replace('/^Interface/i', '', get_class($this)); $this->family = "eventorganization"; $this->description = "Triggers of this module to manage event organization triggers action"; // 'development', 'experimental', 'dolibarr' or version $this->version = self::VERSION_DOLIBARR; $this->picto = 'action'; } /** * 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) * * Following properties may be set before calling trigger. The may be completed by this trigger to be used for writing the event into database: * $object->actiontypecode (translation action code: AC_OTH, ...) * $object->actionmsg (note, long text) * $object->actionmsg2 (label, short text) * $object->sendtoid (id of contact or array of ids of contacts) * $object->socid (id of thirdparty) * $object->fk_project * $object->fk_element (ID of object to link action event to) * $object->elementtype (->element of object to link action to) * $object->module (if defined, elementtype in llx_actioncomm will be elementtype@module) * * @param string $action Event action code ('CONTRACT_MODIFY', 'RECRUITMENTCANDIDATURE_MODIFIY', ...) * @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->eventorganization) || empty($conf->eventorganization->enabled)) { return 0; // Module not active, we do nothing } $error=0; // Actions if ($action == 'PROJECT_VALIDATE') { if (!empty($conf->global->EVENTORGANIZATION_TASK_LABEL) && !empty($object->usage_organize_event)) { $taskToDo = explode("\n", $conf->global->EVENTORGANIZATION_TASK_LABEL); if (is_array($taskToDo) && count($taskToDo)>0) { // Load translation files required by the page $langs->loadLangs(array("eventorganization")); $this->db->begin(); foreach ($taskToDo as $taskLabel) { $task = new Task($this->db); $task->label = $taskLabel; $task->fk_project = $object->id; $defaultref = ''; $obj = empty($conf->global->PROJECT_TASK_ADDON) ? 'mod_task_simple' : $conf->global->PROJECT_TASK_ADDON; if (!empty($conf->global->PROJECT_TASK_ADDON) && is_readable(DOL_DOCUMENT_ROOT . "/core/modules/project/task/" . $conf->global->PROJECT_TASK_ADDON . ".php")) { require_once DOL_DOCUMENT_ROOT . "/core/modules/project/task/" . $conf->global->PROJECT_TASK_ADDON . '.php'; $modTask = new $obj; $defaultref = $modTask->getNextValue($object->thirdparty, null); } if (is_numeric($defaultref) && $defaultref <= 0) { $defaultref = ''; } $task->ref = $defaultref; // TODO Can set offset for start date or endline from setup of task to create when creating event $task->date_start = null; $task->date_end = null; $result = $task->create($user); if ($result < 0) { $this->errors=array_merge($this->errors, $task->errors); $error++; } } if (empty($error)) { $this->db->commit(); return 1; } else { dol_syslog("InterfaceEventOrganization.class.php: ".implode(',', $this->errors), LOG_ERR); $this->db->rollback(); return -1; } } } } return 0; } }