Commit Graph

1549 Commits

Author SHA1 Message Date
David Anderson b162aa3d2b - user web: add "posts per page" pref for message boards;
get rid of existing funky page-limit prefs


svn path=/trunk/boinc/; revision=25859
2012-07-11 05:27:31 +00:00
David Anderson f3c8ab83e9 - web: show job status correctly for new exit codes
svn path=/trunk/boinc/; revision=25858
2012-07-10 20:21:12 +00:00
David Anderson cc642f7947 - web: fix BOINCStats link for host details
svn path=/trunk/boinc/; revision=25780
2012-06-21 17:03:47 +00:00
Wenjing Wu 1b73c9864b job submit: get batch output file size and disable direct downloading of output files if it exceeds 100MB
svn path=/trunk/boinc/; revision=25745
2012-06-06 10:19:55 +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
Wenjing Wu 4fdfe8d4dd submit.php: enable downloading result files of individual Workunit
svn path=/trunk/boinc/; revision=25740
2012-06-06 05:35:39 +00:00
David Anderson b05f02e5aa - small code cleanup
svn path=/trunk/boinc/; revision=25737
2012-06-05 20:13:19 +00:00
Wenjing Wu 897527d470 sandbox: prevent user from deleting files being used by processing batches
svn path=/trunk/boinc/; revision=25736
2012-06-05 11:14:46 +00:00
Wenjing Wu 0ada75fbe7 sandbox,prevent from uploading files with the same content
svn path=/trunk/boinc/; revision=25735
2012-06-05 08:49:41 +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 4ee93b2da2 - fix tools/manage_privileges script
svn path=/trunk/boinc/; revision=25724
2012-05-29 05:48:25 +00:00
David Anderson 389a95a6a7 svn path=/trunk/boinc/; revision=25719 2012-05-27 06:13:45 +00:00
David Anderson e82d605554 - server: make fix_venue.php work faster
svn path=/trunk/boinc/; revision=25712
2012-05-25 20:39:37 +00:00
David Anderson 2db88e20a8 - web: add DbConn::max() function
svn path=/trunk/boinc/; revision=25711
2012-05-25 18:44:56 +00:00
David Anderson 1aea1fb0f3 - client: show <vbox_window> option in log,
and give warning if include this while in sandbox mode
- web: update URLs for BOINCstats

svn path=/trunk/boinc/; revision=25697
2012-05-18 22:13:36 +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 245aa70cf9 - web: use gmdate() instead date() to avoid time zone warning
svn path=/trunk/boinc/; revision=25673
2012-05-12 15:13:43 +00:00
David Anderson 3b363f9a87 - web RPC: include rpc_time in XML host description
- client: if acct mgr sends us an account with no authenticator,
    show an error message instead of trying to attach


svn path=/trunk/boinc/; revision=25608
2012-04-30 18:46:50 +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 c34093e374 - web: don't show account keys on account page;
rewrite the page explaining and showing account keys.
- client: remove <std_debug> log flag
- client: remove <zero_debts> config option


svn path=/trunk/boinc/; revision=25581
2012-04-19 07:36:47 +00:00
Wenjing Wu dfc84b1916 - add script for canceling jobs
- CAS@home stuff


svn path=/trunk/boinc/; revision=25550
2012-04-12 12:20:16 +00:00
David Anderson 759c23ed27 - server: create a harness for testing validator code.
If you link your functions (init_result(), compare_results(),
    cleanup_result()) with validate_test.cpp,
    you'll get a program that you can run as
        validate_test file1 file2
    and it will compare the two files
    (this works only for validators that expect 1 file per result).

    I added a makefile, sched/makefile_validator_test,
    that you can use for this.
- server: shuffle code so that the above doesn't need to
    link MySQL libraries
- client: if we fetch a master file and it contains no scheduler URLs,
    show a message of class INTERNAL_ERROR
- client/scheduler: make CUDA_DEVICE_PROP.totalGlobalMem a double,
    and remove dtotalGlobalMem.
    Although NVIDIA reports RAM size as a size_t,
    there's no reason to store it as an integer after that.


svn path=/trunk/boinc/; revision=25542
2012-04-10 00:32:35 +00:00
Rytis Slatkevičius 2bb7957386 Fix previous commit
svn path=/trunk/boinc/; revision=25486
2012-03-24 14:55:58 +00:00
David Anderson 24761958fd - client/server: estimate FLOPS for NVIDIA GPUs with
compute capability 3.x.
    Not sure if the parameters are right
    (128 cores/proc, 2 flops/clock)
    but they're better than nothing.
- web: don't allow user names that have leading or trailing white space,
    or HTML tags, or are empty


svn path=/trunk/boinc/; revision=25485
2012-03-24 06:31:03 +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
Wenjing Wu 048b43b544 wuwj sandbox file selection filter
svn path=/trunk/boinc/; revision=25363
2012-03-02 06:12:36 +00:00
David Anderson f18ffd6fe7 - VDA: add some log messages
- scheduler: add VDA
- client, web: change default prefs to min_buf=.1 days, max_buf=.5 days
- scheduler: app plan function for vbox requires 7.0+ client


svn path=/trunk/boinc/; revision=25351
2012-02-28 06:57:28 +00:00
David Anderson 14199c7b97 - web: change wording of buffer-size prefs
svn path=/trunk/boinc/; revision=25272
2012-02-16 16:52:07 +00:00
David Anderson 58e26b9b4b - web: in user search, show most recent rather than oldest users
- web: don't show URL in account page if expavg_credit < 1.
    This discourages a type of spam.


svn path=/trunk/boinc/; revision=25267
2012-02-15 19:25:41 +00:00
David Anderson ff7fcb293a - admin web: fix error when showing unsent results
svn path=/trunk/boinc/; revision=25260
2012-02-14 21:12:57 +00:00
David Anderson ddd98cf8ec - admin web: fixes and clarifications to failure summaries
svn path=/trunk/boinc/; revision=25171
2012-01-31 07:21:42 +00:00
David Anderson 9285bc3961 - admin web: improvements to the pages for investigating result failures
(though considerable funkiness remains)


svn path=/trunk/boinc/; revision=25170
2012-01-30 23:57:18 +00:00
David Anderson b0e3fadef1 - manager: in Disk View, try to make colors more distinct.
In addition to varying the hue,
    cycle through 3 different luminance values (.5, .7, .9)
- web: update the wording of buffer-size preferences


svn path=/trunk/boinc/; revision=25162
2012-01-27 19:24:20 +00:00
David Anderson 91317aa576 - WAP interface to credit info: return correct timestamp,
and don't bother with caching.


svn path=/trunk/boinc/; revision=25101
2012-01-18 20:59:24 +00:00
David Anderson d4a91e5877 - LAMMPS job submission: improve completion estimate
svn path=/trunk/boinc/; revision=25033
2012-01-12 08:01:07 +00:00
David Anderson e05e872132 - sandbox stuff
svn path=/trunk/boinc/; revision=24985
2012-01-03 09:30:43 +00:00
David Anderson 33b607dab1 - upgrade script:
- prompt user for DB user/passwd if DB updates needed
    - error out immediately if any DB update fails
    Fixes #1169, #1170
- create_work: check for duplicate <file_info>s in input template
    NOTE: the input template syntax is pretty clunky


svn path=/trunk/boinc/; revision=24969
2012-01-02 07:33:08 +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
Rom Walton 474401c51d - OPS: Update error code translation table
html/inc
        result.inc

svn path=/trunk/boinc/; revision=24964
2012-01-01 23:54:58 +00:00
David Anderson 8b4df3817e svn path=/trunk/boinc/; revision=24961 2012-01-01 03:35:29 +00:00
David Anderson 2b4e6c2f65 - web: new page to manage job submission
svn path=/trunk/boinc/; revision=24959
2011-12-31 08:57:53 +00:00
David Anderson c201b30561 - web: implement file sandbox for remote job submission
svn path=/trunk/boinc/; revision=24957
2011-12-31 04:33:11 +00:00
David Anderson 0f46b80985 - scheduler: record Vbox version correctly in host records
- remote job submission: partial checkin for new file sandbox stuff


svn path=/trunk/boinc/; revision=24937
2011-12-29 06:30:18 +00:00
David Anderson eaddebab61 - web: more translatability. From Uwe Becker.
svn path=/trunk/boinc/; revision=24886
2011-12-24 15:37:20 +00:00
Rom Walton 3aa01ec513 - Web: Don't display VirtualBox version number information in the coproc field while
displaying host information.
        
    html/inc/
        host.inc

svn path=/trunk/boinc/; revision=24882
2011-12-24 02:01:54 +00:00
David Anderson 70bbd5673c - web: combine ops and regular functions for displaying
various result attributes as strings


svn path=/trunk/boinc/; revision=24857
2011-12-21 18:29:11 +00:00
David Anderson 125b825846 - web: clean up the logic for when to allow 2 hosts to be merged
svn path=/trunk/boinc/; revision=24819
2011-12-16 19:40:22 +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
Rom Walton 687195e7f0 Quick Updates
svn path=/trunk/boinc/; revision=24510
2011-11-03 02:35:04 +00:00
David Anderson 6297bdbc77 - web: typo in forum RSS from Daniel L G; fixes #1147
- client: message tweak


svn path=/trunk/boinc/; revision=24483
2011-10-25 17:22:18 +00:00
David Anderson 6c0bae7fb2 - web: forum RSS shouldn't filter sticky threads.
Not sure why that was in there.

svn path=/trunk/boinc/; revision=24466
2011-10-24 04:24:44 +00:00
David Anderson 53af2ae778 - client/API: pass bool using_sandbox in APP_INIT_DATA;
says whether the client is using account-based sandboxing.
    Needed by vboxwrapper.
- web: don't show authenticator in Your Account page.
    The problem with authenticators is that if a bad guys gets yours,
    they can log in to your account even if you change your password.
    Eventually we should not use them at all
    (i.e. in cookies and sent to client).
- make_project: copy python stuff (e.g. bin/start) for web-only projects;
    generate appropriate project.readme file for web-only projects.


svn path=/trunk/boinc/; revision=24447
2011-10-21 06:58:35 +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 836e8aacf7 - scheduler: in cuda_check(), ati_check() and opencl_check()
(in sched_customize.cpp)
    the flops_scale argument is intended to express the
    GPU efficiency (actual/peak).
    Pass appropriate values.


svn path=/trunk/boinc/; revision=24405
2011-10-16 06:04:13 +00:00
David Anderson 9b45adb7cc - web: typo fix
svn path=/trunk/boinc/; revision=24379
2011-10-11 18:58:54 +00:00
David Anderson 0793e66ff7 - client and user web: show NVIDIA driver version and CUDA version
as, e.g., 275.33 instead of 27533


svn path=/trunk/boinc/; revision=24378
2011-10-11 18:57:49 +00:00
David Anderson cb3cdae1a5 - client/server: add a new result state RESULT_UPLOAD_FAILED
for when the job completed successfully but
    one or more output files had permanent upload failures.
    Show this state in web interfaces.
- sample_work_generator: check return value of count_unsent_results(),
    so that we don't generate infinite work if there's a DB problem
- web: RSS feed shows news items from last 90 days, rather than 14


svn path=/trunk/boinc/; revision=24377
2011-10-11 17:41:10 +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 d886dfcc37 - web: when showing a user's posts, don't show the ones
in hidden threads
- web: in showing the context of a post, link the thread also.


svn path=/trunk/boinc/; revision=24298
2011-09-27 07:35:26 +00:00
David Anderson b9eda96e8a web: message tweak
svn path=/trunk/boinc/; revision=24278
2011-09-23 17:18:33 +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 9d2ba11e09 - back end: extend the access control system for remote job submission
and other operations.
    You can now designate a user as "manager" for a particular app.
    They can then:
    - control job-submit permissions for that app
    - deprecate/undeprecate versions of the app.
    - abort jobs for that app

    You can also designate a user a manage for the project.
    They can then edit permissions and quotas,
    as well as performing the app-specific functions for all apps.

    This is described here:
    http://boinc.berkeley.edu/trac/wiki/MultiUser#Accesscontrol

    This required some changes to the DB schema.


svn path=/trunk/boinc/; revision=24250
2011-09-21 21:26:00 +00:00
David Anderson 61082ca10a - web: suppress warning on cache unlink
svn path=/trunk/boinc/; revision=24152
2011-09-09 16:05:46 +00:00
David Anderson 90c84d2c7b - web: fix PHP warning
svn path=/trunk/boinc/; revision=24145
2011-09-08 19:10:10 +00:00
David Anderson 7c81d72378 - web: fix warnings in forum pages
- scheduler: when using elapsed time stats to predict runtime,
    cap the estimated FLOPS at twice the peak FLOPS;
    otherwise, if a host has received a lot of very short jobs
    recently, it will get a too-high FLOPS estimate and
    will exceed the rsc_fpops_bound limit.


svn path=/trunk/boinc/; revision=24128
2011-09-05 17:29:53 +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 595df001cc - web: fix glitch in forum next/prev links
svn path=/trunk/boinc/; revision=24060
2011-08-28 00:31:40 +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 49205acfd9 - job submission: fix bug where parameters specified in the
input template (e.g., delay bound) were ignored
- web: fix PHP warning


svn path=/trunk/boinc/; revision=24039
2011-08-25 05:08:47 +00:00
David Anderson 12f7c6e04e - web: when sending emails to other users, don't translate anything
(since they don't necessarily speak our language)


svn path=/trunk/boinc/; revision=23948
2011-08-08 06:12:17 +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 69912085b9 - web: send user a private message when
- one of their posts is moderated
    - a banishment vote starts or completes.
    This is needed in cases where the user can't or doesn't
    read email to their account's address.
    The "from" address of the PM is that of the user, not the moderator.

svn path=/trunk/boinc/; revision=23941
2011-08-06 07:11:17 +00:00
David Anderson f3b9286d78 - client: fix bug in get_descendants(),
which prevented the client from cleaning up
    subprocesses of misbehaving multiprocess apps.
- remote job submission system:
    assign physical names to input files (based on their MD5)
    rather than having the user provide physical names
- VM apps: eliminate vbox64 plan class.  Only vbox.


svn path=/trunk/boinc/; revision=23923
2011-08-03 16:45:00 +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 966c7d46b4 - web: fix typo that prevented users from seeing their own hidden posts
svn path=/trunk/boinc/; revision=23906
2011-07-31 05:09:08 +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 83965db576 - web: more remote job submission code. Not finished.
svn path=/trunk/boinc/; revision=23871
2011-07-25 21:45:53 +00:00
David Anderson 5ad821df21 - server: some remote job submission code. Not finished.
svn path=/trunk/boinc/; revision=23868
2011-07-22 22:47:41 +00:00
David Anderson 9f27824fba - admin web: improve the FLOPs estimation tool so that
it works for GPU versions too


svn path=/trunk/boinc/; revision=23840
2011-07-13 21:50:48 +00:00
David Anderson e521a112a9 - admin web: finish page for resetting app statistics
svn path=/trunk/boinc/; revision=23836
2011-07-12 18:03:20 +00:00
David Anderson 3d02f9f361 - admin web: add page for showing app and app version details
svn path=/trunk/boinc/; revision=23835
2011-07-12 05:19:15 +00:00
David Anderson da74e5caf2 - back end: strip <output_template> tags from output templates
- web: main RSS feed should include all news items, even non-notices


svn path=/trunk/boinc/; revision=23783
2011-06-29 22:26:45 +00:00
David Anderson 8a9605e48c - web: add a web-service interface for remotely submitting, querying
and controlling batches of jobs
- web: add an administrative interface for controlling
    user permissions for submitting jobs
- web: add an interface where users can view and control
    their submitted jobs
See: http://boinc.berkeley.edu/trac/wiki/RemoteJobs
This is at a functional but rough stage.


svn path=/trunk/boinc/; revision=23762
2011-06-21 22:56:15 +00:00
David Anderson 61cbe110ef - web: when creating an item in News forum,
show "Export as Notice?" checkbox, and default to off.


svn path=/trunk/boinc/; revision=23721
2011-06-14 05:42:52 +00:00
David Anderson bc18d1dd74 svn path=/trunk/boinc/; revision=23627 2011-06-01 05:08:14 +00:00
David Anderson 466fe8aa81 svn path=/trunk/boinc/; revision=23626 2011-06-01 04:57:04 +00:00
David Anderson 09cb4daeda svn path=/trunk/boinc/; revision=23625 2011-06-01 04:53:16 +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 9665363a2e - Bossa tweaks
svn path=/trunk/boinc/; revision=23617
2011-05-27 19:05:23 +00:00
David Anderson e4f104f917 - Change the way update_versions works, and reimplement it in PHP.
Problems with the old version:
    - Lots of info encoded in file and directory names: messy kludge
    - The convention that directory name == main program name
        created a bad situation when using the wrapper:
        if you made a new version of your application,
        you were forced make a new version of the wrapper
        just so it could have a different name.
    The new version is described here:
    http://boinc.berkeley.edu/trac/wiki/AppVersionNew
- Remove some Python code that suppored the old version
- client: some fixes to dir_size() that might fox
    a buffer overflow when using symbolic links


svn path=/trunk/boinc/; revision=23525
2011-05-12 04:11:40 +00:00
David Anderson d2b3c97ea7 - web RPC bug fix
svn path=/trunk/boinc/; revision=23508
2011-05-05 16:12:12 +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 a225fe12ba - user web and notices: fix message describing friend request
svn path=/trunk/boinc/; revision=23378
2011-04-18 23:41:53 +00:00
David Anderson f56051a182 - user web: use special icon for hidden threads (from Jord)
svn path=/trunk/boinc/; revision=23361
2011-04-11 06:46:22 +00:00
David Anderson e2b4d48ab4 - user web: fix "delete profile" function
svn path=/trunk/boinc/; revision=23359
2011-04-10 15:23:42 +00:00
David Anderson 3fc341fc60 - user web: fix numeric field sanitization in prefs. Fixes #1087.
- client: if PREFS::max_ncpus_pct is 0, don't set it to 100;
    doing so prevents PREFS::max_ncpus from having any effect.


svn path=/trunk/boinc/; revision=23355
2011-04-08 00:14:01 +00:00
David Anderson 02e7aa6678 - client and API: pass "network suspended" flag from client to app;
make it available as part of BOINC_STATUS


svn path=/trunk/boinc/; revision=23243
2011-03-20 07:04:32 +00:00
Rytis Slatkevičius c819d552c0 user web: change remaining occurrences of fullpage caching to object cache. start_cache() and end_cache() are now deprecated.
svn path=/trunk/boinc/; revision=23230
2011-03-13 20:05:25 +00:00
Rytis Slatkevičius b11b56ecbb user web: implement Memcache as an option for caching (defaults to in-file cache). Can be enabled by installing php5-memcached package and defining MEMCACHE_SERVERS in project.inc
svn path=/trunk/boinc/; revision=23228
2011-03-12 15:36:58 +00:00
David Anderson 0bc1a36451 - user web: add a feature allowing project admins to control
whether news items are exported as notices.
    The creator of a news item is shown a "Don't export" or "Export"
    button on the thread page.
    By default, news items are exported.


svn path=/trunk/boinc/; revision=23119
2011-02-28 19:02:59 +00:00
David Anderson eaee1ddba6 - user web: fix wrong user ID
svn path=/trunk/boinc/; revision=23117
2011-02-26 23:10:06 +00:00
David Anderson f0ef6140ef - user web:
- in friend request notification, link to user page
    - in user page, show ID
    - remove "Account data for " in page title


svn path=/trunk/boinc/; revision=23112
2011-02-25 19:10:36 +00:00
David Anderson 226d70d174 svn path=/trunk/boinc/; revision=23033 2011-02-14 21:01:37 +00:00
David Anderson 7b98cccc37 - user web: various fixes
svn path=/trunk/boinc/; revision=23030
2011-02-14 19:49:30 +00:00
David Anderson c9cf1f85a2 - user web: fix [img] BBcode problem
svn path=/trunk/boinc/; revision=23029
2011-02-14 19:06:42 +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 58c5c0c5b3 - user web: disable "delete account" feature
svn path=/trunk/boinc/; revision=23022
2011-02-11 18:18:17 +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 25493bff27 - user web: fix "nowrap" post display
svn path=/trunk/boinc/; revision=23017
2011-02-10 19:42:52 +00:00
David Anderson 9552bd3670 - user web: appearance tweaks
svn path=/trunk/boinc/; revision=23013
2011-02-09 23:42:05 +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 ad77989928 - user web: make all forum tables full-width
svn path=/trunk/boinc/; revision=23009
2011-02-09 21:45:00 +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 8145cb86b0 - create_work: add some debugging printfs for Kamran
svn path=/trunk/boinc/; revision=22993
2011-02-03 23:27:30 +00:00
David Anderson 229b1373dc - client: make "wrong URL" message not be a notice
- web: fix caching problem when PHP not installed as Apache module

svn path=/trunk/boinc/; revision=22968
2011-02-01 04:43:19 +00:00
David Anderson 4dbe2c8fdf - new script sched/transitioner_catchup.php: transitions all WUs
that need it, then exits.
    For big projects coming up after an outage, run this before bin/start
    to minimize startup overload
- tweaks to PHP libraries to allow them to be used
    by scripts anywhere in the dir hierarchy


svn path=/trunk/boinc/; revision=22959
2011-01-29 06:28:10 +00:00
David Anderson 43a3036101 - back end: allow the specification of a read-only DB replica
(in config.xml) to include DB name, user, and password.
- back end: add read-only replica info to SCHED_CONFIG,
    so that C++ programs can use the replica
    (currently only PHP code can use it)
- db_dump: use the read-only DB replica if it exists.


svn path=/trunk/boinc/; revision=22958
2011-01-28 22:03:46 +00:00
David Anderson da19f328e9 - web: tweaks so that BOINC-Wide Teams site can warn people if
their email address is not validated

svn path=/trunk/boinc/; revision=22946
2011-01-26 22:43:23 +00:00
David Anderson 5bbafef4b0 - fix some bad file permissions
- delist defunct stats site


svn path=/trunk/boinc/; revision=22859
2011-01-02 03:07:14 +00:00
Rytis Slatkevičius 1e55d118e9 user web: change forum RSS encoding from ISO-8859-1 to UTF-8
svn path=/trunk/boinc/; revision=22854
2010-12-24 19:35:08 +00:00
Rytis Slatkevičius e0bcf3805f user web: add some CSS classes for easier styling
svn path=/trunk/boinc/; revision=22850
2010-12-21 17:15:57 +00:00
David Anderson bbaff5d2da - web: remove DBNAME hack, which allowed users to see the DB name
(not a big deal, but bad form).
    Fixes #1028

svn path=/trunk/boinc/; revision=22748
2010-11-25 05:54:09 +00:00
David Anderson 723c764963 - server: add scripts to submit jobs for demo application
svn path=/trunk/boinc/; revision=22676
2010-11-10 22:54:56 +00:00
David Anderson e1e55f5db6 - web: add an option project-specific pref for
"accelerate GPU tasks by dedicating a CPU to each one".
    Enable this by putting
        $accelerate_gpu_apps_pref = true;
    in html/project/project.inc

svn path=/trunk/boinc/; revision=22657
2010-11-09 05:10:56 +00:00
David Anderson 0630ffa054 - web: fix "seperator" spelling
svn path=/trunk/boinc/; revision=22650
2010-11-08 17:56:39 +00:00
David Anderson 4d79a87eb6 - web: show prefs bools as checkboxes rather than radio yes/no
svn path=/trunk/boinc/; revision=22634
2010-11-08 16:44:57 +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 f484e732cd - web: fix next-URL mechanism for admin login (from Michael Tarantino)
svn path=/trunk/boinc/; revision=22604
2010-10-29 17:49:29 +00:00
David Anderson 020a4d4ed1 - user web: in RSS item for private message, don't say anything
about the message (sender, title, or content)
- user web: don't send an RSS item for a thread with no posts (i.e., hidden)
- client simulator: support global_prefs_override.xml

svn path=/trunk/boinc/; revision=22545
2010-10-17 20:12:14 +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 f3a382154b - web: fix XSS vulnerability
svn path=/trunk/boinc/; revision=22470
2010-10-07 17:11:15 +00:00
David Anderson f6e9a3c0c1 - fix a few absolutely last messages with "attach", "detach"
svn path=/trunk/boinc/; revision=22462
2010-10-06 20:13:34 +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 1c4422985f - client: add <no_info_fetch> config option and --no_info_fetch
cmdline arg.
    Suppresses the fetch of project list and of current client version #.
    Use when running on grid nodes.
- debugging on client simulator.  Not done yet.

svn path=/trunk/boinc/; revision=22414
2010-09-27 20:34:47 +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 82c80f73be - web: bug fix
svn path=/trunk/boinc/; revision=22379
2010-09-16 19:01:14 +00:00
David Anderson 884a53ff91 svn path=/trunk/boinc/; revision=22378 2010-09-16 18:55:48 +00:00
David Anderson 1c953745ed - web: don't call filter_var() if it doesn't exist (PHP version < 5.2)
svn path=/trunk/boinc/; revision=22377
2010-09-16 18:53:39 +00:00
David Anderson d3e4c729e5 - web: don't require that SECURE_URL_BASE be set,
or that it end with a /

svn path=/trunk/boinc/; revision=22366
2010-09-15 23:47:49 +00:00
David Anderson 3de5a1d410 - client: remove spurious msgs about deleting files while in use
- scheduler: add log messages related to max jobs in progress

svn path=/trunk/boinc/; revision=22342
2010-09-13 21:20:30 +00:00
Rytis Slatkevičius b812b28e5b Quick fix of result filtering by app
svn path=/trunk/boinc/; revision=22340
2010-09-13 16:12:00 +00:00
Rytis Slatkevičius 4c1dfc6701 user web: filter results by application.
svn path=/trunk/boinc/; revision=22339
2010-09-12 09:43:20 +00:00
David Anderson 7f0d38ae0c - web: make strings translatable. From Simek, fixes #1007
svn path=/trunk/boinc/; revision=22319
2010-09-07 18:20:29 +00:00
David Anderson 9ed4f892b8 - web: make some strings translatable, fixes #1006, from Simek
svn path=/trunk/boinc/; revision=22316
2010-09-06 13:31:18 +00:00
David Anderson d6315c7112 - fix various XSS vulnerabilities reported by the
Acunetix Web Vulnerability Scanner (free edition)


svn path=/trunk/boinc/; revision=22315
2010-09-04 22:13:27 +00:00
David Anderson 98d44b0120 - web: finish the above
svn path=/trunk/boinc/; revision=22313
2010-09-02 19:29:28 +00:00
David Anderson acb8d8ed0c - web: if SECURE_URL_BASE is defined in html/project/project.inc,
use it a prefix for forms that include passwords,
    namely login_form.php and create_account.php.
    Typically SECURE_URL_BASE would start with "https://".


svn path=/trunk/boinc/; revision=22307
2010-08-29 10:24:39 +00:00
David Anderson 5d05a8d49e - web: check the "next URL" passed to login and account
creation scripts to ensure they refer only to local pages
    (i.e. they don't contain "://").
    This prevents cross-site scripting attacks (I think).

svn path=/trunk/boinc/; revision=22300
2010-08-28 00:06:29 +00:00
David Anderson 0894974aa7 Update Translations
svn path=/trunk/boinc/; revision=22275
2010-08-20 19:04:09 +00:00
David Anderson 7ca6eeecd2 - web: remove align=right on BBcode images
svn path=/trunk/boinc/; revision=22228
2010-08-14 01:49:08 +00:00
David Anderson b2064d0cd0 - admin: add script for deleting results with no workunit.
There were ~1,400 of these on SETI@home,
    presumably because of a bug at some point in the past.

svn path=/trunk/boinc/; revision=22197
2010-08-11 18:52:11 +00:00
David Anderson ede7c8cea9 - web: right-align bbcode images
- API: warning fix

svn path=/trunk/boinc/; revision=22160
2010-08-07 03:33:25 +00:00
David Anderson 8677a50473 svn path=/trunk/boinc/; revision=22102 2010-08-03 03:56:13 +00:00
David Anderson c0776ea188 - user web: put RSS item titles in CDATA
- sched: get rid of unused config items
- manager: msg tweak

svn path=/trunk/boinc/; revision=22045
2010-07-22 22:57:15 +00:00
David Anderson fe156c945c - user web: translation fixes
svn path=/trunk/boinc/; revision=21938
2010-07-14 19:20:31 +00:00
David Anderson b1851ce02c - user web: PHP 5.3 compatibility fix, from Nicolas. Fixes #787
svn path=/trunk/boinc/; revision=21878
2010-07-06 23:31:26 +00:00
David Anderson 4b48120b05 - user web: show app name in anonymous platform case on task list
svn path=/trunk/boinc/; revision=21846
2010-06-30 18:37:39 +00:00
Rytis Slatkevičius 6c5fc14a23 user web: flag to send less information on team member XML requests (from Willy de Zutter).
svn path=/trunk/boinc/; revision=21780
2010-06-20 08:35:36 +00:00
David Anderson 30d7ced4ca - user web: code cleanup in prefs.inc
svn path=/trunk/boinc/; revision=21766
2010-06-17 19:11:00 +00:00
David Anderson 5978cd0c3b - user web: don't show claimed credit
svn path=/trunk/boinc/; revision=21761
2010-06-16 23:52:28 +00:00
David Anderson 2eef482a12 - API: fix bug that caused parallel apps to get compute error
when they were suspended without "leave in memory" pref
- user web: if in-progress result has credit, show it; fixes #998

svn path=/trunk/boinc/; revision=21748
2010-06-14 21:24:07 +00:00
David Anderson 4147249de2 - server: delete old credit stuff
- user web: show host link in user result list.  Fixes #999


svn path=/trunk/boinc/; revision=21735
2010-06-12 22:08:15 +00:00
David Anderson 7802d3f253 - server: change credit constant from 100 to 200.
Data from S@h beta (running for a month or so)
    suggests that this will almost exactly match the
    average credit granted by S@h's old system
    (which, in theory, is the reference for other projects)

svn path=/trunk/boinc/; revision=21727
2010-06-10 18:05:42 +00:00
David Anderson 875397d1b0 - admin web: add start/end times to team import log output
svn path=/trunk/boinc/; revision=21693
2010-06-04 19:20:19 +00:00
David Anderson e80e54fd4d - user web: add "Application info" link in host page,
linking to new page showing host_app_versions for this host
- scheduler: message tweaks

svn path=/trunk/boinc/; revision=21690
2010-06-03 20:26:02 +00:00
David Anderson 9e556fd9fc - user web: fix forum RSS feed
svn path=/trunk/boinc/; revision=21678
2010-06-02 04:20:48 +00:00
Rytis Slatkevičius d07da32b55 Fixed line order in the last patch
svn path=/trunk/boinc/; revision=21669
2010-06-01 18:40:17 +00:00
Rytis Slatkevičius a3b27efb6f user web: do not wait for cross-project stats for more than 3 seconds as it slows down "Your account" page load in case stats server is slow to respond.
svn path=/trunk/boinc/; revision=21667
2010-06-01 14:07:53 +00:00
Rytis Slatkevičius c2ffa60527 user web: fix boolean type preferences for non-english languages where PREF_BOOL is used
svn path=/trunk/boinc/; revision=21553
2010-05-17 16:13:23 +00:00
Rytis Slatkevičius 328e3ad2b4 user web: use CDATA section for title in the RSS feed
svn path=/trunk/boinc/; revision=21474
2010-05-12 15:33:56 +00:00
Rytis Slatkevičius a002ba4845 - user web: use full output transform for frontpage news posts (to handle newlines and other related stuff).
- user web: add a warning in case admin hasn't changed show_news() call to the new format.

svn path=/trunk/boinc/; revision=21459
2010-05-11 19:25:13 +00:00
Rytis Slatkevičius ea8fd996a0 user web: fix PHP warning when netsoft stats are down
svn path=/trunk/boinc/; revision=21422
2010-05-09 08:42:51 +00:00
David Anderson 5fe3ea66a7 - user web: fix PHP warning
- admin web: add tool for debugging credit


svn path=/trunk/boinc/; revision=21417
2010-05-07 21:46:04 +00:00
David Anderson 65679fcfca - user web: in BBCode->HTML conversion there was a limit of
20 tags converted.
    I don't think a limit is needed.
    In any case, I changed it to 1000

svn path=/trunk/boinc/; revision=21329
2010-04-29 15:36:49 +00:00
David Anderson 7933287457 - user web: no limit on PMs for moderators, admins etc.
svn path=/trunk/boinc/; revision=21328
2010-04-29 15:28:27 +00:00
David Anderson 91665c7109 - user web: bug fixes for prefs
svn path=/trunk/boinc/; revision=21301
2010-04-26 20:28:54 +00:00
David Anderson 26c0814d26 - client: clean up network suspension logic.
There are now separate flags for
    "file_xfers_suspended": don't do file transfers
    "network_suspended": don't do any network comm
        (scheduler RPCs, RSS fetch, master fetch, etc.)
    The policy:
    if preferences/settings say no network
    (quota exceeded, no-network mode, user active, time, excl. app)
    then:
        file_xfers_suspended = true
        if (no recent network-related RPC) network_suspended = true
- user web: code cleanup for project prefs

svn path=/trunk/boinc/; revision=21299
2010-04-26 19:31:28 +00:00
David Anderson 37f08f46b0 - user web: message tweaks
svn path=/trunk/boinc/; revision=21290
2010-04-26 02:34:58 +00:00
David Anderson 8f91d96150 - user web: add network quota pref (the goal that spurred all this cleanup)
- rename prefs.daily_xfer_period to daily_xfer_period_days


svn path=/trunk/boinc/; revision=21269
2010-04-23 20:29:02 +00:00
David Anderson a32dca3fbc - user web: separate general stuff from prefs.inc
svn path=/trunk/boinc/; revision=21268
2010-04-23 18:32:30 +00:00
David Anderson 9619791ad3 - user web: more cleanup of prefs.inc
- client: code cleanup


svn path=/trunk/boinc/; revision=21267
2010-04-23 17:46:57 +00:00
David Anderson 1b044796c9 - user web: first whack at cleaning up the mess which is prefs.inc
(to be continued)


svn path=/trunk/boinc/; revision=21260
2010-04-22 23:19:49 +00:00
David Anderson bede9972b1 - client: fix bug with NVIDIA GPUs.
Some of them allow only 1 CUDA context at a time.
    You need to create a CUDA context to get available VRAM.
    So the client would run a CUDA job, then immediately kill it.
    Solution:
    - If a GPU app is running,
        let it keep running regardless of available VRAM
        (if it's still running, it has enough VRAM).
    - But don't start new apps if there's not enough available VRAM,
        or it the amount is unknown
        (if the client can't create a CUDA context,
        the app won't be able to either)
- client: if <coproc_debug> is set, print available GPU RAM periodically

svn path=/trunk/boinc/; revision=21253
2010-04-22 17:45:33 +00:00
David Anderson b71d3e6cf4 - back end: typo and tweaks
svn path=/trunk/boinc/; revision=21196
2010-04-16 21:16:18 +00:00
David Anderson a92b7a5c32 - client: attempt to fix bug where a GPU would be assigned
to multiple jobs at the same time.
    I fixed one error (reference arg to assign_coprocs())
    but I can't see why this would explain the problem.
    I added a lot of extra <coproc_debug> log messages.
- user web: give scientists moderator privileges

svn path=/trunk/boinc/; revision=21158
2010-04-09 20:27:42 +00:00
David Anderson 78769ee501 - admin web: show more credit-related info
svn path=/trunk/boinc/; revision=21141
2010-04-07 20:16:43 +00:00
David Anderson 23997a28e3 - user web : improve result display
svn path=/trunk/boinc/; revision=21117
2010-04-06 16:34:31 +00:00
David Anderson f1bbf5c339 - web: show anon platform correctly in task list
svn path=/trunk/boinc/; revision=21048
2010-04-01 16:32:16 +00:00
David Anderson fb851311e0 - server: various changes;
see http://boinc.berkeley.edu/trac/wiki/CreditNew

    Projects will need to update DB and recompile all back-end programs.

    Summary:
    - new way of computing credit
    - "reliable host" mechanism is per app version
    - "host punishment" mechanism is per app version
    - adjustment of wu.rsc_fpops_est provides the
        equivalent of per app version DCF
    - max jobs in progress is now per app
    - max jobs per RPC is now per app

    TODO:
    - reliable mechanism:
        - populate and use host_app_version.error_rate
        - populate host_app_version.turnaround
    - host punishment:
        - populate host_app_version.max_jobs_per_day
        - populate host_app_version.n_jobs_today
        - use app.max_jobs_per_day_init
    - job limits:
        - use app.max_jobs_in_progress, max_gpu_jobs_in_progress
        - use app.max_jobs_per_rpc
    - adjust wu.rsc_fpops_est
    - remove old credit stuff
        fpops_cumulative, credit_multiplier
        credit computation in scheduler

- AVERAGE class: use the Knuth algorithm (Wikipedia)


svn path=/trunk/boinc/; revision=21021
2010-03-29 22:28:20 +00:00
David Anderson 6c39a91b1c - user web: in above case, remove notifications as well
svn path=/trunk/boinc/; revision=21011
2010-03-28 23:47:17 +00:00
David Anderson 03f646779c - user web: if a forum or thread is not visible to a user,
remove their subscriptions to it.


svn path=/trunk/boinc/; revision=21003
2010-03-26 05:34:14 +00:00
David Anderson 7bb82a9f83 - web RPC: include mem and disk info in host XML record
svn path=/trunk/boinc/; revision=20997
2010-03-25 16:38:17 +00:00
David Anderson 5b7f8b8348 - web: fix bug that caused "send email" and "show hosts"
in project prefs to always select "no"


svn path=/trunk/boinc/; revision=20786
2010-03-04 04:16:00 +00:00
David Anderson 811c61e79a svn path=/trunk/boinc/; revision=20734 2010-02-25 17:51:41 +00:00
David Anderson 575cec858c - admin web: a project must provide an .htaccess file
or an auth_ops() function (not necessarily both).
    New projects are given an .htaccess file with no .htpasswd,
    so they must either create a .htpasswd file
    or define auth_ops() in order to use admin web pages.

svn path=/trunk/boinc/; revision=20671
2010-02-21 04:45:52 +00:00
David Anderson 04425c51af - web: translation stuff
svn path=/trunk/boinc/; revision=20657
2010-02-19 17:51:00 +00:00
David Anderson 6dd7401da7 - various components: fix inconsistencies in how user names
and team names are represented.
    In particular, edit_user_info_action.php was using
    htmlentities() on names; this led to double-encoding.

    The new rules:
    1) no HTML tags allowed in either one.
        This is enforced silently, using strip_tags()
    2) names are stored in the DB exactly as entered.
        They may contain chars like & and >.
        They may contain non-ASCII characters
        (use UTF-8 if you want them displayed correctly).
        None of these are not escaped.
    3) When the names are put in XML
        (e.g. in scheduler reply or db_dump output)
        they are XML-escaped.
        This escapes <, &, and non-ASCII chars
    4) The client leaves them in this form,
        and writes them that way in GUI RPCs
        and init_data.xml files.
    5) The parsing of GUI RPC replies and init_data.xml files
        XML-unescapes them.

svn path=/trunk/boinc/; revision=20647
2010-02-18 22:33:26 +00:00
David Anderson 9bc2e0a281 - web: fix typo
svn path=/trunk/boinc/; revision=20612
2010-02-17 21:12:31 +00:00
David Anderson 21a18b7045 - web: more translations, from Christian. fixes #982
svn path=/trunk/boinc/; revision=20582
2010-02-16 01:06:03 +00:00
David Anderson 4a963143ec - web: more translations, from Christian. fixes #981
svn path=/trunk/boinc/; revision=20568
2010-02-15 04:30:25 +00:00
David Anderson d78b5fb79a - client: if a project is anonymous platform and it has no
app versions that use a resource,
    don't request work from it for that resource.

svn path=/trunk/boinc/; revision=20549
2010-02-11 22:19:22 +00:00
David Anderson dd358791b7 - web: make a bunch of strings translatable (from Christian Beer)
fixes #977


svn path=/trunk/boinc/; revision=20462
2010-02-07 23:51:37 +00:00
David Anderson b9db4b16db - web: fix bug that caused news RSS to show wrong items
svn path=/trunk/boinc/; revision=20427
2010-02-05 04:46:10 +00:00
David Anderson 5f1bf70056 - web: Drupal stuff
svn path=/trunk/boinc/; revision=20418
2010-02-04 16:55:16 +00:00
David Anderson e44ac6dede - web: code shuffle for Drupal
svn path=/trunk/boinc/; revision=20417
2010-02-04 16:15:54 +00:00
David Anderson ae6420ab65 - client: if GPU get available RAM fails, don't use the GPU
- web: put $languages_in_use into $GLOBALS.
    Apparently it can't be referenced as a global in Drupal otherwise

svn path=/trunk/boinc/; revision=20412
2010-02-03 23:04:34 +00:00
David Anderson 1600c26206 svn path=/trunk/boinc/; revision=20403 2010-02-03 17:28:03 +00:00
David Anderson 09b92f0841 - user web: allow zero resource share
- client: allow zero resource share


svn path=/trunk/boinc/; revision=20315
2010-01-29 15:50:47 +00:00
David Anderson 04b8cf965f - web: assume all translation files are UTF-8
svn path=/trunk/boinc/; revision=20270
2010-01-27 04:04:17 +00:00
David Anderson 6b3ea3d339 - user web: don't show "database error" if result refers
to deleted app version

svn path=/trunk/boinc/; revision=20251
2010-01-23 00:36:12 +00:00
David Anderson eeffc6de96 - web: translation fix from Nicolas:
"There is a bug in tra() that causes problems if one of the arguments
    contains a replacement marker itself. For example, if the first
    argument contains an encoded URL, which contains '%2', the second
    argument may appear in the middle of the URL."
- client simulator: further fiddling around.  Not done.

svn path=/trunk/boinc/; revision=20201
2010-01-19 23:01:09 +00:00
David Anderson e2d3f75eef - client and user web: finish the above.
Should add the Adv Prefs dialog as well.

svn path=/trunk/boinc/; revision=20193
2010-01-19 00:38:31 +00:00
Rytis Slatkevičius d6d8037f5d user web: do SQL escaping before storing prefs in the database as some projects store user-editable strings in the preferences.
svn path=/trunk/boinc/; revision=20188
2010-01-18 15:19:23 +00:00
David Anderson 4ab335eb49 - user web: make a bunch of strings translatable (from Nicolas)
svn path=/trunk/boinc/; revision=20180
2010-01-16 06:19:19 +00:00
David Anderson e7dcff182f - web DB code: fix PHP warning when enumeration returns nothing.
From Nicolas. fixes #974
- client: tiny code shuffle

svn path=/trunk/boinc/; revision=20178
2010-01-15 23:08:55 +00:00
David Anderson 737952dbb5 - server: client version numbers are represented as
10000*major + 100*minor + release,
    rather than 100*major + minor.
    Sometimes you need release-level resolution.
    This affects:
    - app_version.min_core_version
    - config: min_core_client_version_announced
    - config: min_core_client_version
    Projects using these must multiply them by 100.

svn path=/trunk/boinc/; revision=20149
2010-01-13 17:28:59 +00:00
David Anderson ee343cea02 - client: small tweak to work fetch:
if project has crazy DCF, don't automatically request 1 sec;
    only request work if there's a shortfall.
- intermediate checkin for notices stuff

svn path=/trunk/boinc/; revision=20145
2010-01-12 21:53:40 +00:00
David Anderson f10384af43 - client: add <stderr_head> config option;
sends the first rather than last 64KB of stderr to server.
    This doesn't belong here; this choice should come from the server.
    I may take this out later.
- user web: when add a private message, always add a notification

svn path=/trunk/boinc/; revision=20141
2010-01-12 18:39:59 +00:00
David Anderson 2e6e97cfe6 - web: don't show news items if they're hidden
svn path=/trunk/boinc/; revision=20063
2010-01-04 17:06:54 +00:00
David Anderson 98df3052c5 - web: if someone edits their profile, remove it from the cache
so that they and others will see the new version.

svn path=/trunk/boinc/; revision=20039
2009-12-25 04:23:48 +00:00
David Anderson 4ae4fce8c0 svn path=/trunk/boinc/; revision=20038 2009-12-25 01:27:29 +00:00
David Anderson d86c0b2802 - web tweaks
svn path=/trunk/boinc/; revision=20037
2009-12-24 22:47:53 +00:00
David Anderson bfe4e1bf3d - web: fix motd bug
svn path=/trunk/boinc/; revision=20013
2009-12-22 18:39:40 +00:00
David Anderson 8132f29140 - web: fix bug if news item title occurs in middle of content
svn path=/trunk/boinc/; revision=20004
2009-12-21 19:38:50 +00:00
David Anderson 4e9fc3d595 - client: a big glob of new code related to notices.
Not functional yet.


svn path=/trunk/boinc/; revision=20002
2009-12-21 17:49:28 +00:00
David Anderson 43d4c667a7 - web: add Comment link to news items
svn path=/trunk/boinc/; revision=19991
2009-12-19 18:14:04 +00:00
David Anderson 88616eb157 svn path=/trunk/boinc/; revision=19990 2009-12-19 17:52:49 +00:00
David Anderson 5c1f254b64 - web: small fix
svn path=/trunk/boinc/; revision=19984
2009-12-19 06:13:22 +00:00
David Anderson e57f286e47 - web: some fixes that arose from converting BOINC's news
to forum format.


svn path=/trunk/boinc/; revision=19963
2009-12-18 04:32:30 +00:00
David Anderson 98a192e5ac - web: bug fixes to the above.
svn path=/trunk/boinc/; revision=19951
2009-12-17 00:17:37 +00:00
David Anderson e1bdfc0ee8 - web: change the way project news is stored.
Old: in a flat file (html/project/project_news.inc)
    New: in a forum (called "News" by default)
    The script html/ops/news_convert.php copies news from
    old to new format.
    You'll also need to edit your index.php and use
    "show_news(0, 5)" to show news.
- web: added a "message of the day" mechanism.
    Edit html/user/motd.php to show a message.
    This will be shown as the first news item,
    but it's not archived (i.e., it's not a forum post)


svn path=/trunk/boinc/; revision=19949
2009-12-16 22:35:08 +00:00
David Anderson 1b7f0aa88a - web: bb2html() previously generated HTML that assumed
the BOINC stylesheet (main.css) was included.
    This is no good if we're exporting the HTML.
    Add an option to generate generic HTML.
- web: add options to the forum RSS feed:
    1) threads_only: just show threads (i.e. 1st post in each thread)
    2) truncate: truncate posts to 256 chars.
        If this is not set, convert post from BBcode to generic HTML,
        and put this (XML-encoded) in item.description
This is preparation for using the forum code for project news,
and for displaying forum RSS feeds in the manager.


svn path=/trunk/boinc/; revision=19915
2009-12-15 17:57:36 +00:00