Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
aa256d36
Commit
aa256d36
authored
Feb 19, 2002
by
Dries Buytaert
Browse files
- Small update.
parent
d0761b86
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
aa256d36
...
...
@@ -59,6 +59,8 @@ function user_load($array = array()) {
** Dynamically compose a SQL query:
*/
$query
=
""
;
foreach
(
$array
as
$key
=>
$value
)
{
if
(
$key
==
"pass"
)
{
$query
.
=
"u.
$key
= '"
.
md5
(
$value
)
.
"' AND "
;
...
...
@@ -456,7 +458,7 @@ function user_block() {
// Display account settings:
$block
[
0
][
"subject"
]
=
$user
->
name
;
$output
.
=
"<div style=
\"
width: 1
2
5;
\"
>
\n
"
;
$output
.
=
"<div style=
\"
{
width: 1
5
5;
}
\"
>
\n
"
;
$links
=
array_merge
(
module_invoke_all
(
"link"
,
"menu.create"
),
array
(
""
),
module_invoke_all
(
"link"
,
"menu.view"
),
array
(
""
),
module_invoke_all
(
"link"
,
"menu.settings"
),
array
(
""
),
module_invoke_all
(
"link"
,
"menu.misc"
));
$output
.
=
@
implode
(
"<br />
\n
"
,
$links
);
...
...
modules/user/user.module
View file @
aa256d36
...
...
@@ -59,6 +59,8 @@ function user_load($array = array()) {
** Dynamically compose a SQL query:
*/
$query
=
""
;
foreach
(
$array
as
$key
=>
$value
)
{
if
(
$key
==
"pass"
)
{
$query
.
=
"u.
$key
= '"
.
md5
(
$value
)
.
"' AND "
;
...
...
@@ -456,7 +458,7 @@ function user_block() {
// Display account settings:
$block
[
0
][
"subject"
]
=
$user
->
name
;
$output
.
=
"<div style=
\"
width: 1
2
5;
\"
>
\n
"
;
$output
.
=
"<div style=
\"
{
width: 1
5
5;
}
\"
>
\n
"
;
$links
=
array_merge
(
module_invoke_all
(
"link"
,
"menu.create"
),
array
(
""
),
module_invoke_all
(
"link"
,
"menu.view"
),
array
(
""
),
module_invoke_all
(
"link"
,
"menu.settings"
),
array
(
""
),
module_invoke_all
(
"link"
,
"menu.misc"
));
$output
.
=
@
implode
(
"<br />
\n
"
,
$links
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment