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_old /
ctm.bdcloud.fr /
core /
tpl /
Delete
Unzip
Name
Size
Permission
Date
Action
ajax
[ DIR ]
drwxrwxrwx
2020-09-03 11:41
README
123
B
-rwxrwxrwx
2020-09-03 11:40
admin_extrafields_add.tpl.php
14.47
KB
-rwxrwxrwx
2020-09-03 11:40
admin_extrafields_edit.tpl.php
16.74
KB
-rwxrwxrwx
2020-09-03 11:40
admin_extrafields_view.tpl.php
5.56
KB
-rwxrwxrwx
2020-09-03 11:40
advtarget.tpl.php
23.01
KB
-rwxrwxrwx
2020-09-03 11:40
ajaxrow.tpl.php
4.8
KB
-rwxrwxrwx
2020-09-03 11:40
bloc_comment.tpl.php
5.35
KB
-rwxrwxrwx
2020-09-03 11:40
bloc_showhide.tpl.php
3.17
KB
-rwxrwxrwx
2020-09-03 11:40
card_presend.tpl.php
10.17
KB
-rwxrwxrwx
2020-09-03 11:40
commonfields_add.tpl.php
2.17
KB
-rwxrwxrwx
2020-09-03 11:40
commonfields_edit.tpl.php
2.43
KB
-rwxrwxrwx
2020-09-03 11:40
commonfields_view.tpl.php
3.94
KB
-rwxrwxrwx
2020-09-03 11:40
contacts.tpl.php
10.01
KB
-rwxrwxrwx
2020-09-03 11:40
document_actions_post_headers.tpl.php
4.33
KB
-rwxrwxrwx
2020-09-03 11:40
error.tpl.php
779
B
-rwxrwxrwx
2020-09-03 11:40
extrafields_add.tpl.php
1.63
KB
-rwxrwxrwx
2020-09-03 11:40
extrafields_edit.tpl.php
1.56
KB
-rwxrwxrwx
2020-09-03 11:40
extrafields_list_print_fields.tpl.php
2.74
KB
-rwxrwxrwx
2020-09-03 11:40
extrafields_list_search_input.tpl.php
2.85
KB
-rwxrwxrwx
2020-09-03 11:40
extrafields_list_search_param.tpl.php
699
B
-rwxrwxrwx
2020-09-03 11:40
extrafields_list_search_sql.tpl.php
2.21
KB
-rwxrwxrwx
2020-09-03 11:40
extrafields_list_search_title.tpl.php
1.61
KB
-rwxrwxrwx
2020-09-03 11:40
extrafields_view.tpl.php
9.92
KB
-rwxrwxrwx
2020-09-03 11:40
filemanager.tpl.php
8.3
KB
-rwxrwxrwx
2020-09-03 11:40
footer.tpl.php
779
B
-rwxrwxrwx
2020-09-03 11:40
header.tpl.php
787
B
-rwxrwxrwx
2020-09-03 11:40
index.html
0
B
-rwxrwxrwx
2020-09-03 11:40
list_print_total.tpl.php
842
B
-rwxrwxrwx
2020-09-03 11:40
login.tpl.php
15.09
KB
-rwxrwxrwx
2020-09-03 11:40
massactions_pre.tpl.php
6.59
KB
-rwxrwxrwx
2020-09-03 11:40
notes.tpl.php
5.43
KB
-rwxrwxrwx
2020-09-03 11:40
object_discounts.tpl.php
5.37
KB
-rwxrwxrwx
2020-09-03 11:40
objectline_create.tpl.php
35.53
KB
-rwxrwxrwx
2020-09-03 11:40
objectline_edit.tpl.php
16.28
KB
-rwxrwxrwx
2020-09-03 11:40
objectline_title.tpl.php
5.3
KB
-rwxrwxrwx
2020-09-03 11:40
objectline_view.tpl.php
16.22
KB
-rwxrwxrwx
2020-09-03 11:40
onlinepaymentlinks.tpl.php
7.69
KB
-rwxrwxrwx
2020-09-03 11:40
originproductline.tpl.php
1.99
KB
-rwxrwxrwx
2020-09-03 11:40
passwordforgotten.tpl.php
8.11
KB
-rwxrwxrwx
2020-09-03 11:40
resource_add.tpl.php
1.86
KB
-rwxrwxrwx
2020-09-03 11:40
resource_view.tpl.php
3.75
KB
-rwxrwxrwx
2020-09-03 11:40
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> * * 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->propale->creer; } elseif ($module == 'fichinter') { $permission = $user->rights->ficheinter->creer; } elseif ($module == 'order_supplier') { $permission = $user->rights->fournisseur->commande->creer; } elseif ($module == 'invoice_supplier') { $permission = $user->rights->fournisseur->facture->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 print '<div class="underbanner clearboth"></div>'."\n"; print '<div class="div-table-responsive">'."\n"; print '<div class="tagtable tableforcontact centpercent noborder nobordertop allwidth">'."\n"; if ($permission) { ?> <form class="tagtr liste_titre"> <div class="tagtd liste_titre"><?php echo $langs->trans("NatureOfContact"); ?></div> <div class="tagtd liste_titre"><?php echo $langs->trans("ThirdParty"); ?></div> <div class="tagtd liste_titre"><?php echo $langs->trans("Users").'/'.$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" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id; ?>" method="POST"> <input type="hidden" name="token" value="<?php echo $_SESSION['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 ($withproject) print '<input type="hidden" name="withproject" value="'.$withproject.'">'; ?> <div class="nowrap tagtd"><?php echo img_object('', 'user').' '.$langs->trans("Users"); ?></div> <div class="tagtd"><?php echo $conf->global->MAIN_INFO_SOCIETE_NOM; ?></div> <div class="tagtd maxwidthonsmartphone"><?php echo $form->select_dolusers($user->id, 'userid', 0, (!empty($userAlreadySelected) ? $userAlreadySelected : null), 0, null, null, 0, 56, '', 0, '', 'minwidth200imp'); ?></div> <div class="tagtd maxwidthonsmartphone"> <?php $tmpobject = $object; if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) $tmpobject = $objectsrc; echo $formcompany->selectTypeContact($tmpobject, '', 'type', 'internal'); ?></div> <div class="tagtd"> </div> <div class="tagtd center"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></div> </form> <?php } if (empty($hideaddcontactforthirdparty)) { ?> <form class="tagtr pair" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id; ?>" method="POST"> <input type="hidden" name="token" value="<?php echo $_SESSION['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" /> <?php if ($withproject) print '<input type="hidden" name="withproject" value="'.$withproject.'">'; ?> <div class="tagtd nowrap noborderbottom"><?php echo img_object('', 'contact').' '.$langs->trans("ThirdPartyContacts"); ?></div> <div class="tagtd nowrap maxwidthonsmartphone noborderbottom"> <?php $selectedCompany = isset($_GET["newcompany"]) ? $_GET["newcompany"] : $object->socid; ?> <?php // add company icon before select list if ($selectedCompany) { echo img_object('', 'company', 'class="hideonsmartphone"'); } ?> <?php $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); ?> </div> <div class="tagtd maxwidthonsmartphone noborderbottom"> <?php $nbofcontacts=$form->select_contacts(($selectedCompany > 0 ? $selectedCompany : -1), '', 'contactid', 3, '', '', 1, 'minwidth100imp'); $newcardbutton = ''; if (! empty($object->socid) && $object->socid > 1 && $user->rights->societe->creer) { $newcardbutton .= '<a href="'.DOL_URL_ROOT.'/contact/card.php?socid='.$object->socid.'&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 maxwidthonsmartphone noborderbottom"> <?php $tmpobject=$object; if (($object->element == 'shipping'|| $object->element == 'reception') && is_object($objectsrc)) $tmpobject=$objectsrc; $formcompany->selectTypeContact($tmpobject, $preselectedtypeofcontact, 'type', 'external', 'position', 0, 'minwidth100imp'); ?> </div> <div class="tagtd noborderbottom"> </div> <div class="tagtd center noborderbottom"> <input type="submit" id="add-customer-contact" class="button" value="<?php echo $langs->trans("Add"); ?>"<?php if (! $nbofcontacts) echo ' disabled'; ?>> </div> </form> <?php } } ?> <form class="tagtr liste_titre liste_titre_add formnoborder"> <div class="tagtd liste_titre"><?php echo $langs->trans("NatureOfContact"); ?></div> <div class="tagtd liste_titre"><?php echo $langs->trans("ThirdParty"); ?></div> <div class="tagtd liste_titre"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div> <div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div> <div class="tagtd liste_titre center"><?php echo $langs->trans("Status"); ?></div> <div class="tagtd liste_titre"> </div> </form> <?php $arrayofsource=array('internal','external'); // Show both link to user and thirdparties contacts foreach($arrayofsource as $source) { $tmpobject=$object; if (($object->element == 'shipping'|| $object->element == 'reception') && is_object($objectsrc)) $tmpobject=$objectsrc; $tab = $tmpobject->liste_contact(-1, $source); $num=count($tab); $i = 0; while ($i < $num) { ?> <form class="tagtr oddeven"> <div class="tagtd left"> <?php if ($tab[$i]['source']=='internal') echo $langs->trans("User"); ?> <?php if ($tab[$i]['source']=='external') echo $langs->trans("ThirdPartyContact"); ?> </div> <div class="tagtd left"> <?php if ($tab[$i]['socid'] > 0) { $companystatic->fetch($tab[$i]['socid']); echo $companystatic->getNomUrl(1); } if ($tab[$i]['socid'] < 0) { echo $conf->global->MAIN_INFO_SOCIETE_NOM; } if (! $tab[$i]['socid']) { echo ' '; } ?> </div> <div class="tagtd"> <?php $statusofcontact = $tab[$i]['status']; if ($tab[$i]['source']=='internal') { $userstatic->fetch($tab[$i]['id']); echo $userstatic->getNomUrl(-1, '', 0, 0, 0, 0, '', 'valignmiddle'); } if ($tab[$i]['source']=='external') { $contactstatic->fetch($tab[$i]['id']); echo $contactstatic->getNomUrl(1, '', 0, '', 0, 0); } ?> </div> <div class="tagtd"><?php echo $tab[$i]['libelle']; ?></div> <div class="tagtd center"> <?php //if ($object->statut >= 0) echo '<a href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=swapstatut&ligne='.$tab[$i]['rowid'].'">'; if ($tab[$i]['source']=='internal') { echo $userstatic->LibStatut($tab[$i]['statuscontact'], 3); } if ($tab[$i]['source']=='external') { echo $contactstatic->LibStatut($tab[$i]['statuscontact'], 3); } //if ($object->statut >= 0) echo '</a>'; ?> </div> <div class="tagtd nowrap right"> <?php if ($permission) { ?> <a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=deletecontact&lineid='.$tab[$i]['rowid']; ?>"><?php echo img_picto($langs->trans('Unlink'), 'unlink'); ?></a> <?php } ?> </div> </form> <?php $i++; } } print "</div>\n"; print "</div>\n"; 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";