26 require
'../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/security2.lib.php';
29 $status =
GETPOST(
'status',
'int');
30 $cotis =
GETPOST(
'cotis',
'int');
32 $sortfield =
GETPOST(
'sortfield',
'alphanohtml');
33 $sortorder =
GETPOST(
'sortorder',
'aZ09');
36 if (empty($conf->adherent->enabled)) {
39 if (empty($user->rights->adherent->export)) {
52 if (empty($sortorder)) {
55 if (empty($sortfield)) {
56 $sortfield =
"d.login";
59 $sql =
"SELECT d.login, d.pass, d.datefin";
60 $sql .=
" FROM ".MAIN_DB_PREFIX.
"adherent as d ";
61 $sql .=
" WHERE d.statut = ".((int) $status);
63 $sql .=
" AND datefin > '".$db->idate($now).
"'";
65 $sql .= $db->order($sortfield, $sortorder);
70 $num = $db->num_rows(
$resql);
74 print_barre_liste($langs->trans(
"HTPasswordExport"), $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder,
'', 0);
78 $objp = $db->fetch_object($result);
79 $htpass = crypt($objp->pass,
makesalt());
80 print $objp->login.
":".$htpass.
"<br>\n";
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_now($mode= 'auto')
Return date for now.
if(!function_exists('dol_loginfunction')) makesalt($type=CRYPT_SALT_LENGTH)
Fonction pour initialiser un salt pour la fonction crypt.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
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.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
if(isModEnabled('facture')&&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur')&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)&&$user->rights->fournisseur->facture->lire)||(isModEnabled('supplier_invoice')&&$user->rights->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->rights->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...