27require
'../main.inc.php';
28require_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');
37if (!isModEnabled(
'adherent')) {
40if (!$user->hasRight(
'adherent',
'export')) {
53if (empty($sortorder)) {
56if (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);
69$resql = $db->query($sql);
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.
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.
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.