Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
a79ee4f0
Commit
a79ee4f0
authored
Jun 24, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure usr_modified field initialized when users are first created.
parent
182e950b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
utils/firstuser.in
utils/firstuser.in
+1
-1
www/joinproject.php3
www/joinproject.php3
+2
-2
www/newproject.php3
www/newproject.php3
+2
-2
No files found.
utils/firstuser.in
View file @
a79ee4f0
...
...
@@ -74,7 +74,7 @@ if (<> !~ /Y/i) {
print
"
Creating user in database...
\n
";
DBQueryFatal
("
insert into users set uid='
$username
', usr_created=now(),
"
.
"
usr_name='
$userfull
', usr_pswd='
$password
', unix_uid=
$uid
,
"
.
"
admin=1, dbedit=1, status='active'
");
"
usr_modified=now(),
admin=1, dbedit=1, status='active'
");
print
"
Creating project in database...
\n
";
DBQueryFatal
("
insert into projects set pid='
$project
', created=now(),
"
.
...
...
www/joinproject.php3
View file @
a79ee4f0
...
...
@@ -543,12 +543,12 @@ if (! $returning) {
DBQueryFatal
(
"INSERT INTO users "
.
"(uid,usr_created,usr_expires,usr_name,usr_email,usr_addr,"
.
" usr_URL,usr_phone,usr_title,usr_affil,usr_pswd,unix_uid,"
.
" status,pswd_expires) "
.
" status,pswd_expires
,usr_modified
) "
.
"VALUES ('
$joining_uid
', now(), '
$usr_expires
', '
$usr_name
', "
.
"'
$usr_email
', "
.
"'
$usr_addr
', '
$usr_URL
', '
$usr_phone
', '
$usr_title
', '
$usr_affil
', "
.
"'
$encoding
', NULL, 'newuser', "
.
"date_add(now(), interval 1 year))"
);
"date_add(now(), interval 1 year)
, now()
)"
);
if
(
isset
(
$usr_key
))
{
while
(
list
(
$idx
,
$stuff
)
=
each
(
$usr_key
))
{
...
...
www/newproject.php3
View file @
a79ee4f0
...
...
@@ -765,11 +765,11 @@ if (! $returning) {
DBQueryFatal
(
"INSERT INTO users "
.
"(uid,usr_created,usr_expires,usr_name,usr_email,usr_addr,"
.
" usr_URL,usr_title,usr_affil,usr_phone,usr_pswd,unix_uid,"
.
" status,pswd_expires) "
.
" status,pswd_expires
,usr_modified
) "
.
"VALUES ('
$proj_head_uid
', now(), '
$proj_expires
', '
$usr_name
', "
.
"'
$usr_email
', '
$usr_addr
', '
$usr_URL
', '
$usr_title
', '
$usr_affil
', "
.
"'
$usr_phone
', '
$encoding
', NULL, 'newuser', "
.
"date_add(now(), interval 1 year))"
);
"date_add(now(), interval 1 year)
, now()
)"
);
if
(
isset
(
$usr_key
))
{
while
(
list
(
$idx
,
$stuff
)
=
each
(
$usr_key
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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