Commit Graph

163 Commits

Author SHA1 Message Date
David Anderson 2b7314c574 - comment out URL login stuff for now
svn path=/trunk/boinc/; revision=14627
2008-01-28 16:18:19 +00:00
David Anderson ebed572d4f - API: allow Win apps to have icon
svn path=/trunk/boinc/; revision=14625
2008-01-28 15:48:09 +00:00
David Anderson fef16a7498 - web: bug fixes
svn path=/trunk/boinc/; revision=14474
2008-01-06 18:09:23 +00:00
David Anderson b542785c1e - web: My Account page, other user account page, and profile pages
now have community info in a 2nd column on the right.
    This accomplishes two things:
    1) it puts community info in more places;
    2) it provides a reasonable way to format long lists of friends;
        they just continue down the right column.

svn path=/trunk/boinc/; revision=14452
2008-01-01 22:29:10 +00:00
David Anderson 55c0ee22a0 - web: default for user_links() is to not show profile pic.
Show the pic only in the context of friends list.

svn path=/trunk/boinc/; revision=14444
2007-12-27 18:37:22 +00:00
David Anderson f125e7e2de - web: don't require login for show_user.php
- web: add app selection to example project-specific prefs
    (commented out by default)
- web: in prefs, flag too-low numeric values as errors,
    rather than just setting to min value
- web: fix bug when add new venue from "columns" view

svn path=/trunk/boinc/; revision=14442
2007-12-24 21:34:21 +00:00
David Anderson f9d0d3364a - web: don't show profile pics in forums,
since we already show avatars there.

svn path=/trunk/boinc/; revision=14440
2007-12-24 17:26:00 +00:00
David Anderson ed6aecf9bb - user link tweaks
svn path=/trunk/boinc/; revision=14439
2007-12-24 03:45:20 +00:00
David Anderson 724e89ebab - web: if user has profile photo, use it instead of head_20.
svn path=/trunk/boinc/; revision=14438
2007-12-23 23:09:10 +00:00
David Anderson aaa6e6659d - web: if user is banished, don't show their posts except to mods,
don't show their name in thread headers,
    and don't show their profile

svn path=/trunk/boinc/; revision=14344
2007-12-02 21:11:17 +00:00
David Anderson 2a2ba6e19d - web: escape single-quotes in javascript strings
svn path=/trunk/boinc/; revision=14337
2007-12-01 00:52:26 +00:00
David Anderson 235ea7fdea - web: fix PHP errors, add translations strings
svn path=/trunk/boinc/; revision=14302
2007-11-26 03:05:27 +00:00
David Anderson da3671f0de - user web: when showing UOTD on front page,
strip HTML tags from text (e.g. to remove photos)
- user web: show_image(): separate title (tooltip text)
    from "alt" (replaces image if images disabled).
    The latter must be terse.
- user web: show_button(): make it work even if Javascript disabled

svn path=/trunk/boinc/; revision=14294
2007-11-23 21:05:52 +00:00
David Anderson 79343260dd - user web: clean up logic for dealing with forgotten password:
- login form now has ONLY email/passwd
        ("login with account key" is gone)
    - "forgot password?" takes you to a page with two options:
        1) type in email address, get an email with login link
        2) instructions for recovering account key from BOINC account file
    - email is stripped-down, has login link and not much else

    fixes #190

svn path=/trunk/boinc/; revision=14263
2007-11-20 00:23:02 +00:00
David Anderson 512af1d30e - user web: don't append "/" to URL_BASE.
URL_BASE is assumed to end with a /.
    If you put another /, you end up with // in URLs.
    This leads to a situation where you can have
    one cookie for // and another for / - bad.

    If this causes problems for any projects,
    they should edit their project.inc accordingly

svn path=/trunk/boinc/; revision=14254
2007-11-18 22:42:47 +00:00
David Anderson 8097ddefe4 - user web: change Team page:
- add more info about team message board (if it exists)
    - show list of admins
    - show list of new members (in last 24 hours)
    - show number of members total, with credit, and with average credit
    - move actual list of members to new page (team_members.php)

svn path=/trunk/boinc/; revision=14230
2007-11-16 20:43:07 +00:00
Rytis Slatkevičius 6e57bbebc8 Fix #472 (charset not selected correctly from translation file)
svn path=/trunk/boinc/; revision=14203
2007-11-14 20:01:05 +00:00
David Anderson 000a3e5594 - user web: code cleanup, deleted unused files
svn path=/trunk/boinc/; revision=14200
2007-11-14 16:03:47 +00:00
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