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.152
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
btm2000.apps-dev.fr /
adherents /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
canvas
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
cartes
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
class
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
stats
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
subscription
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
tpl
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
agenda.php
6.59
KB
-rw-r--r--
2023-12-15 13:44
card.php
84.89
KB
-rw-r--r--
2023-12-15 13:44
document.php
7.11
KB
-rw-r--r--
2023-12-15 13:44
htpasswd.php
2.33
KB
-rw-r--r--
2023-12-15 13:44
index.php
6.36
KB
-rw-r--r--
2023-12-15 13:44
ldap.php
7.65
KB
-rw-r--r--
2023-12-15 13:44
list.php
52.2
KB
-rw-r--r--
2023-12-15 13:44
note.php
5.63
KB
-rw-r--r--
2023-12-15 13:44
partnership.php
9.94
KB
-rw-r--r--
2023-12-15 13:44
subscription.php
46.87
KB
-rw-r--r--
2023-12-15 13:44
type.php
37.78
KB
-rw-r--r--
2023-12-15 13:44
type_ldap.php
5.77
KB
-rw-r--r--
2023-12-15 13:44
type_translation.php
10.49
KB
-rw-r--r--
2023-12-15 13:44
vcard.php
5.83
KB
-rw-r--r--
2023-12-15 13:44
Save
Rename
<?php /* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> * Copyright (C) 2004-2020 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com> * Copyright (C) 2021-2023 Frédéric France <frederic.france@netlgic.fr> * Copyright (C) 2021-2023 Waël Almoman <info@almoman.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/>. */ /** * \file htdocs/adherents/index.php * \ingroup member * \brief Home page of membership module */ // Load Dolibarr environment require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php'; require_once DOL_DOCUMENT_ROOT.'/adherents/class/subscription.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; // Load translation files required by the page $langs->loadLangs(array("companies", "members")); $hookmanager = new HookManager($db); // Initialize technical object to manage hooks. Note that conf->hooks_modules contains array $hookmanager->initHooks(array('membersindex')); // Security check $result = restrictedArea($user, 'adherent'); /* * Actions */ $userid = GETPOST('userid', 'int'); if (GETPOST('addbox')) { // Add box (when submit is done from a form when ajax disabled) require_once DOL_DOCUMENT_ROOT.'/core/class/infobox.class.php'; $zone = GETPOST('areacode', 'int'); $boxorder = GETPOST('boxorder', 'aZ09'); $boxorder .= GETPOST('boxcombo', 'aZ09'); $result = InfoBox::saveboxorder($db, $zone, $boxorder, $userid); if ($result > 0) { setEventMessages($langs->trans("BoxAdded"), null); } } /* * View */ $form = new Form($db); // Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb) $resultboxes = FormOther::getBoxesArea($user, "2"); llxHeader('', $langs->trans("Members"), 'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros|DE:Modul_Mitglieder'); $staticmember = new Adherent($db); $statictype = new AdherentType($db); $subscriptionstatic = new Subscription($db); print load_fiche_titre($langs->trans("MembersArea"), $resultboxes['selectboxlist'], 'members'); /* * Statistics */ $boxgraph = ''; if ($conf->use_javascript_ajax) { $year = date('Y'); $numberyears = getDolGlobalInt("MAIN_NB_OF_YEAR_IN_MEMBERSHIP_WIDGET_GRAPH"); $boxgraph .='<div class="div-table-responsive-no-min">'; $boxgraph .='<table class="noborder nohover centpercent">'; $boxgraph .='<tr class="liste_titre"><th colspan="2">'.$langs->trans("Statistics").($numberyears ? ' ('.($year-$numberyears).' - '.$year.')' : '').'</th></tr>'; $boxgraph .='<tr><td class="center" colspan="2">'; require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherentstats.class.php'; $stats = new AdherentStats($db, 0, $userid); // Show array $sumMembers = $stats->countMembersByTypeAndStatus($numberyears); if (is_array($sumMembers) && !empty($sumMembers)) { $total = $sumMembers['total']['members_draft'] + $sumMembers['total']['members_pending'] + $sumMembers['total']['members_uptodate'] + $sumMembers['total']['members_expired'] + $sumMembers['total']['members_excluded'] + $sumMembers['total']['members_resiliated']; } else { $total = 0; } foreach (array('members_draft', 'members_pending', 'members_uptodate', 'members_expired', 'members_excluded', 'members_resiliated') as $val) { if (empty($sumMembers['total'][$val])) { $sumMembers['total'][$val] = 0; } } $dataseries = array(); $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusToValid"), $sumMembers['total']['members_draft']); // Draft, not yet validated $dataseries[] = array($langs->transnoentitiesnoconv("WaitingSubscription"), $sumMembers['total']['members_pending']); $dataseries[] = array($langs->transnoentitiesnoconv("UpToDate"), $sumMembers['total']['members_uptodate']); $dataseries[] = array($langs->transnoentitiesnoconv("OutOfDate"), $sumMembers['total']['members_expired']); $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusExcluded"), $sumMembers['total']['members_excluded']); $dataseries[] = array($langs->transnoentitiesnoconv("MembersStatusResiliated"), $sumMembers['total']['members_resiliated']); include DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php'; include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; $dolgraph = new DolGraph(); $dolgraph->SetData($dataseries); $dolgraph->SetDataColor(array('-'.$badgeStatus0, $badgeStatus1, $badgeStatus4, $badgeStatus8, '-'.$badgeStatus8, $badgeStatus6)); $dolgraph->setShowLegend(2); $dolgraph->setShowPercent(1); $dolgraph->SetType(array('pie')); $dolgraph->setHeight('200'); $dolgraph->draw('idgraphstatus'); $boxgraph .=$dolgraph->show($total ? 0 : 1); $boxgraph .= '</td></tr>'; $boxgraph .= '<tr class="liste_total"><td>'.$langs->trans("Total").'</td><td class="right">'; $boxgraph .= $total; $boxgraph .= '</td></tr>'; $boxgraph .= '</table>'; $boxgraph .= '</div>'; $boxgraph .= '<br>'; } // boxes print '<div class="clearboth"></div>'; print '<div class="fichecenter fichecenterbis">'; print '<div class="twocolumns">'; print '<div class="firstcolumn fichehalfleft boxhalfleft" id="boxhalfleft">'; print $boxgraph; print $resultboxes['boxlista']; print '</div>'."\n"; print '<div class="secondcolumn fichehalfright boxhalfright" id="boxhalfright">'; print $resultboxes['boxlistb']; print '</div>'."\n"; print '</div>'; print '</div>'; $parameters = array('user' => $user); $reshook = $hookmanager->executeHooks('dashboardMembers', $parameters, $object); // Note that $action and $object may have been modified by hook // End of page llxFooter(); $db->close();