Commit Graph

69 Commits

Author SHA1 Message Date
David Anderson bf227ea8b1 - DB: remove "lang" from schema - not used
- DB: added parent_type to forum
- user web: BoincUser uses caching by default
- client: fixed small memory leak in statistics parsing

svn path=/trunk/boinc/; revision=14130
2007-11-10 00:32:42 +00:00
David Anderson 3544a556e9 - user web: enhancements to the "foundership request" feature:
- If a request is pending, notify the current founder
        in red on their Account page.
        (previously there was no notification on the web;
        if the founder didn't get the notification email,
        they'd never find out; and if they read but lost the email,
        they'd lose the URL they needed to visit to decline).
    - Also notify current founder on the Admin Functions page
    - On the team page
        requesting user: show that request is pending, and the deadline.
        founder: show that request is pending, link to respond
        other users: show Deferred if can't make a request yet
    - Say 90 days instead of 60 days where appropriate;
        other text cleanup
- user web: team_change_founder_action.php was generating
    a different name for each element of a radio button group.
    That makes it not a radio button.

svn path=/trunk/boinc/; revision=14117
2007-11-07 23:59:08 +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 c35f02e868 - user web: add a general-purpose user search mechanism.
This lets you lookup up users sorted by
        - descending join time
        - descending total credit, or
        - descending RAC
    and lets you filter them by
        - country
        - presence/absence of team
        - presence/absence of profile
    It's implemented in such a way that no more than N
    DB rows are examined
    (i.e. it doesn't necessarily show you all the results)
- PHP database: add enum_fields() member to DbConn and BoincUser.
    This is to select a limited number of fields
    e.g. to make large queries more efficient.
    Also added BoincTeam::lookup_id_cache(); this is an example
    of how to look up items likely to be repeated
    (like teams when you're showing a list of users)

svn path=/trunk/boinc/; revision=14082
2007-11-05 23:55:33 +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
Rytis Slatkevičius 105d6aaae3 HTML fixes;
PHP notice fixes;
home.php made translatable, include Lithuanian translation.

svn path=/trunk/boinc/; revision=13997
2007-10-30 19:36:27 +00:00
David Anderson dc4ca1e5cd - user web: changes to use new DB framework and eliminate PHP warnings
svn path=/trunk/boinc/; revision=13981
2007-10-28 15:03:14 +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
Rytis Slatkevičius c70f01b64d Fix unclosed HTML tag
svn path=/trunk/boinc/; revision=13877
2007-10-17 16:35:22 +00:00
David Anderson d09bf92af3 - user web: add format_credit_large() function to show
credit in situations where it's likely to be large (e.g. team totals)

svn path=/trunk/boinc/; revision=13789
2007-10-07 19:27:59 +00:00
David Anderson 066f01dc26 - Terminology in user web and client:
"task" instead of "result";
    "computer" instead of "host";
    "scheduler request" instead of "scheduler RPC"
    "access to Internet" instead of "access to reference web site"

svn path=/trunk/boinc/; revision=13774
2007-10-04 17:30:28 +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
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 b04aeea7d6 user web: make sure that all links that have URL_BASE have slashes after it. This makes a slash in the end of URL_BASE definition in project/project.inc no longer necessary.
svn path=/trunk/boinc/; revision=13106
2007-07-05 19:37:33 +00:00
Rytis Slatkevičius 56871331a5 - Fix #189: add links to send PMs below user name in the forum, in the user overview and in user profile page.
- Change "CVS" into "SVN" in the CVS version tracker (automatically generated comment in the pages showing page revision number)

svn path=/trunk/boinc/; revision=12666
2007-05-15 10:06:38 +00:00
Rytis Slatkevičius 4332736ae9 Private message functionality for the forums.
NOTE: needs database update.

svn path=/trunk/boinc/; revision=12499
2007-04-29 14:22:28 +00:00
David Anderson 49afbfe4e3 *** empty log message ***
svn path=/trunk/boinc/; revision=12348
2007-04-11 22:46:42 +00:00
David Anderson 33a4319a42 *** empty log message ***
svn path=/trunk/boinc/; revision=12336
2007-04-09 17:58:07 +00:00
Rytis Slatkevičius aa396080c0 Fix XSS vulnerability in the forum
svn path=/trunk/boinc/; revision=12055
2007-02-08 19:54:05 +00:00
David Anderson 7b66693f21 *** empty log message ***
svn path=/trunk/boinc/; revision=11995
2007-01-29 18:15:16 +00:00
David Anderson 5479cf9a86 *** empty log message ***
svn path=/trunk/boinc/; revision=11767
2007-01-04 15:54:10 +00:00
David Anderson caa9ac6276 *** empty log message ***
svn path=/trunk/boinc/; revision=11744
2006-12-29 23:36:24 +00:00
David Anderson c6ee2edf87 *** empty log message ***
svn path=/trunk/boinc/; revision=11738
2006-12-29 19:01:03 +00:00
Rytis Slatkevičius ccff6971ca Big team change to allow founder transfer when he's no longer available
svn path=/trunk/boinc/; revision=11367
2006-10-27 16:06:42 +00:00
David Anderson 02bb061b6d *** empty log message ***
svn path=/trunk/boinc/; revision=11117
2006-09-06 20:56:55 +00:00
David Anderson f351e21bf8 show posts
svn path=/trunk/boinc/; revision=9500
2006-02-17 22:01:22 +00:00
Matt Lebofsky 5f605a5070 *** empty log message ***
svn path=/trunk/boinc/; revision=9493
2006-02-16 22:50:28 +00:00
David Anderson 19d1c8269c stats pages
svn path=/trunk/boinc/; revision=9468
2006-02-14 22:30:42 +00:00
David Anderson 888823aaff *** empty log message ***
svn path=/trunk/boinc/; revision=9450
2006-02-13 06:53:46 +00:00
David Anderson b8ee2a050e user web
svn path=/trunk/boinc/; revision=9448
2006-02-12 06:19:00 +00:00
Bruce Allen 2dc85757c3 user web: modify David's previous change. Make 'pending
credit link display only if 'show_results' enabled in
project config.xml file.

svn path=/trunk/boinc/; revision=9374
2006-02-01 04:00:11 +00:00
David Anderson fa5f5e96a6 *** empty log message ***
svn path=/trunk/boinc/; revision=9369
2006-02-01 00:23:49 +00:00
Bruce Allen 57f89046ef fix bug on page that shows profile for a given user. The total
number of posts made by a given user is not shown correctly.

The PHP code assumes that this numberis given by user.posts.  However
in html/inc/db_forum.inc, the value of user.posts is NOT
incremented each time a user makes a new post (either starting
a new thread or replying to an existing one).  For the moment, my
the fix is to simply scan the database and count the number of posts by the
user, to give the right value on the profile page.

An alternative fix (which would be less DB intensive, overall)
is to (1) fix db_forum.inc so that it properly increments user.posts and
then (2) add an update_db.php script entry that correctly sets user.posts
by counting the number of posts for each user.

svn path=/trunk/boinc/; revision=9197
2006-01-09 09:43:17 +00:00
David Anderson fb225fcad4 *** empty log message ***
svn path=/trunk/boinc/; revision=9128
2005-12-22 21:46:35 +00:00
David Anderson 829bc4c678 translation fixes
svn path=/trunk/boinc/; revision=9121
2005-12-22 08:22:44 +00:00
Matt Lebofsky 96fdfb0f67 *** empty log message ***
svn path=/trunk/boinc/; revision=9094
2005-12-19 21:20:32 +00:00
David Anderson d0df76e6aa *** empty log message ***
svn path=/trunk/boinc/; revision=9063
2005-12-14 01:07:10 +00:00
David Anderson 28551ae350 *** empty log message ***
svn path=/trunk/boinc/; revision=8044
2005-09-17 21:28:25 +00:00
Matt Lebofsky 1da51704fe Further cleaning up of donation stuff. Project speific code is now in
../projects/donations.inc.

svn path=/trunk/boinc/; revision=8032
2005-09-15 20:45:11 +00:00
Rom Walton d491bf7566 *** empty log message ***
svn path=/trunk/boinc/; revision=8031
2005-09-15 18:30:17 +00:00
Matt Lebofsky e442b70263 *** empty log message ***
svn path=/trunk/boinc/; revision=8030
2005-09-15 18:18:53 +00:00
David Anderson abe3fca454 *** empty log message ***
svn path=/trunk/boinc/; revision=7698
2005-08-31 22:50:53 +00:00
David Anderson b3dc4bcbe4 new account setup
svn path=/trunk/boinc/; revision=7205
2005-08-07 01:33:15 +00:00
Bruce Allen 430eab985e - Add explicity leading path to URLs in a 'show user' function that is
called from one of the ops pages.  Janus, I used URL_BASE rather
      than MASTER_URL (what's the distinction?).  Please confirm this.

svn path=/trunk/boinc/; revision=6589
2005-07-10 04:13:15 +00:00
Janus B. Kristensen f5fab59eb5 User table used for top users is now translatable
svn path=/trunk/boinc/; revision=6421
2005-06-23 20:39:02 +00:00
David Anderson 1c4a881fe1 *** empty log message ***
svn path=/trunk/boinc/; revision=5798
2005-04-08 00:06:52 +00:00
David Anderson 7e4801d6f7 *** empty log message ***
svn path=/trunk/boinc/; revision=5705
2005-03-23 19:25:00 +00:00
David Anderson c27cb008f4 *** empty log message ***
svn path=/trunk/boinc/; revision=5599
2005-03-09 01:02:36 +00:00
Janus B. Kristensen 4f45622c91 Project specific callback functions added
svn path=/trunk/boinc/; revision=5562
2005-03-04 10:09:25 +00:00
David Anderson b298ed30ab *** empty log message ***
svn path=/trunk/boinc/; revision=5033
2005-01-08 19:45:26 +00:00