Commit Graph

82 Commits

Author SHA1 Message Date
David Anderson 1a75514084 - web: various security fixes
svn path=/trunk/boinc/; revision=15975
2008-09-07 07:40:56 +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
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 54519a4ee1 - Server: add "job assignment" feature.
Lets you assign a WU to a particular host,
    to one or all hosts belonging to a user or team, or to all hosts.
    See http://boinc.berkeley.edu/trac/wiki/AssignedWork
    Disabled unless you include <enable_assignment> in config.xml
    Uses a new DB table.
    Tested but only a little.
- Server: code cleanup; moved result-handling to a new file,
    and removed the PLATFORM_LIST arg to everything
    (put it in SCHEDULER_REQUEST instead)

svn path=/trunk/boinc/; revision=14767
2008-02-21 00:47:50 +00:00
David Anderson 1ff8594698 - user web: fixed a few hex colors without #
svn path=/trunk/boinc/; revision=13969
2007-10-26 22:07:39 +00:00
Bruce Allen 00dbc6db34 Ops pages. In the course of a four-hour repair of the E@H database, where a sysadmin accidentally set outcome=6 in the entire result table, I noticed some inconsistencies in the summary result tables, for example that they did not properly incorporate outcome==7 (client detached) or client_state==6 (aborted). I have fixed this.
svn path=/trunk/boinc/; revision=13850
2007-10-15 23:04:55 +00:00
David Anderson 81effa6a7b *** empty log message ***
svn path=/trunk/boinc/; revision=12127
2007-02-21 16:26:51 +00:00
David Anderson f4953d1829 *** empty log message ***
svn path=/trunk/boinc/; revision=11723
2006-12-27 18:22:17 +00:00
Bruce Allen 40017db1aa Ops pages: modify to include new client state outcome (aborted)
svn path=/trunk/boinc/; revision=11093
2006-09-04 08:02:11 +00:00
Bruce Allen 6857d64879 ops pages, missing client state value
svn path=/trunk/boinc/; revision=11045
2006-08-30 22:43:22 +00:00
David Anderson ba63f6c949 *** empty log message ***
svn path=/trunk/boinc/; revision=10955
2006-08-21 19:41:25 +00:00
David Anderson 8230f9ca6c *** empty log message ***
svn path=/trunk/boinc/; revision=10900
2006-08-13 04:27:24 +00:00
David Anderson 7f00b2fa3f outcome CLIENT_DETACHED
svn path=/trunk/boinc/; revision=10593
2006-07-06 17:30:03 +00:00
Bruce Allen 25ce5f8069 ops page: add external IP to data shown for host
svn path=/trunk/boinc/; revision=9244
2006-01-16 12:19:40 +00:00
Bruce Allen 7127761bd7 user ops page now shows passwd_hash and a bit of other info
svn path=/trunk/boinc/; revision=8884
2005-11-19 21:26:20 +00:00
Bruce Allen 15d5fce125 Trivial reordering
svn path=/trunk/boinc/; revision=6872
2005-07-29 22:54:04 +00:00
Bruce Allen 5fd8a2ca2b Correct comment
svn path=/trunk/boinc/; revision=6639
2005-07-14 20:31:23 +00:00
Bruce Allen 4d6193babb - Transitioner would not set a new WU transition time less
than 24 hours away, to prevent thrashing.  But this delayed
      reissuing of new results.  For example if two results were
      issued a hours 17 and 18, and both timed out (no reply). At
      time 17+deadline the first would time out and a new result
      would be issued.  But then instead of setting the transition
      time to 18+deadline it would be set to 18+deadline+1 day.

      To prevent thrashing I have fixed this so that if a transition
      time is in the past, I advance it by TWICE the amount it is late,
      but never less than 1 minute or more than 1 day.

    - Ops pages: show unsent/in-progress results in purple.  For
      unsent results show create time rather than deadline.

svn path=/trunk/boinc/; revision=6637
2005-07-14 20:22:53 +00:00
Bruce Allen b848361a8e Incorrect description fixed
svn path=/trunk/boinc/; revision=6396
2005-06-22 01:10:48 +00:00
David Anderson 197db0a3c5 *** empty log message ***
svn path=/trunk/boinc/; revision=6281
2005-06-02 07:04:29 +00:00
Bruce Allen e57e4cf5f8 Add credit info to host summary info on ops pages
svn path=/trunk/boinc/; revision=6207
2005-05-20 21:17:36 +00:00
Bruce Allen 85316e4cf1 Eliminate a few other undefined variables
svn path=/trunk/boinc/; revision=6127
2005-05-11 14:44:36 +00:00
Bruce Allen 3a2bb7661d Corrected undefined index/variable errors on ops pages.
svn path=/trunk/boinc/; revision=6126
2005-05-11 14:37:42 +00:00
Bruce Allen 0b62469e31 Strip slashes from clause
svn path=/trunk/boinc/; revision=6061
2005-05-06 18:35:55 +00:00
Bruce Allen 367d0daa8e Change php functions to correctly describe timezone field.
svn path=/trunk/boinc/; revision=6028
2005-05-05 05:06:16 +00:00
David Anderson a6d5713db1 *** empty log message ***
svn path=/trunk/boinc/; revision=5417
2005-02-13 06:13:33 +00:00
Bruce Allen 9eaf0ce89a Third time lucky....
svn path=/trunk/boinc/; revision=5355
2005-02-08 04:59:13 +00:00
Bruce Allen 1cb56d0f52 - Add new validate_state==TOO_LATE to ops pages summaries and result table
choice selection menus
    - Ops pages fixes from Christian Beers and David Hammer:
      * some rearrangement of index page
      * fix pass percentage by platform pages to show only non-deprecated apps
      * all platforms now appear in summary pages of failures

svn path=/trunk/boinc/; revision=5351
2005-02-08 03:33:35 +00:00
Bruce Allen 76b635f131 Fixes from Christian Beer for ops pages to approve profiles and
to errors in the previous 20/next 20 links when 'additional
clauses' is non-empty.

svn path=/trunk/boinc/; revision=5192
2005-01-24 13:17:49 +00:00
David Anderson e7d78df6ae *** empty log message ***
svn path=/trunk/boinc/; revision=5137
2005-01-18 22:47:08 +00:00
David Anderson 1e4571f833 *** empty log message ***
svn path=/trunk/boinc/; revision=5024
2005-01-07 23:20:51 +00:00
Bruce Allen 05cb2b383e Add another sorting option for results: mod_time
svn path=/trunk/boinc/; revision=4994
2005-01-04 22:43:49 +00:00
Bruce Allen 0704f0882d More improvements from Christian Beer:
My next request is to do a corresponding cleanup of the 'detailed' RESULT
page.  In particular, it should show ALL the fields at the bottom of this
page: ops/db_form.php?table=result&detail=low which are:

Some specific things that would be helpful:

(1) again, decode meaning, AND numeric value:
    Server state:      Over [X]
    Outcome:           Client error [X]
    File Delete state: Initial [0]
    where possible.

(2) It would be extremely useful to decode the exit status
    values into text, according to: lib/error_numbers.h:
    so if the error is one of these values, a human-readable string
    is also displayed.  If not one of these values, just the number.

(3) This might be too hard -- could you search in stderr out
    for things like <error_code>-108</error_code> and if found
    add a separate row with the human-readable decoding of this?

(4) If easy, link App version back to the app version table.
    If hard, don't bother.

(5) Fix bug on User Id line (currently has host_name_by_id(...))

svn path=/trunk/boinc/; revision=4974
2004-12-31 16:46:11 +00:00
Bruce Allen ecfcc4b22b Changes from Christian Beer with small fixes from Bruce. These show
results in some range of MOD time rather than some range of received
time, and display all fields associated with Workunits.

svn path=/trunk/boinc/; revision=4969
2004-12-31 00:40:10 +00:00
Rom Walton 6f0e37535a *** empty log message ***
svn path=/trunk/boinc/; revision=4963
2004-12-30 03:27:12 +00:00
Bruce Allen 81b2b59c8b Hyperlink to WUs. Thanks to Christian (DjangoFett@gmx.net)
svn path=/trunk/boinc/; revision=4960
2004-12-29 16:52:53 +00:00
David Anderson 35c7714ef2 *** empty log message ***
svn path=/trunk/boinc/; revision=4866
2004-12-16 20:52:27 +00:00
David Anderson c0c47595ac *** empty log message ***
svn path=/trunk/boinc/; revision=4840
2004-12-14 00:57:03 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
Bruce Allen 087ea6b791 Mislabeled row, added userid to table
svn path=/trunk/boinc/; revision=4723
2004-12-03 12:58:50 +00:00
Bruce Allen 6aa04b9cf2 Better formatting
svn path=/trunk/boinc/; revision=4717
2004-12-02 23:41:09 +00:00
Bruce Allen 79865e672c Added display of some unix times on query page: helpful in adding clauses
svn path=/trunk/boinc/; revision=4715
2004-12-02 23:30:25 +00:00
Bruce Allen 5dee0314d3 Fixed nasty bug in ops pages where top two WU error mask bits were
not being shown in WU summary/detail pages.

svn path=/trunk/boinc/; revision=4710
2004-12-02 22:53:16 +00:00
Bruce Allen 6f62a332fd Minor format changes
svn path=/trunk/boinc/; revision=4705
2004-12-02 18:46:21 +00:00
Bruce Allen b7207a0aa0 Show target nresults and transition time for workunits. Show deadine for results
if not yet received (color coded to indicate if in the future or past).

svn path=/trunk/boinc/; revision=4700
2004-12-02 13:18:07 +00:00
Bruce Allen ad64ab09d4 Show all four possible validate states on ops 'result summary' page.
svn path=/trunk/boinc/; revision=4686
2004-11-30 13:46:37 +00:00
Bruce Allen ee26ba1d6e WU delay bound in human-readable form,
svn path=/trunk/boinc/; revision=4680
2004-11-29 11:56:25 +00:00
Bruce Allen 14129d4ec8 - Admin database ops page: show all three file delete states, add additional
sort options to results page, better internal bug checking on state lists,
move result summary to top of WU detail page, show WU report deadline in
human-readable form, show cross_project_ID in user table.

svn path=/trunk/boinc/; revision=4679
2004-11-29 11:00:49 +00:00