Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
boinc
Commits
e2b4d48a
Commit
e2b4d48a
authored
14 years ago
by
David Anderson
Browse files
Options
Downloads
Patches
Plain Diff
- user web: fix "delete profile" function
svn path=/trunk/boinc/; revision=23359
parent
9de5f69e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
checkin_notes
+9
-0
9 additions, 0 deletions
checkin_notes
html/inc/profile.inc
+1
-1
1 addition, 1 deletion
html/inc/profile.inc
html/user/delete_profile.php
+4
-8
4 additions, 8 deletions
html/user/delete_profile.php
with
14 additions
and
9 deletions
checkin_notes
+
9
−
0
View file @
e2b4d48a
...
@@ -2160,3 +2160,12 @@ David 8 Apr 2011
...
@@ -2160,3 +2160,12 @@ David 8 Apr 2011
tools/
tools/
upgrade
upgrade
David 10 Apr 2011
- user web: fix "delete profile" function
html/
user/
delete_profile.php
inc/
profile.inc
This diff is collapsed.
Click to expand it.
html/inc/profile.inc
+
1
−
1
View file @
e2b4d48a
...
@@ -112,7 +112,7 @@ function delete_user_pictures($userid) {
...
@@ -112,7 +112,7 @@ function delete_user_pictures($userid) {
function
delete_profile
(
$user
)
{
function
delete_profile
(
$user
)
{
delete_user_pictures
(
$user
->
id
);
delete_user_pictures
(
$user
->
id
);
BoincProfile
::
delete_aux
(
"userid=
$user->id
"
);
return
BoincProfile
::
delete_aux
(
"userid=
$user->id
"
);
}
}
function
scale_image
(
function
scale_image
(
...
...
This diff is collapsed.
Click to expand it.
html/user/delete_profile.php
+
4
−
8
View file @
e2b4d48a
...
@@ -22,8 +22,10 @@ require_once("../inc/profile.inc");
...
@@ -22,8 +22,10 @@ require_once("../inc/profile.inc");
check_get_args
(
array
(
"delete"
));
check_get_args
(
array
(
"delete"
));
function
delete_profile
(
$user
)
{
$user
=
get_logged_in_user
();
$result
=
BoincProfile
::
delete_aux
(
"userid =
$user->id
"
);
if
(
isset
(
$_POST
[
'delete'
])
&&
$_POST
[
'delete'
])
{
$result
=
delete_profile
(
$user
);
if
(
!
$result
)
{
if
(
!
$result
)
{
error_page
(
"couldn't delete profile - please try again later"
);
error_page
(
"couldn't delete profile - please try again later"
);
}
}
...
@@ -32,12 +34,6 @@ function delete_profile($user) {
...
@@ -32,12 +34,6 @@ function delete_profile($user) {
$user
->
update
(
"has_profile=0"
);
$user
->
update
(
"has_profile=0"
);
echo
"Your profile has been deleted<br>"
;
echo
"Your profile has been deleted<br>"
;
page_tail
();
page_tail
();
}
$user
=
get_logged_in_user
();
if
(
isset
(
$_POST
[
'delete'
])
&&
$_POST
[
'delete'
])
{
delete_profile
(
$user
);
exit
();
exit
();
}
}
...
...
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