Commit Graph

62 Commits

Author SHA1 Message Date
David Anderson 560b65dd85 - web: don't send an email after account is created via web;
it serves no purpose and some people apparently view it as spam.

svn path=/trunk/boinc/; revision=16060
2008-09-25 22:03:56 +00:00
David Anderson 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
David Anderson d403a14e42 - web: cleaned up logic of string processing.
There are two aspects:
    1) undoing magic quotes (if it's being used).
        This must be done for all GET and POST string inputs.
        It is now done automatically by get_str() and post_str().
        The places that refer to $_GET and $_POST directly
        must do it themselves using undo_magic_quotes().
    2) Escaping user-supplied strings before using them in DB queries.
        This is done by process_user_text()
        (which should be renamed db_escape_string()).
        The new principle:
        call process_user_text() in the function that does the DB query
        (not at any higher level).


svn path=/trunk/boinc/; revision=15389
2008-06-11 19:36:10 +00:00
David Anderson d764eb5873 - web: clean up stuff related to stripslashes():
1) it's not correct to apply stripslashes() to all form input.
        That should be done only if magic quotes is on.
        I fixed this by adding a function undo_magic_quotes()
        that does the right thing.
    2) There's no reason to strip backslashes from user-supplied text
        (forum titles and bodies, private messages, passwords etc.)
        I'm not sure why this was being done.
        It prevented messages from containing backslashes.

svn path=/trunk/boinc/; revision=15364
2008-06-05 20:32:21 +00:00
David Anderson 8f3e114f8d - web: make "next URL" mechanism work when user creates new account
instead of logging in

svn path=/trunk/boinc/; revision=14737
2008-02-13 19:54:54 +00:00
David Anderson 02adbc4d49 - web: remove all references to the PHP "session" mechanism,
which added only confusion.
    Implement login directly, using cookies.
- All cookie setting/clearing now goes through two functions,
    send_cookie() and clear_cookie().
    These deal with path and expiry
    (e.g. if you want to have different language or forum settings
    on two projects on the same server, that now works).

svn path=/trunk/boinc/; revision=14735
2008-02-13 19:02:44 +00:00
David Anderson 0616e75a02 - user web: update other code to use new-style DB interfaces
svn path=/trunk/boinc/; revision=14164
2007-11-12 22:28:17 +00:00
David Anderson fb8b4ffabb - user web: added the notion of "Team Admin": team members,
appointed by the founder, who have most of the same
    rights as the founder (edit team info, view/remove users).
    They can't, however, change the founder, or select/remove Admins.
- user web: added the ability for founder to delete an empty team
- user web: count/show all team members, not just those with credit
- user web: Team Search returns top team if form fields left blank
- Added db_update.php entry for Eric's banishment_vote stuff

svn path=/trunk/boinc/; revision=14108
2007-11-07 17:23:29 +00:00
Rytis Slatkevičius c1fb4934ec - user web: convert translations from tokens to strings; update Lithuanian translation.
- ops pages: add user removal feature (for spammers).

svn path=/trunk/boinc/; revision=14020
2007-11-02 14:43:02 +00:00
David Anderson 2272891035 - user web: add "team search" page, which does a multi-criteria
search (keywords, country, type).
    Have the new-user scenario route the user through this page.
    Also, link to it rather than team.php for existing users.
- user web: use cookies rather than URLs to identify new users,
    and show "Welcome to X" when they reach their user page.
- user web: don't show user intermediate page for join/quit team.
    Just take them to their user page.

svn path=/trunk/boinc/; revision=13731
2007-10-02 03:19:03 +00:00
Rytis Slatkevičius f5ac3f8631 Do not allow blank or NULL countries
svn path=/trunk/boinc/; revision=13462
2007-08-26 10:29:08 +00:00
David Anderson 12ed1228d2 - user web: code cleanup related to user creation.
Make a single function that creates users and cleanses args.

svn path=/trunk/boinc/; revision=13216
2007-07-25 15:11:14 +00:00
Rytis Slatkevičius 45d3be605b Add a message to error_log when account is created using an invitation code (from Eric Myers)
svn path=/trunk/boinc/; revision=11532
2006-11-15 20:15:01 +00:00
David Anderson 69748078d3 invitation codes
svn path=/trunk/boinc/; revision=10213
2006-05-27 21:41:36 +00:00
David Anderson de1113c71a code reorg
svn path=/trunk/boinc/; revision=9421
2006-02-08 21:05:51 +00:00
David Anderson ca7fc562d5 *** empty log message ***
svn path=/trunk/boinc/; revision=9222
2006-01-13 01:07:05 +00:00
David Anderson 3e6f1f062c account creation cleanup
svn path=/trunk/boinc/; revision=8666
2005-10-12 22:51:55 +00:00
David Anderson 6b5a9fdfbc account creation fix
svn path=/trunk/boinc/; revision=7550
2005-08-29 23:00:59 +00:00
David Anderson 8a72aef655 remove email munge code
svn path=/trunk/boinc/; revision=7518
2005-08-26 22:26:26 +00:00
David Anderson b3dc4bcbe4 new account setup
svn path=/trunk/boinc/; revision=7205
2005-08-07 01:33:15 +00:00
David Anderson a95f0c33bd *** empty log message ***
svn path=/trunk/boinc/; revision=5724
2005-03-28 22:26:22 +00:00
David Anderson c5bba41114 *** empty log message ***
svn path=/trunk/boinc/; revision=5713
2005-03-24 19:02:27 +00:00
David Anderson 9f78f9a661 *** empty log message ***
svn path=/trunk/boinc/; revision=5534
2005-02-27 03:02:01 +00:00
David Anderson 11f870952d *** empty log message ***
svn path=/trunk/boinc/; revision=5533
2005-02-26 09:03:52 +00:00
David Anderson 1e808b012c *** empty log message ***
svn path=/trunk/boinc/; revision=5494
2005-02-22 19:37:55 +00:00
David Anderson cdfb27ce32 *** empty log message ***
svn path=/trunk/boinc/; revision=5425
2005-02-14 18:33:08 +00:00
David Anderson e5296e5518 *** empty log message ***
svn path=/trunk/boinc/; revision=5421
2005-02-13 20:57:43 +00:00
David Anderson a6d5713db1 *** empty log message ***
svn path=/trunk/boinc/; revision=5417
2005-02-13 06:13:33 +00:00
David Anderson 15e29841be *** empty log message ***
svn path=/trunk/boinc/; revision=4941
2004-12-27 03:42:11 +00:00
David Anderson eef4094968 *** empty log message ***
svn path=/trunk/boinc/; revision=4806
2004-12-10 00:30:05 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
David Anderson 7342b36f2e *** empty log message ***
svn path=/trunk/boinc/; revision=4599
2004-11-18 20:01:12 +00:00
David Anderson caf92bd692 *** empty log message ***
svn path=/trunk/boinc/; revision=4535
2004-11-12 22:50:58 +00:00
David Anderson 742298ebce *** empty log message ***
svn path=/trunk/boinc/; revision=4335
2004-10-16 04:12:11 +00:00
David Anderson bc2a5037f5 *** empty log message ***
svn path=/trunk/boinc/; revision=4334
2004-10-15 23:46:24 +00:00
David Anderson cd3884593b *** empty log message ***
svn path=/trunk/boinc/; revision=3727
2004-06-30 18:53:35 +00:00
David Anderson 49a2fdd195 *** empty log message ***
svn path=/trunk/boinc/; revision=3568
2004-06-14 18:05:47 +00:00
David Anderson 00191f0456 *** empty log message ***
svn path=/trunk/boinc/; revision=3308
2004-04-30 18:26:20 +00:00
David Anderson 1e13d8e1d9 *** empty log message ***
svn path=/trunk/boinc/; revision=3271
2004-04-18 18:40:13 +00:00
Karl Chen 545a56d5c8 directory structure change
svn path=/trunk/boinc/; revision=2938
2004-02-02 23:34:39 +00:00
David Anderson 276139973e *** empty log message ***
svn path=/trunk/boinc/; revision=2211
2003-08-31 00:18:45 +00:00
David Anderson 39bc2da38d admin account creation
svn path=/trunk/boinc/; revision=2171
2003-08-22 05:36:25 +00:00
David Anderson cb76c16dde custom signup page
svn path=/trunk/boinc/; revision=1648
2003-07-04 00:02:53 +00:00
Tim Lan 14504c1fc5 *** empty log message ***
svn path=/trunk/boinc/; revision=1532
2003-06-18 18:40:41 +00:00
Tim Lan 5e5350d53e implemented account mirroring
svn path=/trunk/boinc/; revision=1531
2003-06-18 18:29:01 +00:00
David Anderson 17b09cf3dc disable account creation mechanism
svn path=/trunk/boinc/; revision=1104
2003-03-26 00:48:56 +00:00
David Anderson 842aadcf0f bug fix
svn path=/trunk/boinc/; revision=1098
2003-03-25 18:14:11 +00:00
David Anderson 7de8905179 time-of-day prefs
svn path=/trunk/boinc/; revision=1097
2003-03-25 01:30:13 +00:00
David Anderson f98c7f0644 user web
svn path=/trunk/boinc/; revision=1081
2003-03-19 21:01:32 +00:00
David Anderson a26d8c4d1a various
svn path=/trunk/boinc/; revision=1021
2003-03-06 17:42:49 +00:00