Commit Graph

145 Commits

Author SHA1 Message Date
David Anderson 518203a933 - user web: set PHP memory limit to 64 MB
svn path=/trunk/boinc/; revision=14119
2007-11-08 00:13: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 71de03e6de - user web: BoincDb::get() checks if web activity is stopped,
and shows an error page (or XML error) if so.

svn path=/trunk/boinc/; revision=14098
2007-11-06 18:25:44 +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
David Anderson 02a6928335 - see last commit
svn path=/trunk/boinc/; revision=14018
2007-11-01 20:41:24 +00:00
David Anderson 94f9b46fc9 - user web: make buttons look better;
add a function show_button() to display links as buttons
    with hover-based explanation.
    This should be used whenever clicking on something
    performs an action, rather than just going to a new page
    (sometimes the boundary is fuzzy)
- user web: fixed bug when send private message by user name
    

svn path=/trunk/boinc/; revision=14015
2007-10-31 23:50:21 +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 e1ca1c5aee - User web: more DB framework changes;
extended DB framework to allow use of a read-only replica

svn path=/trunk/boinc/; revision=13985
2007-10-29 16:38:25 +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 4b28e7c183 User web: add HTML DOCTYPE (4.01 Transitional) to all pages, make some HTML validity changes.
svn path=/trunk/boinc/; revision=13928
2007-10-22 19:36:01 +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 cefb2ee5aa - user web: team search tweaks
svn path=/trunk/boinc/; revision=13749
2007-10-02 15:32:28 +00:00
Rytis Slatkevičius 4186ee2073 Reverse changeset 13581 (it broke more than it fixed)
svn path=/trunk/boinc/; revision=13588
2007-09-14 10:02:19 +00:00
Rytis Slatkevičius dd97f02834 - User web: fix XSS vulnerability, web code update recommended
svn path=/trunk/boinc/; revision=13586
2007-09-13 09:46:36 +00:00
Rytis Slatkevičius b8c0ef8815 Work around for servers where PHP magic_quotes_gpc is disabled
svn path=/trunk/boinc/; revision=13581
2007-09-12 18:10:49 +00:00
Rytis Slatkevičius a48027767f User web: new functions to show table rows (and headers) with unlimited number of columns (table_row() and table_header())
User web: show credit information in team member list

svn path=/trunk/boinc/; revision=13464
2007-08-26 12:01:41 +00:00
Rytis Slatkevičius bc17c8ab45 Fix previous checkin to conform to RFC (Location header expects complete URL)
svn path=/trunk/boinc/; revision=13413
2007-08-18 16:45:54 +00:00
David Anderson 2af893b0f2 - user web: code cleanup related to team creation.
Make a single function that creates teams
    and cleanses arguments.
- API: don't include config.h in parse.h.
    This file is included from apps
    (indirectly, via graphics_api.h)
    so it shouldn't assume that config.h exists

svn path=/trunk/boinc/; revision=13212
2007-07-25 03:17:31 +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
Matt Lebofsky 2d688ca625 svn path=/trunk/boinc/; revision=13041 2007-06-27 20:44:56 +00:00
David Anderson c912a6506b - user web: fixed bug in private-message code
- back end: moved HR_INFO to a separate file;
    did some debugging in HR code

html/
    inc/
        forum_user.inc
        util.inc
    user/
        forum_pm.php
sched/
    Makefile.am
    census.C
    feeder.C
    hr.C,h
    hr_info.C,h (new)

svn path=/trunk/boinc/; revision=12978
2007-06-22 03:46:42 +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 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
David Anderson a37403a673 - scheduler: add <workload_sim> config option.
If set, the scheduler will use EDF simulation,
    together with the in-progress workload reported by the client,
    to avoid sending results that
    1) will miss their deadline, or
    2) will cause an in-progress result to miss its deadline, or
    3) will make an in-progress result miss its deadline
        by more than is already predicted.
    If this option is not set, or if the client request doesn't
    include a workload description (i.e. the client is old)
    use the existing approach, which assumes there's no workload.
    NOTE: this is experimental.  Production projects should not use it.
- EDF sim: write debug stuff to stderr instead of stdout
- Account manager:
    - if an account is detach_when_done, set dont_request_more_work
    - check done_request_more_work even for first-time projects
- update_uotd: generate a file for use by Google gadget
- user_links(): use full URLs (so can use in Google gadget)

client/
    acct_mgr.C
    work_fetch.C
html/
    inc/
        uotd.inc
        util.inc
    user/
        uotd_gadget.php (new)
sched/
    Makefile.am
    edf_sim.C
    sched_config.C,h
    sched_resend.C
    sched_send.C,h
    server_types.C,h

svn path=/trunk/boinc/; revision=12639
2007-05-10 21:50:52 +00:00
Matt Lebofsky 9e0b73e9d3 *** empty log message ***
svn path=/trunk/boinc/; revision=12223
2007-03-14 18:05:30 +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
Rytis Slatkevičius ff9d0b94ed correct RSS feed link type to make IE7 and Safari recognise the feed
svn path=/trunk/boinc/; revision=11909
2007-01-19 18:50:29 +00:00
Rytis Slatkevičius 90ad37471b Team types display (from Eric Myers)
svn path=/trunk/boinc/; revision=11761
2007-01-03 18:07:44 +00:00
Rytis Slatkevičius 4a74e82f16 *** empty log message ***
svn path=/trunk/boinc/; revision=11760
2007-01-03 16:18:43 +00:00
Rytis Slatkevičius e1bf139562 Multiple forum related fixes
svn path=/trunk/boinc/; revision=11739
2006-12-29 20:57:29 +00:00
David Anderson e4e447ad26 *** empty log message ***
svn path=/trunk/boinc/; revision=11735
2006-12-29 03:29:13 +00:00
Rytis Slatkevičius 1259b6dbe8 Getting rid of PHP Warning (from Eric Myers)
svn path=/trunk/boinc/; revision=11693
2006-12-17 17:19:29 +00:00
Rytis Slatkevičius 570dde3783 Reorder login page fields
svn path=/trunk/boinc/; revision=11692
2006-12-17 16:05:56 +00:00
David Anderson 582942b864 *** empty log message ***
svn path=/trunk/boinc/; revision=11637
2006-12-07 23:39:23 +00:00
David Anderson 71fbfb9fa8 *** empty log message ***
svn path=/trunk/boinc/; revision=11416
2006-10-31 17:14:03 +00:00
David Anderson 02bb061b6d *** empty log message ***
svn path=/trunk/boinc/; revision=11117
2006-09-06 20:56:55 +00:00
Janus B. Kristensen 1a886b519e Make page_head and page_tail overrideable so that projects that want to integrate BOINC with existing systems can more easily do so.
svn path=/trunk/boinc/; revision=10960
2006-08-22 08:33:15 +00:00
David Anderson 67bddbea91 *** empty log message ***
svn path=/trunk/boinc/; revision=10906
2006-08-14 17:04:57 +00:00
David Anderson 6c8c7477e8 *** empty log message ***
svn path=/trunk/boinc/; revision=10904
2006-08-13 21:51:15 +00:00
David Anderson a8e771e02e *** empty log message ***
svn path=/trunk/boinc/; revision=10876
2006-08-09 21:54:38 +00:00
David Anderson 5617df5f47 *** empty log message ***
svn path=/trunk/boinc/; revision=10118
2006-05-09 18:25:15 +00:00
Bruce Allen 24a80c66a1 user web: allow sorting of columns of host data for a given user. I
have done this in a general way, which should permit any page to
be easily modified to permit sorting by any column.

svn path=/trunk/boinc/; revision=9516
2006-02-20 19:11:51 +00:00
David Anderson f6f1835534 *** empty log message ***
svn path=/trunk/boinc/; revision=9368
2006-01-31 22:21:11 +00:00
David Anderson d19b6419bb *** empty log message ***
svn path=/trunk/boinc/; revision=9136
2005-12-23 22:36:37 +00:00
David Anderson acc3b042f8 *** empty log message ***
svn path=/trunk/boinc/; revision=8772
2005-10-29 05:30:57 +00:00
David Anderson 4a53269531 profile fixes
svn path=/trunk/boinc/; revision=8684
2005-10-17 03:03:48 +00:00
David Anderson 3e6f1f062c account creation cleanup
svn path=/trunk/boinc/; revision=8666
2005-10-12 22:51:55 +00:00