~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to html/user/edit_email_action.php

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
 
3
 
require_once("../inc/db.inc");
 
3
require_once("../inc/boinc_db.inc");
4
4
require_once("../inc/util.inc");
5
5
require_once("../inc/email.inc");
6
6
require_once("../inc/user.inc");
7
7
 
8
 
db_init();
9
8
$user = get_logged_in_user();
10
9
 
11
10
$email_addr = strtolower(process_user_text(post_str("email_addr")));
35
34
            echo "Invalid password.";
36
35
        } else {
37
36
            $passwd_hash = md5($passwd.$email_addr);
38
 
            $query = "update user set email_addr='$email_addr', passwd_hash='$passwd_hash' where id=$user->id";
39
 
            $result = mysql_query($query);
 
37
            $result = $user->update("email_addr='$email_addr', passwd_hash='$passwd_hash', email_validated=0");
40
38
            if ($result) {
41
39
                echo "
42
40
                    The email address of your account is now $email_addr.