Commit Graph

29 Commits

Author SHA1 Message Date
David Anderson 4d45dda3d9 - validator: update credit statistics even if credit_from_wu
is being used.
- web: make almost everything translatable.  From Christian Beer.


svn path=/trunk/boinc/; revision=24048
2011-08-25 22:12:48 +00:00
David Anderson d27af6214d - user web: finish dealing with get args spam
svn path=/trunk/boinc/; revision=23010
2011-02-09 22:11:34 +00:00
David Anderson 21a18b7045 - web: more translations, from Christian. fixes #982
svn path=/trunk/boinc/; revision=20582
2010-02-16 01:06:03 +00:00
David Anderson 4b5be47639 - web: replace the vaguely-named process_user_text()
with BoincDb::escape_string()
- web: have BoincDb::escape_string() also do a trim()

svn path=/trunk/boinc/; revision=16686
2008-12-14 22:18:49 +00:00
David Anderson ebe3b090e8 - add a script "upgrade_db.php" that updates project DB structure
(after user confirmation).
    This is called from "upgrade", and can also be run by itself.

    NOTE: this mechanism will handle all DB updates going forward.
    Older updates must be done the old way (edit and run db_update.php)

- Web: let teams determine whether they're accepting new members


svn path=/trunk/boinc/; revision=16160
2008-10-08 16:48:11 +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 4ea0acb65e - web: single quotes in team name HTML didn't work
because of magic quotes (need stripslashes()).

svn path=/trunk/boinc/; revision=14754
2008-02-17 16:12:03 +00:00
David Anderson c962ad507d - web: edit team page was rejecting valid HTML team names
svn path=/trunk/boinc/; revision=14354
2007-12-04 23:19:39 +00:00
David Anderson fa601671b6 - web: show explanation if try to change team name to one in use
- web: don't allow bad tags in team name HTML

svn path=/trunk/boinc/; revision=14339
2007-12-01 22:43:11 +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
David Anderson 7302f02544 - user web: added new framework for DB access from PHP.
Here's how things should eventually be:
    - inc/db_conn.inc defines DbConn, a PHP class representing
        a connection to a database with
        various generic operations (update, insert etc.).
        DbConn prepends the DB name to table names,
        so you don't have to select a DB;
        this means you can access multiple databases
        (e.g. BOINC and Bossa) and use persistent connections.
        ALL MYSQL-SPECIFIC CODE WILL EVENTUALLY BE HERE.
    - inc/boinc_db.inc defines classes BoincUser, BoincTeam etc.,
        representing the various BOINC DB tables.
        All access to the DB should use these classes.

    When you use this framework, no initialization calls are needed.
    db.inc is deprecated and should eventually be removed.

    I changed get_logged_in_user()
    and all team-related code to use this framework.
- user web: show team founder link to "management functions"
    even if they're not currently a member;
    allow team founder to perform all operations even if not a member.
- turned on E_ALL error checking,
    and fixed a bunch of warnings
    and a couple of bugs ($team, not team)

- database: update schema/constraints for team fulltext search
- user web: forgot to change Serbia and Montenegro to Serbia

svn path=/trunk/boinc/; revision=13968
2007-10-26 21:14:35 +00:00
David Anderson 383b21dd5a - update_versions now generates <api_version> for all app versions
- user web: don't XML-escape team names in DB
- deleted obsolete files
- calloc() return check, fixes #277

svn path=/trunk/boinc/; revision=13817
2007-10-09 22:58:49 +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
Rytis Slatkevičius 62ba94f0cf Fix #303 (was introduced in [12691])
svn path=/trunk/boinc/; revision=13052
2007-06-29 16:11:59 +00:00
Rytis Slatkevičius 1740f526d9 Encode UTF characters into HTML entities (from ChristianB, fix #57).
NOTE: teams that have name display issues will have to edit their description once the projects update the code.

svn path=/trunk/boinc/; revision=12691
2007-05-18 15:02:02 +00:00
Rytis Slatkevičius 0a7efe52cc Prevent messing with the team if the user has left the team but still is a founder
svn path=/trunk/boinc/; revision=11342
2006-10-23 19:33:22 +00:00
David Anderson e76d620053 *** empty log message ***
svn path=/trunk/boinc/; revision=6133
2005-05-12 21:33:18 +00:00
David Anderson 43a21e6efd *** empty log message ***
svn path=/trunk/boinc/; revision=4618
2004-11-21 18:56:30 +00:00
Karl Chen 545a56d5c8 directory structure change
svn path=/trunk/boinc/; revision=2938
2004-02-02 23:34:39 +00:00
David Anderson 39bc2da38d admin account creation
svn path=/trunk/boinc/; revision=2171
2003-08-22 05:36:25 +00:00
David Anderson dca71c294c host merging
svn path=/trunk/boinc/; revision=1086
2003-03-21 04:38:55 +00:00
David Anderson f98c7f0644 user web
svn path=/trunk/boinc/; revision=1081
2003-03-19 21:01:32 +00:00
David Anderson 04a155ec46 various
svn path=/trunk/boinc/; revision=957
2003-02-24 21:25:16 +00:00
David Anderson 1c720acc6d team edit bug fixes, thanks to robi buecheler
svn path=/trunk/boinc/; revision=844
2003-01-29 22:27:53 +00:00
David Anderson 90f040383b check for team and user login
svn path=/trunk/boinc/; revision=747
2002-12-16 21:41:41 +00:00
David Anderson 72a41ff39a PHP session mechanism
svn path=/trunk/boinc/; revision=681
2002-12-04 19:14:00 +00:00
Barry Luong bf9b213f18 added team stuff like viewing emails of team members
svn path=/trunk/boinc/; revision=273
2002-08-07 18:56:55 +00:00