Commit Graph

266 Commits

Author SHA1 Message Date
David Anderson d95da0f75c - Condor integration:
- change "query_batch" to "query_batches"; allow multiple batches
    - add "ping server" web RPC and GAHP function
    - change BoincDb::get() so that it generates XML error message if needed
2013-03-22 10:25:39 +01:00
David Anderson 47409201aa - web (ops): update profile page generator:
- to use current DB interface
    - to add "-d" option printing debug info
    - to show start time w/o getting header errors
    From Christian Beer.
2013-03-05 17:26:33 +01:00
David Anderson 46f06b9350 - Remote job submission stuff for Condor.
Submit and Query are more or less working.
2013-03-05 14:52:37 +01:00
David Anderson 58808d507e - web: use · instead of | as a separater 2013-03-04 17:19:39 +01:00
David Anderson ddf4551108 - web: add hook for "science info" link in result lists (for CAS@home) 2013-03-04 15:23:38 +01:00
David Anderson b2f9e30570 - scheduler: fix bug that cause NCI to be sent even when
client is not requesting work
- client: parse the <vbox_window> option in cc_config.xml


svn path=/trunk/boinc/; revision=26127
2012-09-19 23:21:04 +00:00
Wenjing Wu da2f59137e enable downloading one result file of a workuint, enable sandbox file downloading
svn path=/trunk/boinc/; revision=25743
2012-06-06 09:11:56 +00:00
David Anderson 69a595329d - scheduler: various fixes to plan_class_spec.cpp; from Bernd
- admin web: don't include the project's stylesheet,
    which may assume a layout not used by admin pages


svn path=/trunk/boinc/; revision=25731
2012-06-03 17:31:00 +00:00
David Anderson 138c8f5f7d - web: fix PHP warnings by calling date_default_timezone_set().
Set it to the timezone specified by the constant TIMEZONE
    (in project.inc) or "UTC" if none specified.
- web: fix bugs in submit.php

svn path=/trunk/boinc/; revision=25693
2012-05-18 17:57:14 +00:00
David Anderson e06a11174c - web: put <nobr> around username | log in
svn path=/trunk/boinc/; revision=25605
2012-04-27 06:10:08 +00:00
David Anderson d5347f0ff1 - web: allow a project to specify 2 stylesheets
svn path=/trunk/boinc/; revision=25398
2012-03-09 21:40:57 +00:00
David Anderson 7558829e4a - web: open BBCode instructions in new window (or tab).
Otherwise, on IE, you lose the text you already entered
    when you go back.


svn path=/trunk/boinc/; revision=25378
2012-03-04 20:37:10 +00:00
David Anderson d5bf5c46e3 - Manager: in Project Properties page,
show if a GPU type is excluded by configuration
- client: don't fetch work for a resource type if all instances
    of that type are excluded
- web: don't use filter_var(, FILTER_SANITIZE_STRING)
    to strip HTML tags from a string.
    This escapes singles quotes also.
    Use strip_tags() instead.


svn path=/trunk/boinc/; revision=25375
2012-03-04 04:58:41 +00:00
David Anderson bba4ce24ce - client: compute projects' disk share (based on resource share).
Report it (along with disk usage) in scheduler request messages.
    This will allow the scheduler to send file-delete commands
    if the project is using more than its share.
- client: add <disk_usage_debug> log flag
- create_work: add --help, show --command_line option


svn path=/trunk/boinc/; revision=24968
2012-01-02 05:53:42 +00:00
David Anderson 517a49e607 - web: add [sup] BBCode tag for superscripts.
- web: show BBCode info in the same page, rather than target=new.
    On Firefox, this opens a new tab but doesn't switch to it,
    which makes it look like nothing happened.


svn path=/trunk/boinc/; revision=24622
2011-11-20 17:26:32 +00:00
David Anderson a7e7da6bff - client: show error messages (as notices) when get an error
parsing cc_config.xml
- client: if an <exclude_cpu> element in cc_config.xml
    specifies a nonexistent app, show an error msg with
    a list of existing app names
- web: increase the default mem limit from 64MB to 256MB
    TODO: change user_hosts.php to show N at a time


svn path=/trunk/boinc/; revision=24593
2011-11-14 23:31:12 +00:00
David Anderson 690e18bbe3 - server: plan class names containing 'nvidia' or 'cuda'
are assumed to be for NVIDIA GPU apps;
    plan class names containing 'ati' are assumed to be for AMD GPU apps.
    Clauses for 'nvidia' were missing in a couple of places.


svn path=/trunk/boinc/; revision=24512
2011-11-03 05:26:19 +00:00
David Anderson c22f8f41b9 - client simulator: make the output more graphical
svn path=/trunk/boinc/; revision=24406
2011-10-17 06:13:51 +00:00
David Anderson b7f1aa0226 - client: fix a bug reported by Jacob Klein,
where work fetch didn't work right in the presence of
    multiple GPUs and <exclude_gpu> config options.
    For example: suppose:
        - you have 2 GPUs and 2 projects
        - Project A is excluded from GPU 1
        - you have lots of jobs for project A
    Then the client won't try to fetch jobs from project B.

    The problem had 2 parts:
    a) round-robin simulation wasn't taking GPU exclusions into account.
        In the above example, it would think that both GPUs had jobs.
        I fixed this by computing the # of GPUs from each project
        is excluded, and using this in the RR simulation.
    b) Once this was done, I needed to make the client
        request GPU jobs from project B rather than project A.
        I did this with following policy:
        If a project has excluded GPUs of a given type,
        and has a runnable job of that type,
        don't ask it for more work of that type.

    Notes:
    - the policy in b) is crude, and it means that work-buffer
        preferences are ignored in some cases.
    - neither a) nor b) takes into account app-level exclusions.

    I could fix both of these with a lot of work,
    but I'd rather move to a model in which dissimilar GPUs
    are modeled as different resources,
    which would remove the need for the <exclude_gpu> mechanism
    in the first place.

- web: remove extraneous ) at end of button tooltips


svn path=/trunk/boinc/; revision=24312
2011-10-01 16:23:28 +00:00
David Anderson 02a14b56af - web: don't addslashes() for button titles; this was left over
from when buttons were implemented in Javascript


svn path=/trunk/boinc/; revision=24277
2011-09-23 17:17:12 +00:00
David Anderson 1c054907c7 - web: fix some stuff broken by my checkin [24039].
- web: use &amp; instead of & in URLs (not complete)


svn path=/trunk/boinc/; revision=24064
2011-08-29 05:37:52 +00:00
David Anderson 1daa9c804e - web: fix to the above
- web: fix forum search


svn path=/trunk/boinc/; revision=24063
2011-08-28 21:27:52 +00:00
David Anderson 34efc9a85e - web: add a magic header string that supposedly will make
Recaptcha work on some IE variants.  WTF??


svn path=/trunk/boinc/; revision=24062
2011-08-28 05:15:16 +00:00
David Anderson 78a9c920c7 - web: more fixes from Christian Beer. Fixes #1129
svn path=/trunk/boinc/; revision=24050
2011-08-26 18:30:13 +00:00
David Anderson bc52bf3563 - remote job submission: bug fixes
svn path=/trunk/boinc/; revision=23943
2011-08-07 22:36:17 +00:00
David Anderson a01d8d8ccd - web: fix bug in next_url mechanism
svn path=/trunk/boinc/; revision=23912
2011-08-01 21:09:29 +00:00
David Anderson 5b159c6735 - remote job submission: bug fix and tweaks
- client: cc_config.xml: if <devnum> is omitted from a <exclude_gpu>,
    it means exclude all instances of that GPU type
- client: if all instances of a GPU type are excluded for a project,
    don't ask the project for jobs of that type


svn path=/trunk/boinc/; revision=23898
2011-07-29 00:07:20 +00:00
David Anderson 6e5acbbe60 - web: remote job submission:
- add fields to batch table, extend APIs accordingly
    - require that example web interface run on BOINC server
        (this makes many things easier;
        an actual remote interface would require a bit more work)


svn path=/trunk/boinc/; revision=23881
2011-07-27 06:20:48 +00:00
David Anderson 17e947f543 - web: remote job submission: implement abort and cleanup functions
svn path=/trunk/boinc/; revision=23880
2011-07-26 15:13:10 +00:00
David Anderson 538b55ae09 - web: add counts in task list pages
svn path=/trunk/boinc/; revision=23624
2011-06-01 04:29:43 +00:00
David Anderson 0bafa188b0 - web: don't show login stuff on server status page
svn path=/trunk/boinc/; revision=23505
2011-05-05 14:51:10 +00:00
David Anderson f45681c48b - vbox wrapper: add Makefile
- notices: fix bug where the URL in "friend request" notices
    doesn't work if you're not already logged in.


svn path=/trunk/boinc/; revision=23498
2011-05-04 15:37:09 +00:00
David Anderson 025b31e650 - scheduler: compile fix
- client: don't print "Insufficient GPU" messages
    unless <coproc_debug> is set


svn path=/trunk/boinc/; revision=23480
2011-04-28 22:13:13 +00:00
David Anderson 8757e07f4f - client: change the handling of account manager replies:
Old:
        If the AM sends us a project we're already attached to,
        and the authenticator is different,
        print an error message and don't change anything.
    Problem:
        If the AM is using weak authenticators,
        and the user has changed their password,
        the weak authenticator changes.
        In this case the AM will send the new weak auth,
        the client will ignore it,
        and all subsequent scheduler RPCs will fail
        until the user removes/adds the project.
    Solution:
        If the AM sends us a new auth for a project, use it.
    Note:
        From the time the password is changed on the project
        to the next AM RPC,
        the client will have a bad weak auth and scheduler RPCs will fail.
        That's OK.

client/
    acct_mgr.cpp

svn path=/trunk/boinc/; revision=23479
2011-04-28 22:10:23 +00:00
David Anderson d4ea250185 - web: eliminate double calls to page_head()
svn path=/trunk/boinc/; revision=23460
2011-04-26 19:04:11 +00:00
David Anderson ada35ec2ce - web: fix infinite recursion when project is down
svn path=/trunk/boinc/; revision=23457
2011-04-26 17:34:07 +00:00
David Anderson 48368624c4 - web: tweak
svn path=/trunk/boinc/; revision=23399
2011-04-20 16:06:35 +00:00
David Anderson 298b06c6f7 - web: don't show "log in" link on login or create account pages
svn path=/trunk/boinc/; revision=23388
2011-04-20 15:30:35 +00:00
David Anderson a3cccc85e6 - web: show "logged in as" info on every page;
remove funky "log out" link from user page
- web: go to home page on logout,
    not dorky "you are logged out" page


svn path=/trunk/boinc/; revision=23387
2011-04-20 14:50:50 +00:00
David Anderson e3b2c06823 - user web: fix venue change
svn path=/trunk/boinc/; revision=23024
2011-02-13 19:00:08 +00:00
David Anderson 3e2e5f2fdc - user web: CSS cleanup.
Use classes instead of IDs.
    white.css and black.css are cleaned up; style2.css needs work


svn path=/trunk/boinc/; revision=23018
2011-02-10 22:45:39 +00:00
David Anderson d27af6214d - user web: finish dealing with get args spam
svn path=/trunk/boinc/; revision=23010
2011-02-09 22:11:34 +00:00
David Anderson fc5ee59787 - user web: apparently if you put links of the form
http://setiathome.berkeley.edu/help.php?key=Viagra.uk
    all over the web, Google will list "Viagra.uk" in your site outline (why??).
    Preliminary checkin for dealing with this.

svn path=/trunk/boinc/; revision=23008
2011-02-09 19:10:10 +00:00
David Anderson 91c251c103 - user web: add "delete account" feature.
This allows a user to delete all traces of themselves from a project.
    Namely:
    - clear fields of user record: email_addr, authenticator,
        name, country, postal_code
        Note: record is not deleted
    - clear the domain_name and last_ip_addr fields of hosts
        Note: records are not deleted
    - quit team
    - delete private messages sent and received
    - delete forum posts, subscriptions, and forum prefs
    - delete profile and associated images
- server: compile fix


svn path=/trunk/boinc/; revision=23006
2011-02-08 21:38:16 +00:00
David Anderson e87f289544 - fix formatting in PHP code
svn path=/trunk/boinc/; revision=22623
2010-11-04 18:20:57 +00:00
David Anderson f4345f9dc4 - user web: various enhancements and fixes from Simek.
Fixes #1020

svn path=/trunk/boinc/; revision=22620
2010-11-03 21:48:39 +00:00
David Anderson 56ff7cf37f - client simulator: get it to work for GPU simulation
- web: small fixes to mollify skipfish

svn path=/trunk/boinc/; revision=22485
2010-10-08 23:18:12 +00:00
David Anderson ec4e883ebd - web: fix bug in "email passwd" page
svn path=/trunk/boinc/; revision=22445
2010-10-04 23:48:01 +00:00
David Anderson d1e66f0427 - web: appearance tweaks from Simek; fixes #1012
svn path=/trunk/boinc/; revision=22394
2010-09-20 23:59:25 +00:00
David Anderson 884a53ff91 svn path=/trunk/boinc/; revision=22378 2010-09-16 18:55:48 +00:00