updated to new account page
This commit is contained in:
parent
c334ffbaac
commit
833f30a4da
|
@ -66,7 +66,7 @@ $usr_units = $_SESSION['usr_units'];
|
||||||
if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pdf_all']){
|
if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pdf_all']){
|
||||||
// add new user
|
// add new user
|
||||||
if ($_POST['new_user']){
|
if ($_POST['new_user']){
|
||||||
metaRefresh("../account.php?type=user");
|
metaRefresh("../account/useredit.php?type=user");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
// delete user(s)
|
// delete user(s)
|
||||||
|
@ -258,10 +258,10 @@ if ($user_count != 0) {
|
||||||
echo("<tr class=\"userlist\"\nonMouseOver=\"user_over(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
echo("<tr class=\"userlist\"\nonMouseOver=\"user_over(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
||||||
"onMouseOut=\"user_out(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
"onMouseOut=\"user_out(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
||||||
"onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
"onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
||||||
"onDblClick=\"parent.frames[1].location.href='../account.php?type=user&DN=" . $userinfo[$i]["dn"] . "'\">\n" .
|
"onDblClick=\"parent.frames[1].location.href='../account/useredit.php?type=user&DN=" . $userinfo[$i]["dn"] . "'\">\n" .
|
||||||
"<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
|
"<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
|
||||||
$userinfo[$i]["dn"] . "\">\n</td>\n" .
|
$userinfo[$i]["dn"] . "\">\n</td>\n" .
|
||||||
"<td align='center'>\n<a href=\"../account.php?type=user&DN='" . $userinfo[$i]["dn"] . "'\">" .
|
"<td align='center'>\n<a href=\"../account/useredit.php?type=user&DN='" . $userinfo[$i]["dn"] . "'\">" .
|
||||||
_("Edit") . "</a>\n</td>\n");
|
_("Edit") . "</a>\n</td>\n");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td>\n");
|
echo ("<td>\n");
|
||||||
|
|
|
@ -19,7 +19,7 @@ $Id$
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
This page will redirect to account.php if the given user is valid.
|
This page will redirect to account/useredit.php if the given user is valid.
|
||||||
It is called from listgroups.php via the memberUID links.
|
It is called from listgroups.php via the memberUID links.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -40,8 +40,8 @@ $user = str_replace("\'", '',$user);
|
||||||
$dn = $_SESSION['ldap']->search_username($user);
|
$dn = $_SESSION['ldap']->search_username($user);
|
||||||
|
|
||||||
if ($dn) {
|
if ($dn) {
|
||||||
// redirect to account.php
|
// redirect to account/useredit.php
|
||||||
metaRefresh("../account.php?type=user&DN='$dn'");
|
metaRefresh("../account/useredit.php?type=user&DN='$dn'");
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue