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.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
gmd.bdcloud.fr /
core /
tpl /
Delete
Unzip
Name
Size
Permission
Date
Action
ajax
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
README
123
B
-rw-r--r--
2022-09-27 16:06
admin_extrafields_add.tpl.php
14.79
KB
-rw-r--r--
2022-09-27 16:06
admin_extrafields_edit.tpl.php
17.82
KB
-rw-r--r--
2022-09-27 16:06
admin_extrafields_view.tpl.php
7.17
KB
-rw-r--r--
2022-09-27 16:06
advtarget.tpl.php
23.19
KB
-rw-r--r--
2022-09-27 16:06
ajaxrow.tpl.php
5.09
KB
-rw-r--r--
2022-09-27 16:06
bloc_comment.tpl.php
5.04
KB
-rw-r--r--
2022-09-27 16:06
bloc_showhide.tpl.php
3.16
KB
-rw-r--r--
2022-09-27 16:06
card_presend.tpl.php
11.18
KB
-rw-r--r--
2022-09-27 16:06
commonfields_add.tpl.php
3.37
KB
-rw-r--r--
2022-09-27 16:06
commonfields_edit.tpl.php
3.37
KB
-rw-r--r--
2022-09-27 16:06
commonfields_view.tpl.php
5.52
KB
-rw-r--r--
2022-09-27 16:06
contacts.tpl.php
13.14
KB
-rw-r--r--
2022-09-27 16:06
document_actions_post_headers.tpl.php
4.41
KB
-rw-r--r--
2022-09-27 16:06
error.tpl.php
779
B
-rw-r--r--
2022-09-27 16:06
extrafields_add.tpl.php
1.68
KB
-rw-r--r--
2022-09-27 16:06
extrafields_edit.tpl.php
1.61
KB
-rw-r--r--
2022-09-27 16:06
extrafields_list_array_fields.tpl.php
1.79
KB
-rw-r--r--
2022-09-27 16:06
extrafields_list_print_fields.tpl.php
3.37
KB
-rw-r--r--
2022-09-27 16:06
extrafields_list_search_input.tpl.php
2.94
KB
-rw-r--r--
2022-09-27 16:06
extrafields_list_search_param.tpl.php
1.86
KB
-rw-r--r--
2022-09-27 16:06
extrafields_list_search_sql.tpl.php
3.02
KB
-rw-r--r--
2022-09-27 16:06
extrafields_list_search_title.tpl.php
1.96
KB
-rw-r--r--
2022-09-27 16:06
extrafields_view.tpl.php
13.18
KB
-rw-r--r--
2022-09-27 16:06
filemanager.tpl.php
12.64
KB
-rw-r--r--
2022-09-27 16:06
footer.tpl.php
779
B
-rw-r--r--
2022-09-27 16:06
header.tpl.php
787
B
-rw-r--r--
2022-09-27 16:06
list_print_total.tpl.php
1.4
KB
-rw-r--r--
2022-09-27 16:06
login.tpl.php
15.77
KB
-rw-r--r--
2022-09-27 16:06
massactions_pre.tpl.php
10.24
KB
-rw-r--r--
2022-09-27 16:06
notes.tpl.php
6.55
KB
-rw-r--r--
2022-09-27 16:06
object_discounts.tpl.php
6.04
KB
-rw-r--r--
2022-09-27 16:06
objectline_create.tpl.php
43.52
KB
-rw-r--r--
2022-09-27 16:06
objectline_edit.tpl.php
21.47
KB
-rw-r--r--
2022-09-27 16:06
objectline_title.tpl.php
6.81
KB
-rw-r--r--
2022-11-03 11:53
objectline_view.tpl.php
20.25
KB
-rw-r--r--
2022-11-03 11:53
onlinepaymentlinks.tpl.php
7.89
KB
-rw-r--r--
2022-09-27 16:06
originproductline.tpl.php
2.18
KB
-rw-r--r--
2022-09-27 16:06
passwordforgotten.tpl.php
9.99
KB
-rw-r--r--
2022-09-27 16:06
resource_add.tpl.php
1.87
KB
-rw-r--r--
2022-09-27 16:06
resource_view.tpl.php
3.9
KB
-rw-r--r--
2022-09-27 16:06
Save
Rename
<?php /* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr> * Copyright (C) 2013-2014 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2015 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/>. * or see https://www.gnu.org/ */ // Following var must be set: // $action // $arrayofselected = array of id selected // $objecttmp = new MyObject($db); // $topicmail="SendSupplierProposalRef"; // $modelmail="supplier_proposal_send"; // $trackid='ord'.$objecttmp->id; // // Following var can be set // $object = Object fetched; // $sendto // $withmaindocfilemail if ($massaction == 'predeletedraft') { print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassDraftDeletion"), $langs->trans("ConfirmMassDeletionQuestion", count($toselect)), "delete", null, '', 0, 200, 500, 1); } if ($massaction == 'predelete') { print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassDeletion"), $langs->trans("ConfirmMassDeletionQuestion", count($toselect)), "delete", null, '', 0, 200, 500, 1); } if ($massaction == 'preaffecttag') { require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; $categ = new Categorie($db); $categ_types = array(); $categ_type_array = $categ->getMapList(); foreach ($categ_type_array as $categdef) { // Test on $object (should be useless, we already check on $objecttmp just after) if (isset($object) && $categdef['obj_table'] == $object->table_element) { if (!array_key_exists($categdef['code'], $categ_types)) { $categ_types[$categdef['code']] = array('code'=>$categdef['code'], 'label'=>$langs->trans($categdef['obj_class'])); } } if (isset($objecttmp) && $categdef['obj_table'] == $objecttmp->table_element) { if (!array_key_exists($categdef['code'], $categ_types)) { $categ_types[$categdef['code']] = array('code'=>$categdef['code'], 'label'=>$langs->trans($categdef['obj_class'])); } } } $formquestion = array(); if (!empty($categ_types)) { foreach ($categ_types as $categ_type) { $cate_arbo = $form->select_all_categories($categ_type['code'], null, 'parent', null, null, 1); $formquestion[] = array('type' => 'other', 'name' => 'affecttag_'.$categ_type['code'], 'label' => $langs->trans("Tag").' '.$categ_type['label'], 'value' => $form->multiselectarray('contcats_'.$categ_type['code'], $cate_arbo, GETPOST('contcats_'.$categ_type['code'], 'array'), null, null, null, null, '60%')); } $formquestion[] = array('type' => 'other', 'name' => 'affecttag_type', 'label' => '', 'value' => '<input type="hidden" name="affecttag_type" id="affecttag_type" value="'.implode(",", array_keys($categ_types)).'"/>'); print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmAffectTag"), $langs->trans("ConfirmAffectTagQuestion", count($toselect)), "affecttag", $formquestion, 1, 0, 200, 500, 1); } else { setEventMessage('CategTypeNotFound'); } } if ($massaction == 'presend') { $langs->load("mails"); $listofselectedid = array(); $listofselectedrecipientobjid = array(); $listofselectedref = array(); if (!GETPOST('cancel', 'alpha')) { foreach ($arrayofselected as $toselectid) { $result = $objecttmp->fetch($toselectid); if ($result > 0) { $listofselectedid[$toselectid] = $toselectid; $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ... if (in_array($objecttmp->element, array('societe', 'conferenceorboothattendee'))) { $thirdpartyid = $objecttmp->id; } if ($objecttmp->element == 'expensereport') { $thirdpartyid = $objecttmp->fk_user_author; } if (empty($thirdpartyid)) { $thirdpartyid = 0; } if ($thirdpartyid) { $listofselectedrecipientobjid[$thirdpartyid] = $thirdpartyid; } $listofselectedref[$thirdpartyid][$toselectid] = $objecttmp->ref; } } } print '<input type="hidden" name="massaction" value="confirm_presend">'; print dol_get_fiche_head(null, '', ''); // Create mail form include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php'; $formmail = new FormMail($db); $formmail->withform = -1; $formmail->fromtype = (GETPOST('fromtype') ? GETPOST('fromtype') : (!empty($conf->global->MAIN_MAIL_DEFAULT_FROMTYPE) ? $conf->global->MAIN_MAIL_DEFAULT_FROMTYPE : 'user')); if ($formmail->fromtype === 'user') { $formmail->fromid = $user->id; } $formmail->trackid = $trackid; $formmail->withfrom = 1; $liste = $langs->trans("AllRecipientSelected", count($arrayofselected)); if (count($listofselectedrecipientobjid) == 1) { // Only 1 different recipient selected, we can suggest contacts $liste = array(); $thirdpartyid = array_shift($listofselectedrecipientobjid); if ($objecttmp->element == 'expensereport') { $fuser = new User($db); $fuser->fetch($thirdpartyid); $liste['thirdparty'] = $fuser->getFullName($langs)." <".$fuser->email.">"; } elseif ($objecttmp->element == 'partnership' && $conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member') { $fadherent = new Adherent($db); $fadherent->fetch($objecttmp->fk_member); $liste['member'] = $fadherent->getFullName($langs)." <".$fadherent->email.">"; } else { $soc = new Societe($db); $soc->fetch($thirdpartyid); foreach ($soc->thirdparty_and_contact_email_array(1) as $key => $value) { $liste[$key] = $value; } } $formmail->withtoreadonly = 0; } else { $formmail->withtoreadonly = 1; } $formmail->withoptiononeemailperrecipient = ((count($listofselectedref) == 1 && count(reset($listofselectedref)) == 1) || empty($liste)) ? 0 : (GETPOST('oneemailperrecipient', 'int') ? 1 : -1); if (in_array($objecttmp->element, array('conferenceorboothattendee'))) { $formmail->withoptiononeemailperrecipient = 0; } $formmail->withto = empty($liste) ? (GETPOST('sendto', 'alpha') ?GETPOST('sendto', 'alpha') : array()) : $liste; $formmail->withtofree = empty($liste) ? 1 : 0; $formmail->withtocc = 1; $formmail->withtoccc = $conf->global->MAIN_EMAIL_USECCC; if (!empty($topicmail)) { $formmail->withtopic = $langs->transnoentities($topicmail, '__REF__', '__REF_CLIENT__'); } else { $formmail->withtopic = 1; } $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action // Add a checkbox "Attach also main document" if (isset($withmaindocfilemail)) { $formmail->withmaindocfile = $withmaindocfilemail; } else { // Do an automatic definition of $formmail->withmaindocfile $formmail->withmaindocfile = 1; if ($objecttmp->element != 'societe') { $formmail->withfile = '<span class="hideonsmartphone opacitymedium">'.$langs->trans("OnlyPDFattachmentSupported").'</span>'; $formmail->withmaindocfile = -1; // Add a checkbox "Attach also main document" but not checked by default } } $formmail->withbody = 1; $formmail->withdeliveryreceipt = 1; $formmail->withcancel = 1; // Make substitution in email content $substitutionarray = getCommonSubstitutionArray($langs, 0, null, $object); $substitutionarray['__EMAIL__'] = $sendto; $substitutionarray['__CHECK_READ__'] = (is_object($object) && is_object($object->thirdparty)) ? '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag='.urlencode($object->thirdparty->tag).'&securitykey='.urlencode($conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY).'" width="1" height="1" style="width:1px;height:1px" border="0"/>' : ''; $substitutionarray['__PERSONALIZED__'] = ''; // deprecated $substitutionarray['__CONTACTCIVNAME__'] = ''; $parameters = array( 'mode' => 'formemail' ); complete_substitutions_array($substitutionarray, $langs, $object, $parameters); // Array of substitutions $formmail->substit = $substitutionarray; // Tableau des parametres complementaires du post $formmail->param['action'] = $action; $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested. $formmail->param['models_id'] = GETPOST('modelmailselected', 'int') ? GETPOST('modelmailselected', 'int') : '-1'; $formmail->param['id'] = join(',', $arrayofselected); // $formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id; if (!empty($conf->global->MAILING_LIMIT_SENDBYWEB) && count($listofselectedrecipientobjid) > $conf->global->MAILING_LIMIT_SENDBYWEB) { $langs->load("errors"); print img_warning().' '.$langs->trans('WarningNumberOfRecipientIsRestrictedInMassAction', $conf->global->MAILING_LIMIT_SENDBYWEB); print ' - <a href="javascript: window.history.go(-1)">'.$langs->trans("GoBack").'</a>'; $arrayofmassactions = array(); } else { print $formmail->get_form(); } print dol_get_fiche_end(); } if ($massaction == 'preenable') { print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassEnabling"), $langs->trans("ConfirmMassEnablingQuestion", count($toselect)), "enable", null, 'yes', 0, 200, 500, 1); } if ($massaction == 'predisable') { print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassDisabling"), $langs->trans("ConfirmMassDisablingQuestion", count($toselect)), "disable", null, '', 0, 200, 500, 1); } if ($massaction == 'preapproveleave') { print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassLeaveApproval"), $langs->trans("ConfirmMassLeaveApprovalQuestion", count($toselect)), "approveleave", null, 'yes', 0, 200, 500, 1); } // Allow Pre-Mass-Action hook (eg for confirmation dialog) $parameters = array( 'toselect' => $toselect, 'uploaddir' => isset($uploaddir) ? $uploaddir : null ); $reshook = $hookmanager->executeHooks('doPreMassActions', $parameters, $object, $action); if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); } else { print $hookmanager->resPrint; }