Commit Graph

1231 Commits

Author SHA1 Message Date
David Anderson 2381837ba8 - web: add project.inc variables to customize certificates;
add team certificate;
    add links to certificates from user page

svn path=/trunk/boinc/; revision=15316
2008-05-28 21:08:26 +00:00
David Anderson 5583762116 - web: style tweaks; fixes #667
svn path=/trunk/boinc/; revision=15307
2008-05-28 16:33:51 +00:00
David Anderson e48ea93727 - web: team transfer request was being rejected if email to founder failed,
so there was no way of rescuing a team with invalid founder email.
    I changed it to record the request anyway.
    This is potentially hazardous - if the founder's email server
    is temporarily down, the request would go through
    without the founder being notified.
    To offset this, I added a notification via private message.

svn path=/trunk/boinc/; revision=15296
2008-05-27 21:26:49 +00:00
David Anderson 49eb1246cf - scheduler: added
- config option <matchmaker> for matchmaker scheduling
    - config options <mm_min_slots>, <mm_max_slots>, <job_size_matching>
        to control matchmaker scheduling
- scheduler: tweaks to matchmaker scheduling from Kevin Reed
- web: fixes to alternative stylesheet from Simek

svn path=/trunk/boinc/; revision=15281
2008-05-23 16:13:30 +00:00
David Anderson 605b29ae40 - web: remove separate blockquote style; fixes #668
svn path=/trunk/boinc/; revision=15269
2008-05-21 18:51:18 +00:00
David Anderson 8b9dae29d8 svn path=/trunk/boinc/; revision=15264 2008-05-20 22:29:43 +00:00
David Anderson 586c07e3b4 - Add alternative stylesheet for project web
- Tweak error messages in client and server

svn path=/trunk/boinc/; revision=15263
2008-05-20 21:47:02 +00:00
David Anderson 4ef8f7a3dd - web: fix bugs introduced by recent tra() changes.
PLEASE CHECK THESE CHANGES BEFORE SUBMITTING THEM

svn path=/trunk/boinc/; revision=15262
2008-05-20 21:08:52 +00:00
David Anderson 9963f0958b - web: fix for cross-site scripting vulnerability
(from Nicolas Alvarez)

svn path=/trunk/boinc/; revision=15261
2008-05-20 16:42:01 +00:00
David Anderson 3a00adeb65 - web: add <no_computing> option to config.xml.
If present, don't show anything related to computing.
    Use this for Bossa/Bolt projects, and the BOINC message boards.


svn path=/trunk/boinc/; revision=15228
2008-05-15 22:05:05 +00:00
Rytis Slatkevičius 78de217b37 Ops pages: add missing error numbers.
svn path=/trunk/boinc/; revision=15163
2008-05-09 16:47:42 +00:00
David Anderson 98041a4866 - Added command-completion script for bash
svn path=/trunk/boinc/; revision=15133
2008-05-06 04:20:32 +00:00
David Anderson 0480a38586 - web: improve error messages if login link fails
(URL may have been truncated in email reader)

svn path=/trunk/boinc/; revision=15126
2008-05-02 20:29:32 +00:00
David Anderson 68f535d033 - user web: send no-cache headers except if we're doing
whole-page caching.  Fixes #626

svn path=/trunk/boinc/; revision=15089
2008-04-24 16:16:36 +00:00
David Anderson f66ec3932b - user web: clear team founder change if requester left team
- user web: check for deleted thread in subcription list
- user web: fix founder change link

svn path=/trunk/boinc/; revision=15070
2008-04-21 14:04:01 +00:00
David Anderson bacf9512d1 - web: on completion of team foundership transfer,
clear ping_user and ping_time fields
- web: fix outdated update_forum_activities script

svn path=/trunk/boinc/; revision=14973
2008-03-28 03:05:19 +00:00
David Anderson 90d83d78d9 - web: show venues in private host list
- compile fixes

svn path=/trunk/boinc/; revision=14897
2008-03-11 20:27:19 +00:00
David Anderson 09558a5ffa - web: error-check the destination thread for moderation moves
svn path=/trunk/boinc/; revision=14868
2008-03-07 04:54:01 +00:00
David Anderson 0dadf8d62f - admin web: fix profile screen form formatting
- web: remove get_transform_settings_from_user().
    There's only get_output_options()

    NOTE: why is text_transform() doing stripslashes()?
    The slashes shouldn't be in the DB in the first place.
    There's some fundamental confusion here.

- web: fix uotd.php


svn path=/trunk/boinc/; revision=14866
2008-03-07 04:38:06 +00:00
David Anderson 5805d5f13a - web: minor code cleanup
svn path=/trunk/boinc/; revision=14854
2008-03-06 00:40:48 +00:00
David Anderson 5a5e2f41f1 - web: fix message
svn path=/trunk/boinc/; revision=14770
2008-02-21 16:51:54 +00:00
David Anderson c98a8c6665 - web: typo in bbcode.php
svn path=/trunk/boinc/; revision=14762
2008-02-19 16:42:31 +00:00
David Anderson 2e4c7ee41a - web: fix in XML RPC to get pending credit
fixes #558


svn path=/trunk/boinc/; revision=14758
2008-02-18 23:48:07 +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 0bcaa761f0 - rename cgi.log to scheduler.log
- fix ops login

svn path=/trunk/boinc/; revision=14747
2008-02-15 15:25:44 +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 b543bcc3c4 svn path=/trunk/boinc/; revision=14730 2008-02-13 04:25:52 +00:00
David Anderson ee34cf3ab7 - client: removed sprawl
svn path=/trunk/boinc/; revision=14721
2008-02-12 15:04:27 +00:00
David Anderson 51286a03dc - Initial checkin of Bossa code
svn path=/trunk/boinc/; revision=14716
2008-02-11 23:38:31 +00:00
David Anderson a323eba986 - scheduler: fix bone-head mistake in HR code
svn path=/trunk/boinc/; revision=14715
2008-02-10 05:17:57 +00:00
David Anderson 936c729b9b - Bolt: fixed bugs in review and repeat
svn path=/trunk/boinc/; revision=14707
2008-02-07 23:21:31 +00:00
David Anderson abd1f1e752 - implemented question mechanism
svn path=/trunk/boinc/; revision=14695
2008-02-07 01:09:30 +00:00
David Anderson a1664cc070 - scheduler: simplified Carl's checkin (avoid virtual destructors)
- API: small tweak for standalone

svn path=/trunk/boinc/; revision=14679
2008-02-05 21:26:43 +00:00
David Anderson e56ed1430f - DB code: safe_atof() was returning a float,
causing a potential loss of precision.
    Change it to double (same as atof())
- When moderator locks a thread, let them specify reason

svn path=/trunk/boinc/; revision=14662
2008-02-02 17:01:57 +00:00
David Anderson b8877e887e - add weak auth to am_get_info web RPC (from Nicolas)
svn path=/trunk/boinc/; revision=14661
2008-02-02 15:38:59 +00:00
David Anderson 904cbe5a4f - Add Bolt admin page
- added "hidden" flag to courses


svn path=/trunk/boinc/; revision=14660
2008-02-01 23:11:09 +00:00
David Anderson d2a0353a00 - manager: fix unix build (new file)
svn path=/trunk/boinc/; revision=14658
2008-01-31 23:43:37 +00:00
David Anderson 4cfba489df - implement the review mechanism
svn path=/trunk/boinc/; revision=14653
2008-01-30 19:29:51 +00:00
David Anderson f682236bd9 - API: fix Win build error
- API: fix Makefile.am
- add LGPL license on some files

svn path=/trunk/boinc/; revision=14629
2008-01-28 22:42:05 +00:00
David Anderson fa69876916 - web: fix bug in handling of links on "forget password?" emails
- web: show number of friends

svn path=/trunk/boinc/; revision=14626
2008-01-28 16:12:28 +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
Rytis Slatkevičius 6877f17dea User web: fix donations page with multiple donation targets.
svn path=/trunk/boinc/; revision=14611
2008-01-22 13:20:59 +00:00
David Anderson bf2a1df1fc - web: fixed extremely minor bug in forum search; fixes #539
svn path=/trunk/boinc/; revision=14603
2008-01-19 13:25:47 +00:00
David Anderson cf4e42b4a3 - client: restore proper sense of --check_all_logins
(should this be set by default?)
- web: removed addslashes() when building language translation arrays.
    These caused 's to be displayed as \' everywhere.
    They may serve some purpose, but I can't think of what it is.
- web: changed max profile image dimensions from 800x600 to 640x480.
    The new profile page puts a column to the right
    of the image, so it shouldn't be quite that wide.

svn path=/trunk/boinc/; revision=14562
2008-01-15 22:22:08 +00:00
David Anderson 8490214d48 - server/web: the weak auth scheme had a major flaw:
It didn't work on a host's first scheduler RPC
    (when it passes an auth but no host ID).
    How do we look up user in this case?
    The weak auth is not stored explicitly in the DB.
    Solution: include the user ID in the weak auth.
    (this invalidates existing weak auths)

svn path=/trunk/boinc/; revision=14546
2008-01-14 16:32:34 +00:00
David Anderson 2be6f8e53a - Client: add <run_apps_manually> config flag.
This is for debugging apps (currently works only in Unix).
    What it does: when running an app,
    the client does everything except actually fork/exec the app,
    i.e. it sets up the slot dir, creates shared mem segment etc.
    It then continues as if the app were actually running,
    and you can then manually run your app under a debugger
    in the slot directory.
    Note: the client won't notice the termination of your app.
- API, Unix: in situations where the timer thread wants to exit
    (e.g. it notices a missing heartbeat).
    don't directly call boinc_exit(),
    since this touches data structures that the worker thread
    may be using concurrently.
    Instead, set a flag telling the worker thread to call boinc_exit()
    (which it will do from its signal handler)
    This is an attempt to fix problems reported by Bernd;
    I haven't tested it.
- scheduler: add config flag for uploading usage data
- web: show account key and weak account key on user page
- added some code for multithread support (not finished)

api/
    boinc_api.C


svn path=/trunk/boinc/; revision=14542
2008-01-13 00:12:14 +00:00
David Anderson 26ef4ac7d3 - web: in host merge pages, provide "Show details" button,
which shows the reasons why pairs of hosts
    were not eligible for merging

svn path=/trunk/boinc/; revision=14539
2008-01-12 00:15:24 +00:00
David Anderson 037c0f0ff9 - web: fix bug there message link not correct in search results; fixes #539
svn path=/trunk/boinc/; revision=14537
2008-01-11 23:11:07 +00:00
David Anderson cf0bd5911c - tweak credit_study.php
svn path=/trunk/boinc/; revision=14516
2008-01-09 20:29:09 +00:00
David Anderson d47c5c1e2f - API, Unix: fix bug where boinc_sleep() hangs forever.
This was because SIGALRM always interrupts sleep()
    and keeps boinc_sleep() stuck in its while loop.
    Solution: change boinc_sleep() so that it works even if
    rapid signals (e.g. interval timer) are happening
- API: remove deprecated graphics files from Makefile.
    Old-style graphics are no longer supported.
- web: add empty show_user_donations_private() to donations.inc

svn path=/trunk/boinc/; revision=14513
2008-01-09 17:32:02 +00:00
David Anderson 6e0b797d69 - web: add "Mark all threads as read" button to Help Desk (fixes #531)
- add "self" link to RSS notify feed
- web: if fail to send email, don't show error message
    (might reveal recipient's email addr)

svn path=/trunk/boinc/; revision=14487
2008-01-08 00:34:55 +00:00
David Anderson 1885f888fe - web: if user A is ignoring user B,
don't accept a friend request from B to A
- boinc_cmd: --help fix

svn path=/trunk/boinc/; revision=14486
2008-01-08 00:20:30 +00:00
David Anderson 7651ec301e - add notify_rss.php
svn path=/trunk/boinc/; revision=14469
2008-01-04 23:24:31 +00:00
David Anderson 757c41b1fa - web: add RSS feed for notifications
- make_project: disable community-related periodic tasks
    for newly-created projects

svn path=/trunk/boinc/; revision=14468
2008-01-04 22:59:21 +00:00
David Anderson 2d40b5722d - web: fix broken link for profile like/don't like.
TODO: currently these don't do anything useful.  Fix this.

svn path=/trunk/boinc/; revision=14461
2008-01-03 17:37:38 +00:00
David Anderson 0a6753ad0f - web: add "Find friends" link to private friends list
- web: in user search form, give input focus to name field

svn path=/trunk/boinc/; revision=14459
2008-01-02 17:52:21 +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 dddd1fc501 - fixed bug in upgrade
svn path=/trunk/boinc/; revision=14451
2008-01-01 18:07:13 +00:00
David Anderson 945b160992 - web tweaks
svn path=/trunk/boinc/; revision=14450
2007-12-31 22:56:39 +00:00
David Anderson f183b6f47f - web: add general-purpose notification mechanism.
Users can choose whether to get 1 email per notification,
    a daily "digest" email, or no email.
    (All notifications are shown on the Account page).
    Currently used for:
    - Friend requests and confirmations
    - Posts to subscribed threads
    - Private messages

    NOTE: To implement the "daily digest" feature, projects must add
    a periodic task for html/ops/notify.php to config.xml
- web: have project_footer() generate links for
    Account Page and Message Boards as well as Home
    NOTE: projects that want this change
    will have to modify their own project.inc.

svn path=/trunk/boinc/; revision=14447
2007-12-30 22:02:16 +00:00
David Anderson 40f594b07c - upgrade script: fix it, and add --web_only option (fixes #527)
- web: replace "Result" by "Task" a couple of places

svn path=/trunk/boinc/; revision=14446
2007-12-28 05:23:52 +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 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
Rytis Slatkevičius 97d08681ab -user web: update Lithuanian translation, fix typo in html/user/info.php.
svn path=/trunk/boinc/; revision=14428
2007-12-20 13:16:53 +00:00
David Anderson c3491a40d9 David Dec 19 2007
- May as well start keeping checkin notes for Bolt.
        At this point the fundamental structure of Bolt is
        more or less complete, I hope; many features are missing.

    Items for this particular checkin:

    - Make things work right when you resume a course at an
        exercise answer page.
        This creates a new View, whose prev_view_id link points
        to the exercise view, not the answer page view
    - When leave a page using "Up", terminate the view accordingly.
    - Rather than using $_GET, Form vars are now passed to exercise primitives
        in a global variable $bolt_ex_query_string, which they must parse.

svn path=/trunk/boinc/; revision=14414
2007-12-19 16:31:41 +00:00
David Anderson 2f3d70a228 Bolt: added mechanism to view old answer pages
svn path=/trunk/boinc/; revision=14396
2007-12-18 23:37:26 +00:00
David Anderson 2cd5dba886 Bolt stuff
svn path=/trunk/boinc/; revision=14395
2007-12-18 21:48:36 +00:00
David Anderson 13baee4302 - user web: add "friend" and "notification" features
- user web: code cleanup in Profile area
- GUI RPC: add missing "/" in auth2 RPC

svn path=/trunk/boinc/; revision=14394
2007-12-18 20:28:08 +00:00
David Anderson bed9ce8307 minor code cleanup
svn path=/trunk/boinc/; revision=14375
2007-12-12 04:52:30 +00:00
David Anderson 69042c3284 - bolt stuff
svn path=/trunk/boinc/; revision=14374
2007-12-12 04:43:04 +00:00
David Anderson 820eb30596 - compile fixes
svn path=/trunk/boinc/; revision=14373
2007-12-10 22:13:48 +00:00
David Anderson 4e9fa4f0c6 - tweaked weak-auth page (from Nicolas Alvarez)
svn path=/trunk/boinc/; revision=14372
2007-12-09 04:13:24 +00:00
David Anderson 3f41f9a88d - Add weak account key mechanism.
Each account has an associated weak account key.
    The user can see it by visiting weak_auth.php.
    If you put the weak account key in the account file on a computer
    (instead of the regular account key)
    the computer will attach to the account.
    But the weak account key cannot be used to log in
    to the account on the web, or to do web RPCs, or anything else.

    Note: this involves a scheduler change.

svn path=/trunk/boinc/; revision=14367
2007-12-07 23:23:25 +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 cea8e84c7b - ops: in team import script, send email to team founder
when creating team
- web: if user changes email addr, clear email_validated

svn path=/trunk/boinc/; revision=14353
2007-12-04 22:16:37 +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 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 966a64523e - web: put "mark all threads as unread" on the forum index,
since it applies to all forums.

svn path=/trunk/boinc/; revision=14338
2007-12-01 01:22:14 +00:00
David Anderson 2ebf90fabd svn path=/trunk/boinc/; revision=14327 2007-11-30 00:38:38 +00:00
David Anderson b191ba9e33 - web: fix this forum prefs reset problem again; this time for sure
svn path=/trunk/boinc/; revision=14326
2007-11-30 00:32:29 +00:00
David Anderson dc774182b1 - web: if a team forum is deleted, delete all the threads and posts
beneath it.
    Otherwise you get "zombie" posts, and e.g. when we should a user's
    posts, they might all be hidden.
    Also added a script to retroactively clean up these.

svn path=/trunk/boinc/; revision=14325
2007-11-30 00:00:44 +00:00
David Anderson be20ad2af2 - web: updating forum prefs would undo banishment,
reset #posts, and clear moderator flags.  Fixed.


svn path=/trunk/boinc/; revision=14324
2007-11-29 23:26:49 +00:00
David Anderson 27ba7bf0e8 - web: clean up forum prefs forum, and add a Confirm when reset
svn path=/trunk/boinc/; revision=14320
2007-11-29 16:47:56 +00:00
David Anderson 68ec6e6ce6 svn path=/trunk/boinc/; revision=14319 2007-11-29 02:56:10 +00:00
David Anderson 5229a414f2 - web: clean up moderation emails for post hide/unhide.
TODO: other moderation emails
- web: fix small bug in host merge function

svn path=/trunk/boinc/; revision=14316
2007-11-28 17:40:28 +00:00
David Anderson 2c5666df86 - web: when showing team forums, give link back to forum index
svn path=/trunk/boinc/; revision=14303
2007-11-26 04:12:15 +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 c1ad7d8df5 - web: reorder and reword Your Account page and Forum prefs page;
rename General Prefs to Computing Prefs;
    rename Forum Prefs to Community Prefs
    add Prefs link if user doesn't have email PM notification
- remove forum low/high rating theshold stuff.
    Message rating was a failed experiment.

svn path=/trunk/boinc/; revision=14300
2007-11-26 00:51:00 +00:00
David Anderson 2a4ddf1c45 - user web: use enum_fields() when enumerating team members;
hopefully this will prevent running out of memory on large teams

svn path=/trunk/boinc/; revision=14299
2007-11-25 20:57:34 +00:00
David Anderson 44caa5886e svn path=/trunk/boinc/; revision=14298 2007-11-25 04:52:01 +00:00
David Anderson fc2784895d - user web: add <team_forums_members_only> config option.
If set, only team members can see team forums

svn path=/trunk/boinc/; revision=14297
2007-11-25 04:47:54 +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 830db542f7 - user web: fix translation bug (from Nicolas Alvarez)
- user web: fix small bug in team search

svn path=/trunk/boinc/; revision=14293
2007-11-23 19:11:42 +00:00
David Anderson 4b9d17fdcd - prevent 2 forums for 1 team
svn path=/trunk/boinc/; revision=14292
2007-11-23 16:26:41 +00:00
David Anderson feb9433218 - user web: if user edits posts and content is empty, delete; fixes #504
svn path=/trunk/boinc/; revision=14291
2007-11-23 00:51:01 +00:00
David Anderson 8456c61a35 - user web: fix bug in user filter; fixes #505
svn path=/trunk/boinc/; revision=14290
2007-11-23 00:19:48 +00:00
David Anderson 8f6ce0b043 - user web: show list of subscribed threads on forum index page
- user web: highlight subscribed threads using green background
- user web: hyperlink thread titles in search results

svn path=/trunk/boinc/; revision=14286
2007-11-22 04:13:59 +00:00
David Anderson 6c9c644da8 - user web: team admins receive email notification of
moderation and red-X events, as well as team founder
- user web: admins can view team join/quit history
    (which no longer contains email addresses)
- user web: update text describing admin privileges

svn path=/trunk/boinc/; revision=14285
2007-11-22 02:36:51 +00:00
David Anderson 6efd83fb4c - user web: send UOTD email using PHPMailer if available
- user web: don't show team forum in Q&A page
- scheduler: code (commented out) to recognize when
    a sched request is from an existing host
    (same IP/domain/RAM size) and reuse the host record;
    from Kevin Reed

svn path=/trunk/boinc/; revision=14283
2007-11-22 01:52:27 +00:00
David Anderson 609e81b56d - user web: fix WAP function
svn path=/trunk/boinc/; revision=14278
2007-11-21 03:55:42 +00:00
David Anderson de2efcbc38 - user web: disable feature where answered questions are
shown in green - not ready for prime time.

svn path=/trunk/boinc/; revision=14277
2007-11-21 00:46:54 +00:00
David Anderson ab6bcccf59 - user web: team search tweaks
svn path=/trunk/boinc/; revision=14273
2007-11-20 23:18:54 +00:00
David Anderson 4a81532043 - DB: add fulltext index on team.name
- user web: improve "team search" function,
    and get rid of the superceded "search by name" function
- user web: don't show team founder link to initiate transfer
- user web: show team types
- user web: fix "top teams by type" function
- client: tread NOT_FOUND error on file upload as transient;
    it means the project is missing its file_upload_handler

svn path=/trunk/boinc/; revision=14272
2007-11-20 22:58:14 +00:00
David Anderson dddc2ec6d2 - user web: clean up funky search result formatting.
For thread titles, show links to forum/category also
    For posts, show complete post, with search terms highlighted.
- user web: in display of posts for a user,
    show links to thread and forum also
- user web: posts/threads can become "orphaned" if their forum
    disappears, e.g. team message board is deleted.
    Handle this gracefully in search results and user post list
- user web: where HTML tags are allowed, say so
- user web: fix bug where wrap_postcounts weren't being shown in form
- DB: use "tinyint" instead of "tinyint(1) unsigned" etc.

svn path=/trunk/boinc/; revision=14267
2007-11-20 19:23:26 +00:00
David Anderson 6a745f209e - user web: when send an email with login URL,
don't include the account key in the URL.
    Rather, include the user ID, the time, and
    a have of the ID, time, and account key.
    Honor this for 1 day.

svn path=/trunk/boinc/; revision=14265
2007-11-20 03:08:35 +00:00
David Anderson 9041fd8507 - user web: use forum prefs (e.g. display images as links)
when displaying PMs.  fixes #497

svn path=/trunk/boinc/; revision=14264
2007-11-20 00:55:35 +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 36ec89fd5d - user web: don't show controls in user post list; fixes #494
svn path=/trunk/boinc/; revision=14262
2007-11-19 21:07:19 +00:00
David Anderson e5c3b749c4 - user web: tweak PM-related text
svn path=/trunk/boinc/; revision=14259
2007-11-19 16:44:24 +00:00
David Anderson e85f6d492e - user web: fix forum banishment vote stuff
svn path=/trunk/boinc/; revision=14256
2007-11-19 05:14:37 +00:00
David Anderson 615d4dcf22 - user web: the "private-message notification by email" flag
should default to off.
    Note: it's necessary to clear everyone's flag.
    Projects will need to notify users (e.g. via a news item)
    that they need to explicitly set this pref if they want email
    notification of PMs

svn path=/trunk/boinc/; revision=14255
2007-11-19 02:17:57 +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 f978ce2143 - user web: fix PM mass deletion
svn path=/trunk/boinc/; revision=14252
2007-11-18 22:17:39 +00:00
David Anderson bdf45c8ed6 - user web: fix bug in user list XML display
svn path=/trunk/boinc/; revision=14251
2007-11-18 22:06:45 +00:00
David Anderson 990ce3e46f - user web: update post.modified when edit post (fixes #491)
svn path=/trunk/boinc/; revision=14248
2007-11-18 16:25:33 +00:00
David Anderson 09177a1357 - user web: send "red X" notifications on team boards
to project admins as well as team founder

svn path=/trunk/boinc/; revision=14246
2007-11-18 04:24:30 +00:00
David Anderson fd399c351d - user web: for moderation actions on team forums,
send email notifications to team founder (not project admin)
- user web: let project admins (S_ADMIN) moderate team forums

svn path=/trunk/boinc/; revision=14245
2007-11-18 04:10:37 +00:00
David Anderson c9429ad7a4 - user web: if join team while already in a team,
create outgoing delta also

svn path=/trunk/boinc/; revision=14244
2007-11-17 21:59:46 +00:00
David Anderson 3a6ef1d42b - user web: fix bug in edit forum prefs
svn path=/trunk/boinc/; revision=14243
2007-11-17 20:30:33 +00:00
David Anderson 9564dc0931 - user web: bug fix in moderation email send (fixes #485)
- BOINC-wide teams: HTML-escape user-supplied text (fixes #487)


svn path=/trunk/boinc/; revision=14240
2007-11-17 16:35:02 +00:00
Rytis Slatkevičius 547dd8d741 user web: add "Powered by BOINC" logo to the repository and update sample_index.php (fix #460).
svn path=/trunk/boinc/; revision=14239
2007-11-17 15:02:19 +00:00
David Anderson 4f3b85803c - user web: let team founder edit title/description
of team message board

svn path=/trunk/boinc/; revision=14234
2007-11-16 22:23:16 +00:00
David Anderson b597e4d204 - user web: on team message board pages,
put a link to the top-level message board

svn path=/trunk/boinc/; revision=14233
2007-11-16 21:48:28 +00:00
David Anderson 877bec76ce - user web: if user unchecked "OK to send email" pref,
don't show his email address to team founder
- user web: change wording on project prefs page to clarify
    that emails may come from project OR team
- user web: let team founder delete message board

svn path=/trunk/boinc/; revision=14232
2007-11-16 21:31:43 +00:00
David Anderson c23eb176a6 - user web: fixes #482
svn path=/trunk/boinc/; revision=14231
2007-11-16 20:52:42 +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
David Anderson 4cc5144f98 - user web:
show team message board on main Message Boards page

svn path=/trunk/boinc/; revision=14223
2007-11-16 01:14:55 +00:00
David Anderson c358151043 - user web: only team founders can see member email addresses
svn path=/trunk/boinc/; revision=14222
2007-11-16 00:26:48 +00:00
David Anderson 2f602575da - user web: in the various interfaces that show team member's
email addresses to team admins,
    also show the user's "send_email" flag,
    indicating whether the agreed to get "email newsletters"
    from the project.
    If this is set, teams should NOT send email to that user.

    Ideally, we should have a separate preference for whether
    to get email from team
    (or show email address to team admins at all)
    
    Fixes (more or less) #479

svn path=/trunk/boinc/; revision=14220
2007-11-15 23:25:43 +00:00
David Anderson d2124b9e33 svn path=/trunk/boinc/; revision=14219 2007-11-15 22:59:31 +00:00
David Anderson a49608a028 - user web: allow teams to create their own "team message board".
Team founder and admins have moderator power.
    Anyone can view a team message board,
    but only team members can write to it.
    Users cannot be banished from team message boards
    (due to database limitations).

svn path=/trunk/boinc/; revision=14218
2007-11-15 22:51:05 +00:00
David Anderson c83eeef1a5 - user web: factor out code for forum header (search forum and PM info)
into a separate function.
    Don't show subtitle bar for categories with no name.
    Rename search_post_titles() to search_post_content()

svn path=/trunk/boinc/; revision=14209
2007-11-15 00:27:02 +00:00
David Anderson 08c45ef7f1 - user web: change stylesheet so that when showing
item/value pairs in table, don't bolden values

svn path=/trunk/boinc/; revision=14208
2007-11-14 23:33:45 +00:00
David Anderson 1abb08ca65 - user web: remove debugging code;
remove odd use of tables in edit forum prefs forum

svn path=/trunk/boinc/; revision=14206
2007-11-14 23:22:01 +00:00
David Anderson 86ee8b723d - user web: bug fix in forum edit function; fixes #474
svn path=/trunk/boinc/; revision=14205
2007-11-14 22:49:31 +00:00
David Anderson 9970e2c71b - user web: bug fixes
svn path=/trunk/boinc/; revision=14204
2007-11-14 21:55: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
Rytis Slatkevičius 8797fca96a - user web: fix typo in lookup_account.php, preventing attach (fix #471).
svn path=/trunk/boinc/; revision=14191
2007-11-14 12:29:16 +00:00
David Anderson df2b79f400 svn path=/trunk/boinc/; revision=14176 2007-11-13 17:21:08 +00:00
David Anderson 83362a31ed - user web: change forum prefs editing to use new DB interface
svn path=/trunk/boinc/; revision=14175
2007-11-13 17:18:34 +00:00
David Anderson 75e5e0a1ee - user web: fixes
svn path=/trunk/boinc/; revision=14165
2007-11-12 22:39:56 +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 a18dfc55a7 - user web: revise forum code to use new-style DB interface
svn path=/trunk/boinc/; revision=14160
2007-11-12 20:57:15 +00:00
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 6328a94eb8 - user web: Team Admins can't remove members
svn path=/trunk/boinc/; revision=14118
2007-11-08 00:04:57 +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
Janus B. Kristensen 2a6f6d0a30 Added green look to answered Q&A questions.
svn path=/trunk/boinc/; revision=14115
2007-11-07 21:57:14 +00:00
David Anderson 79b0934a55 - user web: protect Team Admin ops from cross-project link attacks
svn path=/trunk/boinc/; revision=14110
2007-11-07 17:54:27 +00:00