27 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
30 $status =
GETPOST(
'status',
'int');
31 $cotis =
GETPOST(
'cotis',
'int');
33 $sortfield =
GETPOST(
'sortfield',
'alphanohtml');
34 $sortorder =
GETPOST(
'sortorder',
'aZ09');
40 if (!$user->hasRight(
'adherent',
'export')) {
53 if (empty($sortorder)) {
56 if (empty($sortfield)) {
57 $sortfield =
"d.login";
60 $sql =
"SELECT d.login, d.pass, d.datefin";
61 $sql .=
" FROM ".MAIN_DB_PREFIX.
"adherent as d ";
62 $sql .=
" WHERE d.statut = ".((int) $status);
64 $sql .=
" AND datefin > '".$db->idate($now).
"'";
66 $sql .= $db->order($sortfield, $sortorder);
71 $num = $db->num_rows(
$resql);
75 print_barre_liste($langs->trans(
"HTPasswordExport"), $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder,
'', 0);
79 $objp = $db->fetch_object($result);
80 $htpass = crypt($objp->pass,
makesalt());
81 print $objp->login.
":".$htpass.
"<br>\n";
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->hasRight("commande", "lire") &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_now($mode='auto')
Return date for now.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
isModEnabled($module)
Is Dolibarr module enabled.
if(!function_exists('dol_loginfunction')) makesalt($type=CRYPT_SALT_LENGTH)
Fonction pour initialiser un salt pour la fonction crypt.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.