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 /
asiafood.bdcloud.fr /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
class
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
group
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
notify
[ DIR ]
drwxr-xr-x
2025-11-08 11:16
agenda_extsites.php
8.09
KB
-rwxr-xr-x
2021-01-30 18:03
bank.php
20.75
KB
-rwxr-xr-x
2021-01-30 18:03
card.php
105.99
KB
-rwxr-xr-x
2021-01-30 18:03
clicktodial.php
7.7
KB
-rwxr-xr-x
2021-01-30 18:03
document.php
6.46
KB
-rwxr-xr-x
2021-01-30 18:03
hierarchy.php
8.49
KB
-rwxr-xr-x
2021-01-30 18:03
home.php
8.72
KB
-rwxr-xr-x
2021-01-30 18:03
index.html
2
B
-rwxr-xr-x
2021-01-30 18:03
info.php
2.58
KB
-rwxr-xr-x
2021-01-30 18:03
ldap.php
6.6
KB
-rwxr-xr-x
2021-01-30 18:03
list.php
30.35
KB
-rwxr-xr-x
2021-01-30 18:03
logout.php
3.63
KB
-rwxr-xr-x
2021-01-30 18:03
note.php
5.22
KB
-rwxr-xr-x
2021-01-30 18:03
param_ihm.php
19.95
KB
-rwxr-xr-x
2021-01-30 18:03
passwordforgotten.php
8.67
KB
-rwxr-xr-x
2021-01-30 18:03
perms.php
16
KB
-rwxr-xr-x
2021-01-30 18:03
Save
Rename
<?php /* Copyright (C) 2008-2016 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2011-2014 Juanjo Menent <jmenent@2byte.es> * * 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/>. */ /** * \file htdocs/user/agenda_extsites.php * \ingroup agenda * \brief Page to setup external calendars for agenda module */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php'; require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php'; // Load translation files required by page $langs->loadLangs(array('agenda', 'admin', 'other')); $def = array(); $actiontest = GETPOST('test', 'alpha'); $actionsave = GETPOST('save', 'alpha'); $contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'useragenda'; // To manage different context of search if (empty($conf->global->AGENDA_EXT_NB)) $conf->global->AGENDA_EXT_NB = 5; $MAXAGENDA = $conf->global->AGENDA_EXT_NB; // List of available colors $colorlist = array('BECEDD', 'DDBECE', 'BFDDBE', 'F598B4', 'F68654', 'CBF654', 'A4A4A5'); // Security check $id = GETPOST('id', 'int'); $object = new User($db); $object->fetch($id, '', '', 1); $object->getrights(); // Security check $socid = 0; if ($user->socid > 0) $socid = $user->socid; $feature2 = (($socid && $user->rights->user->self->creer) ? '' : 'user'); $result = restrictedArea($user, 'user', $id, 'user&user', $feature2); // If user is not user that read and no permission to read other users, we stop if (($object->id != $user->id) && (!$user->rights->user->user->lire)) accessforbidden(); // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context $hookmanager->initHooks(array('usercard', 'useragenda', 'globalcard')); /* * Actions */ $parameters = array('id'=>$socid); $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) { if ($actionsave) { $db->begin(); $errorsaved = 0; $error = 0; $tabparam = array(); // Save agendas $i = 1; while ($i <= $MAXAGENDA) { $name = trim(GETPOST('AGENDA_EXT_NAME_'.$id.'_'.$i, 'alpha')); $src = trim(GETPOST('AGENDA_EXT_SRC_'.$id.'_'.$i, 'alpha')); $offsettz = trim(GETPOST('AGENDA_EXT_OFFSETTZ_'.$id.'_'.$i, 'alpha')); $color = trim(GETPOST('AGENDA_EXT_COLOR_'.$id.'_'.$i, 'alpha')); if ($color == '-1') { $color = ''; } $enabled = trim(GETPOST('AGENDA_EXT_ENABLED_'.$id.'_'.$i, 'alpha')); if (!empty($src) && !dol_is_url($src)) { setEventMessages($langs->trans("ErrorParamMustBeAnUrl"), null, 'errors'); $error++; $errorsaved++; break; } $tabparam['AGENDA_EXT_NAME_'.$id.'_'.$i] = $name; $tabparam['AGENDA_EXT_SRC_'.$id.'_'.$i] = $src; $tabparam['AGENDA_EXT_OFFSETTZ_'.$id.'_'.$i] = $offsettz; $tabparam['AGENDA_EXT_COLOR_'.$id.'_'.$i] = $color; $tabparam['AGENDA_EXT_ENABLED_'.$id.'_'.$i] = $enabled; $i++; } if (!$error) { $result = dol_set_user_param($db, $conf, $object, $tabparam); if (!$result > 0) { $error++; } } if (!$error) { $db->commit(); setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { $db->rollback(); if (empty($errorsaved)) { setEventMessages($langs->trans("Error"), null, 'errors'); } } } } /* * View */ $form = new Form($db); $formadmin = new FormAdmin($db); $formother = new FormOther($db); $arrayofjs = array(); $arrayofcss = array(); llxHeader('', $langs->trans("UserSetup"), '', '', 0, 0, $arrayofjs, $arrayofcss); print '<form name="extsitesconfig" action="'.$_SERVER["PHP_SELF"].'" method="post">'; print '<input type="hidden" name="id" value="'.$id.'">'; print '<input type="hidden" name="token" value="'.newToken().'">'; $head = user_prepare_head($object); dol_fiche_head($head, 'extsites', $langs->trans("User"), -1, 'user'); $linkback = ''; if ($user->rights->user->user->lire || $user->admin) { $linkback = '<a href="'.DOL_URL_ROOT.'/user/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>'; } dol_banner_tab($object, 'id', $linkback, $user->rights->user->user->lire || $user->admin); print '<div class="underbanner clearboth"></div>'; print '<br>'; print '<span class="opacitymedium">'.$langs->trans("AgendaExtSitesDesc")."</span><br>\n"; print "<br>\n"; $selectedvalue = $conf->global->AGENDA_DISABLE_EXT; if ($selectedvalue == 1) $selectedvalue = 0; else $selectedvalue = 1; print '<div class="div-table-responsive">'; print '<table class="noborder centpercent">'; print "<tr class=\"liste_titre\">"; print "<td>".$langs->trans("Parameter")."</td>"; print "<td>".$langs->trans("Name")."</td>"; print "<td>".$langs->trans("ExtSiteUrlAgenda").'<div class="hideonsmartphone">'." (".$langs->trans("Example").': http://yoursite/agenda/agenda.ics)</div></td>'; print "<td>".$form->textwithpicto($langs->trans("FixTZ"), $langs->trans("FillFixTZOnlyIfRequired"), 1).'</td>'; print '<td class="right">'.$langs->trans("Color").'</td>'; print "</tr>"; $i = 1; while ($i <= $MAXAGENDA) { $key = $i; $name = 'AGENDA_EXT_NAME_'.$id.'_'.$key; $src = 'AGENDA_EXT_SRC_'.$id.'_'.$key; $offsettz = 'AGENDA_EXT_OFFSETTZ_'.$id.'_'.$key; $color = 'AGENDA_EXT_COLOR_'.$id.'_'.$key; print '<tr class="oddeven">'; // Nb print '<td class="maxwidth50onsmartphone">'.$langs->trans("AgendaExtNb", $key)."</td>"; // Name print '<td class="maxwidth50onsmartphone"><input type="text" class="flat hideifnotset minwidth100" name="AGENDA_EXT_NAME_'.$id.'_'.$key.'" value="'.(GETPOST('AGENDA_EXT_NAME_'.$id.'_'.$key) ?GETPOST('AGENDA_EXT_NAME_'.$id.'_'.$key) : $object->conf->$name).'"></td>'; // URL print '<td class="maxwidth50onsmartphone"><input type="url" class="flat hideifnotset" name="AGENDA_EXT_SRC_'.$id.'_'.$key.'" value="'.(GETPOST('AGENDA_EXT_SRC_'.$id.'_'.$key) ?GETPOST('AGENDA_EXT_SRC_'.$id.'_'.$key) : $object->conf->$src).'"></td>'; // Offset TZ print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_OFFSETTZ_'.$id.'_'.$key.'" value="'.(GETPOST('AGENDA_EXT_OFFSETTZ_'.$id.'_'.$key) ?GETPOST('AGENDA_EXT_OFFSETTZ_'.$id.'_'.$key) : $object->conf->$offsettz).'" size="1"></td>'; // Color (Possible colors are limited by Google) print '<td class="nowrap right">'; //print $formadmin->selectColor($conf->global->$color, "google_agenda_color".$key, $colorlist); print $formother->selectColor((GETPOST("AGENDA_EXT_COLOR_".$id.'_'.$key) ?GETPOST("AGENDA_EXT_COLOR_".$id.'_'.$key) : $object->conf->$color), "AGENDA_EXT_COLOR_".$id.'_'.$key, 'extsitesconfig', 1, '', 'hideifnotset'); print '</td>'; print "</tr>"; $i++; } print '</table>'; print '</div>'; print '<div class="center">'; print "<input type=\"submit\" id=\"save\" name=\"save\" class=\"button hideifnotset\" value=\"".$langs->trans("Save")."\">"; print "</div>"; dol_fiche_end(); print "</form>\n"; // End of page llxFooter(); $db->close();