$as_invis = array_search($j["idlocation"], $explr_tab_invis); $as_unmod = array_search($j["idlocation"], $explr_tab_unmod); $as_mod = array_search($j["idlocation"], $explr_tab_modif); $visibilite_expl_user .= "\n<option value='explr_invisible' " . ($as_invis !== FALSE && $as_invis !== NULL ? "selected='selected' " : "") . ">" . $msg["explr_invisible"] . "</option>"; if ($as_mod !== FALSE && $as_mod !== NULL || $as_unmod !== FALSE && $as_unmod !== NULL || $as_invis !== FALSE && $as_invis !== NULL) { $visibilite_expl_user .= "\n<option value='explr_visible_unmod' " . ($as_unmod !== FALSE && $as_unmod !== NULL ? "selected='selected' " : "") . ">" . $msg["explr_visible_unmod"] . "</option>"; } else { $visibilite_expl_user .= "\n<option value='explr_visible_unmod' selected='selected' >" . $msg["explr_visible_unmod"] . "</option>"; } $visibilite_expl_user .= "\n<option value='explr_visible_mod' " . ($as_mod !== FALSE && $as_mod !== NULL ? "selected='selected' " : "") . ">" . $msg["explr_visible_mod"] . "</option>"; $visibilite_expl_user .= "</select></div></div>\n"; } pmb_mysql_free_result($resultat_droits_expl); if (!$explr_invisible && !$explr_visible_unmod && !$explr_visible_mod) { $rqt = "UPDATE users SET explr_invisible=0,explr_visible_mod=0,explr_visible_unmod='" . substr($temp, 0, strlen($temp) - 1) . "' WHERE userid={$id}"; @pmb_mysql_query($rqt); } $deflt_user .= $visibilite_expl_user; } //fin visibilité des exemplaires $param_default = "\n<div class='row'><hr /></div>\n\t\t{$param_user}\n\t<div class='row'><hr /></div>\n\t\t" . str_replace("!!param_allloc!!", $param_user_allloc, $deflt_user) . "\n\t<br />\n\t<div class='row'><hr /></div>\n\t\t{$value_user}\n\t<div class='row'><hr /></div>\n\t\t{$deflt_user_style}\n\t<br />"; if ($speci_user || $deflt3user) { $param_default .= "<div class='row'><hr /></div>"; $param_default .= $deflt3user; $param_default .= $speci_user; $param_default .= "<div class='row'></div>"; } echo window_title($msg[1003] . $msg[18] . $msg[1003] . $msg[86] . $msg[1003] . $usr->username . $msg[1001]); user_form($usr->username, $usr->nom, $usr->prenom, $usr->rights, $usr->userid, $usr->user_lang, $usr->nb_per_page_search, $usr->nb_per_page_select, $usr->nb_per_page_gestion, $param_default, $usr->user_email, $usr->user_alert_resamail, $usr->user_alert_demandesmail, $usr->user_alert_subscribemail, $usr->user_alert_suggmail, $usr->grp_num); echo form_focus('userform', 'form_nom');
<?php // +-------------------------------------------------+ // � 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: user_pwd.inc.php,v 1.11 2015-04-03 11:16:23 jpermanne Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } $requete = "SELECT username FROM users WHERE userid='{$id}' LIMIT 1 "; $res = pmb_mysql_query($requete, $dbh); $row = $row = pmb_mysql_fetch_row($res); $myUser = $row[0]; if (empty($form_pwd)) { echo window_title($database_window_title . $msg[2] . " {$myUser}" . $msg[1003] . $msg[1001]); $admin_npass_form = str_replace('!!id!!', $id, $admin_npass_form); $admin_npass_form = str_replace('!!myUser!!', $myUser, $admin_npass_form); print $admin_npass_form; echo form_focus('userform', 'form_pwd'); } else { if ($form_pwd == $form_pwd2 && !empty($form_pwd)) { $requete = "UPDATE users SET last_updated_dt=curdate(),pwd=password('{$form_pwd}'), user_digest = '" . md5($myUser . ":" . md5($pmb_url_base) . ":" . $form_pwd) . "' WHERE userid={$id} "; $res = pmb_mysql_query($requete, $dbh); } show_users($dbh); echo window_title("{$msg[7]}.{$msg['25']}"); }
// $Id: users.inc.php,v 1.1 2008-10-20 14:10:00 dbellamy Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } $admin_layout = str_replace('!!menu_sous_rub!!', htmlentities($msg[26], ENT_QUOTES, $charset), $admin_layout); print $admin_layout; require_once './admin/users/users_func.inc.php'; print $admin_user_javascript; switch ($action) { case 'pwd': include "./admin/users/user_pwd.inc.php"; break; case 'modif': include "./admin/users/user_modif.inc.php"; break; case 'update': include "./admin/users/user_update.inc.php"; break; case 'add': echo window_title($database_window_title . $msg[347] . $msg[1003] . $msg[1001]); user_form("", "", "", 3, 0, "", 10, 10, 10, $form_param_default = "", "", "0", "0"); echo form_focus('userform', 'form_login'); break; case 'del': include "./admin/users/user_del.inc.php"; break; default: echo window_title($database_window_title . $msg[25] . $msg[1003] . $msg[1001]); show_users($dbh); break; }
} header("Content-Type: text/html; charset={$charset}"); if (!$login_error) { //Est-on déjà authentifié ? if (checkUser('PhpMyBibli')) { header("Location: ./main.php"); exit; } } print $index_layout; if ($demo) { if (!$login_error) { $login_form_demo = str_replace("!!erreur!!", " ", $login_form_demo); print $login_form_demo; } else { $login_form_demo = str_replace("!!erreur!!", $login_form_error, $login_form_demo); print $login_form_demo; } } else { if (!$login_error) { $login_form = str_replace("!!erreur!!", " ", $login_form); } else { $login_form = str_replace("!!erreur!!", $login_form_error, $login_form); } if ($login_message) { $login_form = str_replace("!!login_message!!", $login_message, $login_form); } print $login_form; } print form_focus('login', 'user'); print $index_footer;