Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
d2c090e3
Commit
d2c090e3
authored
21 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Gestion de LDAP si le module est activé
parent
3908d6fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/contact.class.php
+89
-64
89 additions, 64 deletions
htdocs/contact.class.php
with
89 additions
and
64 deletions
htdocs/contact.class.php
+
89
−
64
View file @
d2c090e3
...
@@ -94,6 +94,8 @@ class Contact
...
@@ -94,6 +94,8 @@ class Contact
print
$this
->
db
->
error
()
.
'<br>'
.
$sql
;
print
$this
->
db
->
error
()
.
'<br>'
.
$sql
;
}
}
if
(
define
(
'MAIN_MODULE_LDAP'
)
&&
MAIN_MODULE_LDAP
)
{
$ds
=
dolibarr_ldap_connect
();
$ds
=
dolibarr_ldap_connect
();
if
(
$ds
)
if
(
$ds
)
...
@@ -145,10 +147,9 @@ class Contact
...
@@ -145,10 +147,9 @@ class Contact
{
{
echo
"LDAP bind failed..."
;
echo
"LDAP bind failed..."
;
}
}
ldap_close
(
$ds
);
ldap_close
(
$ds
);
}
}
}
else
else
{
{
echo
"Unable to connect to LDAP server"
;
echo
"Unable to connect to LDAP server"
;
...
@@ -156,6 +157,29 @@ class Contact
...
@@ -156,6 +157,29 @@ class Contact
return
$result
;
return
$result
;
}
}
/*
* Mise jour des infos persos
*
*/
Function
update_perso
(
$id
,
$user
=
0
)
{
$sql
=
"UPDATE llx_socpeople SET "
;
$sql
.
=
" birthday='"
.
$db
->
idate
(
$this
->
birthday
)
.
"'"
;
$sql
.
=
" WHERE idp=
$id
"
;
$result
=
$this
->
db
->
query
(
$sql
);
if
(
!
$result
)
{
print
$this
->
db
->
error
()
.
'<br>'
.
$sql
;
}
return
$result
;
}
/*
/*
*
*
*
*
...
@@ -241,6 +265,8 @@ class Contact
...
@@ -241,6 +265,8 @@ class Contact
print
$this
->
db
->
error
()
.
'<br>'
.
$sql
;
print
$this
->
db
->
error
()
.
'<br>'
.
$sql
;
}
}
if
(
define
(
'MAIN_MODULE_LDAP'
)
&&
MAIN_MODULE_LDAP
)
{
$ds
=
dolibarr_ldap_connect
();
$ds
=
dolibarr_ldap_connect
();
if
(
$ds
)
if
(
$ds
)
...
@@ -260,10 +286,9 @@ class Contact
...
@@ -260,10 +286,9 @@ class Contact
{
{
echo
"LDAP bind failed..."
;
echo
"LDAP bind failed..."
;
}
}
ldap_close
(
$ds
);
ldap_close
(
$ds
);
}
}
}
else
else
{
{
echo
"Unable to connect to LDAP server"
;
echo
"Unable to connect to LDAP server"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment