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_old /
asiafood_v12 /
milestone /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
tpl
[ DIR ]
drwxrwxrwx
2021-01-11 11:31
milestone.php
10.39
KB
-rwxrwxrwx
2021-01-11 11:29
Save
Rename
<?php /* Copyright (C) 2011-2018 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2015-2020 Philippe Grand <philippe.grand@atoo-net.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 <http://www.gnu.org/licenses/>. * or see http://www.gnu.org/ */ /** * \file /milestone/admin/milestone.php * \ingroup milestone * \brief Administration/configuration of Milestone module */ $res=@include "../../main.inc.php"; // For root directory if (! $res && file_exists($_SERVER['DOCUMENT_ROOT']."/main.inc.php")) $res=@include $_SERVER['DOCUMENT_ROOT']."/main.inc.php"; // Use on dev env only if (! $res) $res=@include "../../../main.inc.php"; // For "custom" directory dol_include_once('/milestone/lib/milestone.lib.php'); include_once(DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'); require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'); // Load traductions files requiredby by page $langs->loadLangs(array("milestone@milestone","admin")); // Security check if (! $user->admin) { accessforbidden(); } $action = GETPOST('action', 'alpha'); $backtopage = GETPOST('backtopage', 'alpha'); /* * Action */ if (preg_match('/set_(.*)/',$action,$reg)) { $code=$reg[1]; if (dolibarr_set_const($db, $code, 1, 'chaine', 0, '', $conf->entity) > 0) { Header("Location: ".$_SERVER["PHP_SELF"]); exit; } else { dol_print_error($db); } } if (preg_match('/del_(.*)/',$action,$reg)) { $code=$reg[1]; if (dolibarr_del_const($db, $code, $conf->entity) > 0) { Header("Location: ".$_SERVER["PHP_SELF"]); exit; } else { dol_print_error($db); } } if ($action == 'setcolor') { require_once (DOL_DOCUMENT_ROOT . "/core/lib/files.lib.php"); $background_color = GETPOST('MILESTONE_BACKGROUND_COLOR', 'alpha'); if (! empty($background_color)) { $res = dolibarr_set_const($db, 'MILESTONE_BACKGROUND_COLOR', $background_color, 'chaine', 0, '', $conf->entity); } else { $res = dolibarr_set_const($db, 'MILESTONE_BACKGROUND_COLOR', 'e0e0e0', 'chaine', 0, '', $conf->entity); } if (! $res > 0) $error ++; if (! $error) { setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { setEventMessages($langs->trans("Error") . " " . $msg, null, 'errors'); } } if ($action == 'setfont') { require_once (DOL_DOCUMENT_ROOT . "/core/lib/files.lib.php"); $font_style = GETPOST('MILESTONE_SETUP_FONT_STYLE', 'alpha'); if (! empty($font_style)) { $res = dolibarr_set_const($db, 'MILESTONE_SETUP_FONT_STYLE', $font_style, 'chaine', 0, '', $conf->entity); } else { $res = dolibarr_set_const($db, 'MILESTONE_SETUP_FONT_STYLE', 'BU', 'chaine', 0, '', $conf->entity); } if (! $res > 0) $error ++; if (! $error) { setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { setEventMessages($langs->trans("Error") . " " . $msg, null, 'errors'); } } /* * View */ $moreheadjs=''; $arrayjs=''; if (!checkMilestoneVersion()) { $moreheadjs.='<script type="text/javascript">'."\n"; $moreheadjs.='var indicatorBlockUI = \''.DOL_URL_ROOT."/theme/".$conf->theme."/img/working.gif".'\';'."\n"; $moreheadjs.='</script>'."\n"; $arrayjs = array( '/milestone/core/js/lib_head.js', 'includes/jquery/plugins/blockUI/jquery.blockUI.js', 'core/js/blockUI.js' ); } $wikihelp='EN:Module_Jalon_FR#Configuration_du_module|FR:Module_Jalon_FR#Configuration_du_module'; llxHeader($moreheadjs,$langs->trans("Module1790Name"), $wikihelp, '', 0, 0, $arrayjs); $formother=new FormOther($db); $form=new Form($db); $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>'; print load_fiche_titre($langs->trans("ModuleSetup"),$linkback,'milestone@milestone'); print '<br>'; $head = milestoneadmin_prepare_head(); dol_fiche_head($head, 'options', $langs->trans("Module1790Name"), 0, 'milestone@milestone'); // Check current version if (!checkMilestoneVersion()) { dol_htmloutput_mesg($langs->trans("MilestoneUpgradeIsNeeded"),'','error',1); } print load_fiche_titre($langs->trans("MilestoneSetup"), '', ''); print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("Parameter")."</td>\n"; print '<td width="60" align="center">'.$langs->trans("Value")."</td>\n"; print "<td> </td>\n"; print '</tr>'; /* * Formulaire parametres divers */ // Hide product details inside milestone print '<tr class="oddeven">'; print '<td>'.$langs->trans("HideBydefaultProductDetailsInsideMilestone").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="center" width="100">'; if (! empty($conf->use_javascript_ajax)) { print ajax_constantonoff('MILESTONE_HIDE_PRODUCT_DETAILS'); } else { if (empty($conf->global->MILESTONE_HIDE_PRODUCT_DETAILS)) { print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_MILESTONE_HIDE_PRODUCT_DETAILS">'.img_picto($langs->trans("Disabled"),'off').'</a>'; } else { print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_MILESTONE_HIDE_PRODUCT_DETAILS">'.img_picto($langs->trans("Enabled"),'on').'</a>'; } } print '</td></tr>'; // Hide product description inside milestone print '<tr class="oddeven">'; print '<td>'.$langs->trans("HideByDefaultProductDescInsideMilestone").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="center" width="100">'; if (! empty($conf->use_javascript_ajax)) { print ajax_constantonoff('MILESTONE_HIDE_PRODUCT_DESC'); } else { if (empty($conf->global->MILESTONE_HIDE_PRODUCT_DESC)) { print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_MILESTONE_HIDE_PRODUCT_DESC">'.img_picto($langs->trans("Disabled"),'off').'</a>'; } else { print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_MILESTONE_HIDE_PRODUCT_DESC">'.img_picto($langs->trans("Enabled"),'on').'</a>'; } } print '</td></tr>'; // Hide milestone amount print '<tr class="oddeven">'; print '<td>'.$langs->trans("HideByDefaultMilestoneAmount").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="center" width="100">'; if (! empty($conf->use_javascript_ajax)) { print ajax_constantonoff('MILESTONE_HIDE_MILESTONE_AMOUNT'); } else { if (empty($conf->global->MILESTONE_HIDE_MILESTONE_AMOUNT)) { print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_MILESTONE_HIDE_MILESTONE_AMOUNT">'.img_picto($langs->trans("Disabled"),'off').'</a>'; } else { print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_MILESTONE_HIDE_MILESTONE_AMOUNT">'.img_picto($langs->trans("Enabled"),'on').'</a>'; } } print '</td></tr>'; // Hide or display picto for jalon print '<tr class="oddeven">'; print '<td>'.$langs->trans("HideOrDisplayMilestonePicto").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="center" width="100">'; if (! empty($conf->use_javascript_ajax)) { print ajax_constantonoff('MILESTONE_HIDE_DISPLAY_PICTO'); } else { if (empty($conf->global->MILESTONE_HIDE_DISPLAY_PICTO)) { print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_MILESTONE_HIDE_DISPLAY_PICTO">'.img_picto($langs->trans("Disabled"),'off').'</a>'; } else { print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_MILESTONE_HIDE_DISPLAY_PICTO">'.img_picto($langs->trans("Enabled"),'on').'</a>'; } } print '</td></tr>'; print '</table>'; print load_fiche_titre($langs->trans("GUISetup"), '', ''); // Colorpicker for Milestone print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="action" value="setcolor">'; print '<input type="hidden" name="backtopage" value="'.$backtopage.'">'; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td width="33%">'.$langs->trans("Parameter")."</td>\n"; print '<td width="33%" style="text-align:center">'.$langs->trans("Value")."</td>\n"; print '<td width="33%" style="text-align:right">'.$langs->trans("Action")."</td>\n"; print "<td> </td>\n"; print '</tr>'; // PDF background color print '<tr width="33%" class="oddeven"><td>'.$langs->trans("MilestoneBackgroundColor").'</td>'; $backgroundcolor = (! empty($conf->global->MILESTONE_BACKGROUND_COLOR)?$conf->global->MILESTONE_BACKGROUND_COLOR:'e6e6e6'); print '<td width="33%" style="text-align:center">'.$formother->selectColor($backgroundcolor, "MILESTONE_BACKGROUND_COLOR", null, 1, '', 'hideifnotset').'</td>'; print '<td width="33%" style="text-align:right"><input type="submit" id="save" name="save" class="butAction linkobject" value="'.$langs->trans("Save").'" />'; print '</td></tr>'; print '</form>'."\n"; // Style for font print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="action" value="setfont">'; print '<input type="hidden" name="backtopage" value="'.$backtopage.'">'; $fontstyle = array( 1 => $langs->trans('B'), 2 => $langs->trans('U'), 3 => $langs->trans('I'), 4 => $langs->trans('BU'), 5 => $langs->trans('BI'), 6 => $langs->trans('IU'), 7 => $langs->trans('BUI') ); print '<tr class="oddeven" width="33%"><td>'.$langs->trans("MilestoneSetUpFontStyle").'</td>'; print '<td width="33%" style="text-align:center">'.$form->selectarray('MILESTONE_SETUP_FONT_STYLE', $fontstyle, $conf->global->MILESTONE_SETUP_FONT_STYLE).'</td>'; // Boutons actions print '<div class="tabsAction">'; if (!checkMilestoneVersion()) { print '<div class="inline-block divButAction"><span id="action-upgrade" class="milestone-button-upgrade butAction">'.img_warning().' '.$langs->trans("MilestoneModuleUpgrade").'</span></div>'."\n"; include('tpl/upgrade.tpl.php'); } else { print '<td width="33%" style="text-align:right"><input type="submit" id="save" name="save" class="butAction linkobject" value="'.$langs->trans("Save").'" />'; } print '</td></tr>'; print '</div>'; print '</form>'."\n"; print '</table>'; dol_fiche_end(); llxFooter(); $db->close();