Commit Graph

1093 Commits

Author SHA1 Message Date
David Anderson 94b1dc93c9 svn path=/trunk/boinc/; revision=19263 2009-10-05 21:44:53 +00:00
David Anderson d585913f8e svn path=/trunk/boinc/; revision=19232 2009-10-02 20:57:54 +00:00
David Anderson b817b8ed7a - admin web: changed protection scheme as follows:
- default: script can be run from command line;
        to run from web you need to be logged in as a particular user.
        (in addition to .htaccess protection).
    - if include $cli_only at start of script:
        can only be run from the command line.
    - if include $skip_auth_ops at start of script:
        can run from web without being logged in
        (this is set ONLY in login_action.php)
- admin web: added $cli_only = true to a bunch of scripts


svn path=/trunk/boinc/; revision=19230
2009-10-02 18:32:40 +00:00
David Anderson c76d166344 - user web: forum_preferences.{low_rating_threshold, high_rating_threshold}
were deprecated, but were still used in deciding whether to show a post.
    This broke the "ignore list" function.

svn path=/trunk/boinc/; revision=19218
2009-09-29 21:58:54 +00:00
David Anderson 14a88dd54b - user web: show ATI GPUs correctly; show multiple GPUs correctly.
svn path=/trunk/boinc/; revision=19217
2009-09-29 19:46:14 +00:00
David Anderson 8e51669769 - tweak to start
svn path=/trunk/boinc/; revision=19201
2009-09-28 16:19:20 +00:00
David Anderson 71c7e7a74b - client/scheduler/web: add per-project preferences for whether
to accept CPU, NVIDIA and ATI jobs.
    These prefs are shown only where relevant:
    e.g., only for processor types for which the project has app versions,
    and if it has versions for only one type, no pref is shown.

    These prefs affect both client and scheduler.
    The client won't ask for work for a device blocked by prefs,
    and the scheduler won't send it.

    This replaces earlier optional project-specific prefs for
    "no CPU jobs" and "no GPU jobs".
    (However, these prefs continue to be honored on the server side).

- client: if NVIDIA driver is unknown, say that rather than 0


svn path=/trunk/boinc/; revision=19194
2009-09-28 04:24:18 +00:00
David Anderson d34cc69d45 - user web: remove "enforced by version X+" for X < 6.0
- screensaver: added some comments

svn path=/trunk/boinc/; revision=19167
2009-09-25 17:39:50 +00:00
David Anderson 0f9cda3ea3 - admin web: finished the above.
Got rid of auth_ops_cmdline() (not needed).
    auth_ops() is now called in util_ops.inc;
    every script in html/ops/ must include util_ops.inc.

Note: for existing projects, the admin web interface
    will now show "access denied".
    Projects must think about what access control policy they want,
    and specify it in project.inc


svn path=/trunk/boinc/; revision=19053
2009-09-15 18:14:37 +00:00
David Anderson 17802a2a90 - admin web: add a notion of login to a project's admin pages
(this is separate from login to user pages,
    since the cookie path is different).
- admin web: added a framework for project-specified
    access control to admin pages.
    Can be on the basis of user ID, user flags, etc.
    To do this, define functions auth_ops() and auth_ops_cmdline()
    in html/project/project.inc
    (see the one in project.samples/ for an example)
    This is in addition to .htaccess protection.


svn path=/trunk/boinc/; revision=19052
2009-09-15 04:48:08 +00:00
David Anderson 3bcaefd1d7 - web: show BOINC version in host displays
svn path=/trunk/boinc/; revision=19038
2009-09-10 20:30:46 +00:00
David Anderson c397a9dd9e - web: remove usage of ereg_replace()
Fixes #787.  From Nicolas Alvarez.

svn path=/trunk/boinc/; revision=19010
2009-09-06 05:33:19 +00:00
David Anderson ae3f3e74f1 - client: in choosing GPU jobs in FIFO order,
use job name as tiebreaker if received times are the same.
    This makes the order deterministic.
- web: show elapsed time and CPU time,
    and show app version info, in result display

svn path=/trunk/boinc/; revision=19008
2009-09-06 03:51:12 +00:00
David Anderson a412f6d6d1 svn path=/trunk/boinc/; revision=18987 2009-09-02 15:23:20 +00:00
David Anderson dd2bb6d4ba - scheduler: put client version in host.serialnum
- web: parse serialnum correctly

svn path=/trunk/boinc/; revision=18986
2009-09-02 15:18:15 +00:00
David Anderson 12d4b978be - scheduler: if client request uses a weak authenticator,
don't modify user preferences or CPID.
- client: fix bug that shows ATI version incorrectly
- database: host.posts has been repurposed as a salt (or seqno)
    for a new type of weak authenticator that won't depend on password
- web code:
    modify forum_preferences.posts instead of host.posts.
    (actually, the former isn't used either, we just do a select count(*);
    should fix this at some point).

svn path=/trunk/boinc/; revision=18865
2009-08-18 20:44:12 +00:00
David Anderson 0f0a29b5b7 - client: in get_project_config_poll() GUI RPC,
return ERR_IN_PROGRESS is the reference site check is in progress.
    This hopefully fixes a bug where:
    - the user is connected via a proxy
    - the manager is run for the first time, and an attach is tried
    - the get_project_config.php fetch fails because no proxy config
    - the manager gets the CC_STATUS before the ref site check has
        finished, so it thinks there's a network connection,
        and it doesn't ask the user for proxy info

svn path=/trunk/boinc/; revision=18712
2009-07-24 19:09:37 +00:00
David Anderson a4e82069d6 - client: add a bunch of debugging messages (<task_debug>)
for showing how GPU instances are being reserved
- scheduler: add "sse3" plan class example
- web: add option (NO_TEAMS constant) for suppressing teams

svn path=/trunk/boinc/; revision=18658
2009-07-22 18:41:02 +00:00
David Anderson 13c647ece8 - fix client simulator
- web: if DB server down, say so


svn path=/trunk/boinc/; revision=18554
2009-07-06 16:33:02 +00:00
David Anderson 2a0a83d1c8 svn path=/trunk/boinc/; revision=18502 2009-06-25 16:53:17 +00:00
David Anderson 88a08ce2c4 svn path=/trunk/boinc/; revision=18501 2009-06-25 16:52:02 +00:00
David Anderson a884f77597 svn path=/trunk/boinc/; revision=18499 2009-06-25 05:16:27 +00:00
David Anderson 5e94337e8e - more code cleanup
svn path=/trunk/boinc/; revision=18487
2009-06-23 17:15:17 +00:00
David Anderson df9547fcf4 - web: code cleanup
svn path=/trunk/boinc/; revision=18486
2009-06-23 17:13:35 +00:00
David Anderson 9f8fda388b - web: add buttons for BBCode editing.
From John Hallissey

svn path=/trunk/boinc/; revision=18485
2009-06-23 16:37:13 +00:00
David Anderson 64bcd9e9e2 svn path=/trunk/boinc/; revision=18484 2009-06-23 16:31:42 +00:00
David Anderson 0faaf89068 - web: change "CPU time" to "run time"
svn path=/trunk/boinc/; revision=18426
2009-06-16 17:15:55 +00:00
David Anderson 7fbe9edc15 - web: fix up country flags a little
svn path=/trunk/boinc/; revision=18397
2009-06-12 16:35:08 +00:00
David Anderson 5f6f1fe8a6 svn path=/trunk/boinc/; revision=18391 2009-06-12 04:36:18 +00:00
David Anderson 5a14204a1a - web: country flags
svn path=/trunk/boinc/; revision=18390
2009-06-12 04:26:01 +00:00
David Anderson bf2f9942bd - web: don't show user ID next to posts
- web: fix [pre] bbcode


svn path=/trunk/boinc/; revision=18357
2009-06-10 22:54:21 +00:00
David Anderson d6d738a47d - web: allow projects to account email addresses in certain domains.
Add the following to html/project/project.inc:

    $banned_email_domains = array(
        "foo.bar",
        "blah"
    );

    Email addresses ending with any of those strings will be disallowed.
- Web RPCs: have am_set_info.php do the same checking for
    email addresses (invalid, banned) as the other web code


svn path=/trunk/boinc/; revision=18352
2009-06-10 18:34:51 +00:00
David Anderson ca44344068 - GUI RPC: include hostid in PROJECT
- web: include timed-out and "client detached" results in error category


svn path=/trunk/boinc/; revision=18330
2009-06-08 17:08:52 +00:00
David Anderson ff8b2cb0c2 - web: typo in filtered results (from R. Haselgrove)
svn path=/trunk/boinc/; revision=18294
2009-06-04 16:31:47 +00:00
David Anderson c127a5c355 - web: make [pre] work similar to [code]. fixes #798
Note: I had to move [pre] to the top of the
    preg list to make this work.  Not sure why.


svn path=/trunk/boinc/; revision=18285
2009-06-03 23:00:43 +00:00
David Anderson c5439380f7 - web: fix regular expression for "images as links"
svn path=/trunk/boinc/; revision=18200
2009-05-25 18:49:42 +00:00
David Anderson 7df81f5fba - web: fix host-merge logic. Fixes #893
svn path=/trunk/boinc/; revision=18196
2009-05-23 00:06:32 +00:00
David Anderson c21a37e77a - web: the logic for using read-only DB replicas was messed up
svn path=/trunk/boinc/; revision=18182
2009-05-20 23:29:54 +00:00
David Anderson 71cbc5d400 - web: in RSS feeds, replace images with [Image link]
but allow other tags (like <a>).
    Note: if the image is itself inside a <a href=x>,
    then the [Image link] will be linked to x, not to the image.

svn path=/trunk/boinc/; revision=18169
2009-05-20 18:25:36 +00:00
David Anderson fe09a9bb92 svn path=/trunk/boinc/; revision=18166 2009-05-19 21:00:03 +00:00
David Anderson da217e4c59 - upgrade: don't crash if file copy fails
- db_update.php: select database (not clear if this ever worked)
- translation: fix bug if have both BOINC and project translation

svn path=/trunk/boinc/; revision=18141
2009-05-18 04:18:47 +00:00
David Anderson fce59a4840 - web: fix formatting in [pre]. Fixes #891
svn path=/trunk/boinc/; revision=18140
2009-05-18 03:08:33 +00:00
David Anderson 9574e8a003 - web: check for mismatched "'s in translation files
- build_po.php: add LANG_NAME strings

svn path=/trunk/boinc/; revision=18109
2009-05-14 22:32:05 +00:00
David Anderson c2fda4db09 - scheduler: add <report_max> config parameter;
limits the # of completed results handled per scheduler RPC.
    This may be needed to avoid crashes due to memory allocation
    failure (each reported result uses about 128KB memory).
- web: In showing result lists,
    include "Validate error" results in the "Invalid" category.
    (Previously they didn't appear in any category)

svn path=/trunk/boinc/; revision=18104
2009-05-14 19:01:40 +00:00
Rytis Slatkevičius 2ba2d7b1a6 user web: remove an undocumented feature where anyone could do a recompile of language files by just knowing an URL parameter.
svn path=/trunk/boinc/; revision=18046
2009-05-07 15:19:42 +00:00
David Anderson 5198ad31d9 - client: write message (and show new config info) when config file reread
- client: improve cpu_sched_debug messages
- web translation: code wasn't handling multi-line tokens

svn path=/trunk/boinc/; revision=18028
2009-05-06 09:49:46 +00:00
Rytis Slatkevičius c03815e614 user web: add a hook project_user_links() to user_links() to easily extend user links (very useful for adding project badges).
svn path=/trunk/boinc/; revision=17985
2009-05-03 19:17:20 +00:00
David Anderson fba2e5ee3d - Changes to get the client to build on IRIX:
don't use the variable name "sgi";
    include <xxx.h> instead of <cxxx>; the latter just adds
    overloaded functions that we avoid.

svn path=/trunk/boinc/; revision=17954
2009-04-30 21:48:20 +00:00
David Anderson f49e21d02c svn path=/trunk/boinc/; revision=17882 2009-04-27 14:55:31 +00:00
David Anderson c58136e5bf - client: improve CPU sched debug messages
(say what kind of job and why we're scheduling it)
- client: log messages describing GPUs: one line per GPU; fixes #879

svn path=/trunk/boinc/; revision=17847
2009-04-20 00:00:11 +00:00