Commit Graph

1320 Commits

Author SHA1 Message Date
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
David Anderson 7a5f3258a4 svn path=/trunk/boinc/; revision=19728 2009-11-28 18:32:47 +00:00
David Anderson 617b456df8 - web: fix bug in column-mode prefs display
svn path=/trunk/boinc/; revision=19685
2009-11-24 04:37:47 +00:00
David Anderson 171352dc58 - user web: fix bug in "allow beta work" pref.
The presence of a bool doesn't mean it's true.


svn path=/trunk/boinc/; revision=19413
2009-10-29 21:50:25 +00:00
David Anderson 072fb7e4de - actually, make it
"Tasks checkpoint to disk at most every ..."
    and change it in the advanced prefs dialog too

svn path=/trunk/boinc/; revision=19294
2009-10-13 00:00:57 +00:00
David Anderson b0d44d7564 - client: don't multiply checkpoint interval (i.e., "disk interval" pref)
by # processors.
- web: change description of pref to
    "Applications checkpoint to disk at most every ..."

svn path=/trunk/boinc/; revision=19293
2009-10-12 23:54:02 +00:00
David Anderson 39f66e6abd - client: remove redundant 0s in job log
- user web: remove some PHP warnings (from Oliver Bock)

svn path=/trunk/boinc/; revision=19272
2009-10-06 20:35:28 +00:00
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
David Anderson c5552049d4 svn path=/trunk/boinc/; revision=17841 2009-04-17 02:40:21 +00:00
David Anderson 68b46cb37e svn path=/trunk/boinc/; revision=17840 2009-04-17 02:24:05 +00:00
David Anderson 0b11a548dc - upgrade script: do DB update even if stop_web is present,
rather than spewing an HTML error message.
    Fixes #875


svn path=/trunk/boinc/; revision=17839
2009-04-17 02:08:05 +00:00
David Anderson 8b51226b54 svn path=/trunk/boinc/; revision=17837 2009-04-17 00:01:33 +00:00
David Anderson 6a035a0c09 svn path=/trunk/boinc/; revision=17836 2009-04-16 23:57:31 +00:00
David Anderson 20adddc862 - client: fixed a crash caused by using %f to write
working-set size into a fixed-size buffer.
    Use %e instead.
    TODO: figure out why WSS was huge.
- web: if "en" is primary language, don't read translation files

svn path=/trunk/boinc/; revision=17831
2009-04-16 09:01:41 +00:00
David Anderson 04fd1e4800 - web: improve the appearance of buttons
- web: divide the stylesheet into "main.css"
    (which has formatting stuff, rounded corners etc.)
    and "white.css" (which has colors).
    The above two from Simek.
- scheduler: change default min NVIDIA driver version
    from 17500 to 17700

svn path=/trunk/boinc/; revision=17819
2009-04-15 20:09:42 +00:00
Rytis Slatkevičius 3dfd2363d6 web: allow login from subdirectories of the site (expects login_form.php to be located in the URL_BASE).
svn path=/trunk/boinc/; revision=17792
2009-04-11 17:04:43 +00:00
David Anderson e15252513a svn path=/trunk/boinc/; revision=17790 2009-04-10 23:36:32 +00:00
David Anderson db81d33d31 svn path=/trunk/boinc/; revision=17789 2009-04-10 23:15:43 +00:00
David Anderson 0aeb39fb7e - Bossa fixes
svn path=/trunk/boinc/; revision=17788
2009-04-10 23:08:40 +00:00
David Anderson 65560415fe - Add "html/ops/purge_profile.php" script to help admins locate
and remove spam profiles

svn path=/trunk/boinc/; revision=17753
2009-04-08 17:46:47 +00:00
David Anderson 9f33d4db27 - web and client: change the default for "run_gpu_if_user_active"
from true to false.
    Currently running CUDA apps on NVIDIA GPUs causes
    a significant slowdown in GUI response.


svn path=/trunk/boinc/; revision=17740
2009-04-07 18:21:39 +00:00
David Anderson 9dc7ecb22a - make_project: get rid of verbosity-level stuff
and fancy overwriting of stdout lines


svn path=/trunk/boinc/; revision=17736
2009-04-06 18:27:02 +00:00
David Anderson c66cba7f8f - web: in filtered job lists,
"pending" should include "inconclusive",
    and "invalid" should include "too late to validate"

svn path=/trunk/boinc/; revision=17726
2009-04-02 17:41:14 +00:00
David Anderson a720fc5d52 - web: translation system didn't compile BOINC and
project-specific translations correctly.

svn path=/trunk/boinc/; revision=17658
2009-03-24 23:27:12 +00:00
David Anderson 0f6de2ea58 - upgrade and make_project scripts: run update_translations.php,
which compiles the translation files into the form
    used by the web code.
    Projects that don't use "upgrade" will need to do this manually
    whenever translation files change.

svn path=/trunk/boinc/; revision=17652
2009-03-24 21:24:57 +00:00
David Anderson b340d016c2 - web: fix X-project links in Computer page
svn path=/trunk/boinc/; revision=17643
2009-03-21 03:27:18 +00:00
David Anderson 9c7d088709 - web: job lists can be filtered by status
svn path=/trunk/boinc/; revision=17629
2009-03-18 22:53:55 +00:00
David Anderson e5017daf0f - web: fix typo
svn path=/trunk/boinc/; revision=17606
2009-03-17 15:06:10 +00:00
David Anderson 09f1982229 - web: in pages that show results, combine "server state",
"client state", and "outcome" into a single status.
    The fact that there are three separate status fields
    is an implementation detail that users don't need to see.

svn path=/trunk/boinc/; revision=17599
2009-03-16 19:39:16 +00:00
David Anderson 4cca81bedf - manager: when filtering messages by project,
show messages not tagged with a project (fixes #852)
- web: show X-project stats links as icons

svn path=/trunk/boinc/; revision=17456
2009-03-03 21:58:03 +00:00
David Anderson 8470b55be3 - web: link to 3rd-party signature sources on community prefs page
svn path=/trunk/boinc/; revision=17417
2009-03-01 19:00:40 +00:00
David Anderson 3709c1e9f4 - scheduler: include driver version in the CUDA description string
storing in the database;
- web: display the above

svn path=/trunk/boinc/; revision=17341
2009-02-24 00:06:45 +00:00
David Anderson 99a15ab052 - web: in lists of tasks, give the option of showing names instead of IDs
svn path=/trunk/boinc/; revision=17308
2009-02-19 18:39:03 +00:00
David Anderson d848e54518 - web tweaks
svn path=/trunk/boinc/; revision=17306
2009-02-19 05:03:02 +00:00
David Anderson 6a75b78de4 - client: don't ignore jobs with fraction_done=1 (but still running)
in RR simulation; we may need to mark them as deadline miss.
- web: replace & with &amp; various places


svn path=/trunk/boinc/; revision=17278
2009-02-17 17:39:57 +00:00
David Anderson 2afd98ae70 - client: fix bug where master fetch failure doesn't clear request flag,
leading to infinite retry without backoff

svn path=/trunk/boinc/; revision=17269
2009-02-14 00:05:02 +00:00
David Anderson 2879a022cf svn path=/trunk/boinc/; revision=17250 2009-02-12 21:55:31 +00:00
David Anderson 4526c0bb3d - client, web: add preference for not using GPU while computer busy
svn path=/trunk/boinc/; revision=17235
2009-02-12 18:04:30 +00:00
David Anderson 98bd9bb328 - web: remove <nobr> around user links; doesn't play well with long user names
svn path=/trunk/boinc/; revision=17182
2009-02-08 17:35:54 +00:00
David Anderson 13ed05b8dc svn path=/trunk/boinc/; revision=17178 2009-02-07 04:28:08 +00:00
David Anderson b33db18209 - web: don't show x-project links for anonymous hosts; fix &bull's
svn path=/trunk/boinc/; revision=17177
2009-02-07 04:04:54 +00:00
David Anderson bf93abb67a - web: fix bug in cached user page stuff from 12/29/08
svn path=/trunk/boinc/; revision=17166
2009-02-06 03:40:54 +00:00
David Anderson f851c4558a - web: add another team stats link
- client: if ncpus is zero in cc_config.xml, honor it.


svn path=/trunk/boinc/; revision=17160
2009-02-05 22:34:10 +00:00
David Anderson 7300925304 - web: must have a DB connection before calling mysql_real_escape_string()
svn path=/trunk/boinc/; revision=17159
2009-02-05 22:16:45 +00:00
David Anderson 85acfeb1be - web: update stats sites URLs
svn path=/trunk/boinc/; revision=17157
2009-02-05 21:38:55 +00:00
David Anderson 03a0175d26 - web: add links to cross-project host stats sites
(currently just boincstats)

svn path=/trunk/boinc/; revision=17156
2009-02-05 21:19:19 +00:00
David Anderson 20c2566ada - web: added BOINCstats to list of team stats sites
svn path=/trunk/boinc/; revision=17155
2009-02-05 20:25:30 +00:00
David Anderson 3ad73d70ba - client: redefine "overworked" as
debt < -1.5 * work_buf * cpu_sched_period
- web: on team page, link to cross-project team stats sites

svn path=/trunk/boinc/; revision=17152
2009-02-05 19:40:01 +00:00
David Anderson b7a2c227ca - Work fetch / scheduler:
There are two mechanisms to prevent the scheduler from
    sending jobs that won't finish by their deadline.
    Simple mechanism:
        The client sends the interval x for which CPUs are projected
        to be saturated.
        Given a job with estimated duration y,
        the scheduler doesn't send it if x + y exceeds the delay bound.
        If it does send it, x is incremented by y.
    Complex mechanism:
        Client sends workload description.
        Scheduler does EDF simulation, sees if deadlines are missed.
        The only project using this AFAIK is BOINC alpha test.
    Neither of these mechanisms takes coprocessors into account,
    and as a result jobs could be sent that are doomed to
    miss their deadline.
    This checkin adds coprocessor awareness to the Simple mechanism.

    Changes:
    Client:
        compute estimated delay (i.e. time until non-saturation)
        for coprocessors as well as CPU.
        Send them in scheduler request as part of coproc descriptor.
    Scheduler:
        Keep track of estimated delays separately for different resources
- client: fixed bug that computed CPU estimated delay incorrectly
- client: the work request (req_secs) for a resource is the min
    of the project's share and the shortfall.

svn path=/trunk/boinc/; revision=17086
2009-01-30 21:25:24 +00:00
David Anderson 3838ac2f19 - web: anywhere we show info about a host, show its GPUs too
- web: add script to parse GPU completed-job log
    and generate summary data;
    also add page to display this data.

svn path=/trunk/boinc/; revision=17069
2009-01-29 17:51:02 +00:00
Janus B. Kristensen a9e7cea54b Fixes major bug in the translation system.
The bug caused the default language to be ignored if set to "English" 
regardless of whether this was done through the browser or through a
cookie.

svn path=/trunk/boinc/; revision=17012
2009-01-25 10:45:07 +00:00
David Anderson 50405c89e3 - scheduler: improve no-work messages
- web: don't use DB conn in mysql_real_escape_string()
    (otherwise won't work if DB is down)

svn path=/trunk/boinc/; revision=16961
2009-01-20 21:31:13 +00:00
Janus B. Kristensen 57296e7004 Fixed issue where a translation text was broken into pieces making it impossible to translate for languages that have a different word order than english.
svn path=/trunk/boinc/; revision=16778
2009-01-05 15:50:33 +00:00
Janus B. Kristensen 209d519fc4 - Fixed issue where the cached version of the profile page was displayed in a wrong language
- Added translation awareness to view_profile.php
- Added translation awareness to show_user.php
- Added cacheability to the community_links() by splitting it into a function for getting the cacheable object "get_community_links_object()" and another for displaying it "community_links()"
- Added the community_links cacheable object to the cache in show_user.php
- Changed view_profile.php from being full-page cached to using data caching. Only the community_links object is cached as that is the only one containing heavy queries. All other queries are simple and will be cached at the SQL query cache level.

svn path=/trunk/boinc/; revision=16749
2008-12-29 18:44:11 +00:00
David Anderson 312ffba708 - API: remove BOINC_OPTIONS::worker_thread_stack_size
- web: check whether to show profile in separate function
    from displaying profile; eliminate double headers
- scheduler: finish purge of redundant arguments

svn path=/trunk/boinc/; revision=16726
2008-12-19 18:14:02 +00:00
David Anderson 8c7d6dc489 - web: added ops/autolock.php script;
locks threads not modified in last 60 days

svn path=/trunk/boinc/; revision=16704
2008-12-16 23:59:04 +00:00
David Anderson 0cf46274e7 - web: remove unused code; fixes #799
svn path=/trunk/boinc/; revision=16703
2008-12-16 21:39:07 +00:00
David Anderson 4a65681176 - scheduler: if client has coprocs,
put a textual summary of them in host.serialnum (currently unused)
- web: show coprocs on host detail page
- db_dump: include coproc info in host XML

svn path=/trunk/boinc/; revision=16697
2008-12-16 18:46:28 +00:00
Janus B. Kristensen 2c45b94115 Fixed issue where BBCode inside code-tags was being interpreted
svn path=/trunk/boinc/; revision=16690
2008-12-15 18:43:52 +00:00
Janus B. Kristensen fba6fb51f2 Fixes issue where sending a PM would inadvertedly strip everything that looked like tags from the text before sending it.
svn path=/trunk/boinc/; revision=16689
2008-12-15 17:46:40 +00:00
David Anderson 4b5be47639 - web: replace the vaguely-named process_user_text()
with BoincDb::escape_string()
- web: have BoincDb::escape_string() also do a trim()

svn path=/trunk/boinc/; revision=16686
2008-12-14 22:18:49 +00:00
David Anderson 8ef6d9c756 - web: send only 1 email on team founder transfer request
- web: if no transfer request is pending, say so

svn path=/trunk/boinc/; revision=16664
2008-12-09 22:41:29 +00:00
David Anderson e3807a8386 - scheduler: estimate CUDA device speed based on clock rate an #MP
- web: close table in WU page
- web: fix PHP error in translation script

svn path=/trunk/boinc/; revision=16648
2008-12-08 19:39:19 +00:00
David Anderson e3fd56f5e8 - client: work-fetch tweak: don't increment overall CPU shortfall
if any jobs pending in simulation

svn path=/trunk/boinc/; revision=16595
2008-12-01 22:06:24 +00:00
David Anderson 659becc98c - get_project_config.php: if config.xml has min client version,
get client version from HTTP user agent string and enforce.
- update translations script: fix apparent typos

svn path=/trunk/boinc/; revision=16586
2008-11-28 19:03:05 +00:00
David Anderson 149b2c6794 - server: if "terms_of_use.txt" exists in project dir,
send it in get_project_config.php;
    6.4 clients will display a dialog to accept terms of use during attach.

svn path=/trunk/boinc/; revision=16563
2008-11-26 03:28:48 +00:00
David Anderson d8c923271b - web: smooth things out a bit for confused users:
- add a "forgot email address?" link
    - change text to say that the authenticator method can be used
        in case of forgotten email OR forgotten password
    - if bad password on login, show them the login form again
        (with email field populated)
        instead of a harsh failure message
    - if bad email on login, show login form again instead of harsh message
    - update authenticator method instructions
        with new BOINC data directory paths

svn path=/trunk/boinc/; revision=16399
2008-11-04 00:15:51 +00:00
David Anderson a5481e1714 - Filter questions
svn path=/trunk/boinc/; revision=16390
2008-11-03 03:06:29 +00:00
David Anderson 1de55a2842 - web: free result in count(). Fixes #763
svn path=/trunk/boinc/; revision=16389
2008-11-02 20:15:06 +00:00
David Anderson 081de3e661 - Bolt core reorg
svn path=/trunk/boinc/; revision=16384
2008-11-01 03:07:44 +00:00
David Anderson 562d7ac2d7 Bolt stuff
svn path=/trunk/boinc/; revision=16370
2008-10-30 22:58:33 +00:00
David Anderson 685ea38041 - web: change style sheet so tables are bordered only if class is "bordered"
- web: fix error if translation string missing


svn path=/trunk/boinc/; revision=16363
2008-10-30 18:27:22 +00:00
David Anderson a4030f891c Bolt stuff
svn path=/trunk/boinc/; revision=16346
2008-10-29 00:09:36 +00:00
David Anderson 2d1d47de15 - client: move round-robin simulation to its own file
- web: check for profile existence before trying to show it
- file deleter: add some debugging msgs

svn path=/trunk/boinc/; revision=16338
2008-10-28 21:59:25 +00:00
David Anderson c0c4bfdae7 - web: make the ordering of profiles in "browse profiles with pictures"
deterministic


svn path=/trunk/boinc/; revision=16330
2008-10-28 16:03:53 +00:00
David Anderson 5518259dd0 - client: accept --insecure flag even if not compiled with -DSANDBOX
- manager: pass --insecure flab only if compiled with -DSANDBOX
        (from Nicolas; fixes #762)

svn path=/trunk/boinc/; revision=16328
2008-10-28 02:21:26 +00:00
David Anderson 79c7b981b0 Bolt stuff
svn path=/trunk/boinc/; revision=16325
2008-10-27 21:30:55 +00:00
David Anderson 5109e91fb6 - added "image" exercise type
svn path=/trunk/boinc/; revision=16314
2008-10-24 22:28:34 +00:00
David Anderson b5a83796b4 - Bolt stuff
svn path=/trunk/boinc/; revision=16313
2008-10-24 20:09:16 +00:00
David Anderson 19dfe0ee71 - Add callback mechanism for exercises and exercise sets
- Default count for exercise sets is N, not 1

svn path=/trunk/boinc/; revision=16305
2008-10-23 20:35:39 +00:00
David Anderson 1f6df503f5 - web: don't select orphaned profile as UOTD;
delete profile when delete user.  Fixes #761

svn path=/trunk/boinc/; revision=16255
2008-10-22 15:49:01 +00:00
David Anderson 87ff7b07d2 - web: if user tries to edit a BOINC-wide team,
warn them that changes will get overwritten.
    Fixes #758


svn path=/trunk/boinc/; revision=16244
2008-10-21 20:33:16 +00:00
David Anderson 6dd22eec1c - Detect when a refresh has finished
svn path=/trunk/boinc/; revision=16237
2008-10-20 21:19:13 +00:00
David Anderson d786872da7 web tweeak
svn path=/trunk/boinc/; revision=16228
2008-10-17 16:47:02 +00:00
David Anderson 6e62285252 - web: prevent a cross-site request forgery attack
svn path=/trunk/boinc/; revision=16224
2008-10-16 04:02:59 +00:00
David Anderson a4380ee9a6 - web: make some things in sample front page translatable.
TODO: make them all translatable.
- manager: compile fix for Linux

svn path=/trunk/boinc/; revision=16207
2008-10-14 21:40:14 +00:00
Janus B. Kristensen 46711e4bc8 Fixed #557 - Hightlighting in Forum Search Results applied to HTML tags.
Highlighting is now done before parsing other special code. 

svn path=/trunk/boinc/; revision=16193
2008-10-12 17:11:19 +00:00
Janus B. Kristensen f2dda6f02c Fixed ticket #557 - Hightlighting in Forum Search Results applied to HTML tags.
Highlighting is now done before parsing other special code.

svn path=/trunk/boinc/; revision=16192
2008-10-12 17:09:38 +00:00
David Anderson 4aab5b5cb8 - web: avoid error if subscribed user doesn't exist
fixed #753


svn path=/trunk/boinc/; revision=16191
2008-10-12 15:32:12 +00:00
Janus B. Kristensen f5327c452e - Updated the translation system from token/define-based to string-based.
- Removed language interface code (noone seemed to understand/use it anyways)
- Removed a lot of debug. Compiling the language files will now only show whether the compile worked or not
- Removed automatic change-detection. You must now manually trigger compiles using ops/update_translations.php (improves performance slightly)
- Extended tra() to support arbitrary number of arguments
- Random code documentation fixes
- Fixed language override selection page to now correctly show the possible language alternatives

svn path=/trunk/boinc/; revision=16190
2008-10-12 15:22:16 +00:00
David Anderson 37364ab657 - client: show message when suspending because of exclusive app
- web: remove file_get_contents() workaround for PHP4
- web: If Akismet or ReCaptcha failure,
    display the form again with a warning message at the top.
    That way the user doesn't lose the text they just typed.

svn path=/trunk/boinc/; revision=16175
2008-10-09 18:28:55 +00:00
David Anderson 22773619ca - web: in checking if hosts can be merged,
do time-overlap check if either host has pending results
    Fixes #748

svn path=/trunk/boinc/; revision=16163
2008-10-08 21:49:06 +00:00
David Anderson ebe3b090e8 - add a script "upgrade_db.php" that updates project DB structure
(after user confirmation).
    This is called from "upgrade", and can also be run by itself.

    NOTE: this mechanism will handle all DB updates going forward.
    Older updates must be done the old way (edit and run db_update.php)

- Web: let teams determine whether they're accepting new members


svn path=/trunk/boinc/; revision=16160
2008-10-08 16:48:11 +00:00
David Anderson 33ad1b3d40 - Added the above DB change to schema.sql
- Omit the "after" clause from update.
- Web: add missing arg; fixes #749
- server: more --help additions

svn path=/trunk/boinc/; revision=16136
2008-10-06 00:18:36 +00:00
Janus B. Kristensen f361f95313 - Added "Highlight special users"-feature
- Allow projects to specify how special users can be highlighted in their forums through CSS
- Special users are now highlighted by default
- Post body background is now 25% transparent in browsers that support transparency (white.css only)


svn path=/trunk/boinc/; revision=16134
2008-10-05 16:00:11 +00:00
Janus B. Kristensen 60c09bf544 - Skip posts if user has been deleted from DB
- Gracefully fail on posts from users without any forum preferences set in the DB

svn path=/trunk/boinc/; revision=16133
2008-10-05 13:06:00 +00:00
David Anderson f17c0879de - changed some comments for Doxygen
svn path=/trunk/boinc/; revision=16130
2008-10-04 23:44:24 +00:00
Janus B. Kristensen 932eabba94 Allow projects to define their own overrides for the login forms - this helps enable CMS systems like Drupal to handle the logins for BOINC
svn path=/trunk/boinc/; revision=16127
2008-10-04 14:24:56 +00:00
Janus B. Kristensen ed032e15c1 Fixes Ticket #662 - list items are now kept open to allow more than one line of content
svn path=/trunk/boinc/; revision=16081
2008-09-27 11:52:19 +00:00
Janus B. Kristensen fc0ddc1d0d Fixes Ticket #662 - list items are now kept open to allow more than one line of content
svn path=/trunk/boinc/; revision=16080
2008-09-27 11:49:32 +00:00
Janus B. Kristensen 527cb2d6d4 Introducing the notion of "action lists" - list of actions.
This is part 1 of 2 for the fix of Ticket #740.

svn path=/trunk/boinc/; revision=16076
2008-09-27 09:51:29 +00:00
David Anderson b5fa84f084 - web: remove check on user agent
svn path=/trunk/boinc/; revision=16073
2008-09-26 23:02:53 +00:00
David Anderson 560b65dd85 - web: don't send an email after account is created via web;
it serves no purpose and some people apparently view it as spam.

svn path=/trunk/boinc/; revision=16060
2008-09-25 22:03:56 +00:00
Janus B. Kristensen de956c8eb0 Implementing Ticket #309 - you can now either reply to or quote a post
svn path=/trunk/boinc/; revision=16053
2008-09-25 12:56:42 +00:00
Janus B. Kristensen e2b48b6b34 - Fix form layouting issue in IE browser series by unpacking it from the table cell
- Fix missing newline after "Send message" button in authorcol
- Added CSS class forum_toplinks for links at the top of forum pages


svn path=/trunk/boinc/; revision=16048
2008-09-25 10:48:49 +00:00
Janus B. Kristensen ff29445385 - Replace nasty javascript generated HTML <input> buttons with normal links and CSS buttons.
- Fix CSS compatibility issues towards IE6-series of browsers
- Buttons will now light up when hovering over them with the mouse


svn path=/trunk/boinc/; revision=16047
2008-09-25 10:39:51 +00:00
David Anderson e432bb1182 - web: sub_sentence() went into an infinite loop
for a particular (non-ASCII) profile text.
    Not sure why, but I rewrote sub_sentence() in
    less obscure way and it works now
- web: slight cleanup of translation code.
    Can we please replace this with gettext()??

svn path=/trunk/boinc/; revision=16035
2008-09-22 17:14:03 +00:00
David Anderson 65a1bdab39 - lib: change XML_PARSER to handle attributes and spaces in tags.
e.g. it handles <foo /> correctly,
    and handles <foo attr="x">
    (it doesn't return the attributes, but it doesn't choke on them).
- GUI RPC client lib:
    use XML_PARSER to process authorization replies,
    e.g. so that it handles <authorized />

    TODO: use XML_PARSER to parse all GUI RPC requests and replies

- web: add a CSS entry for news item titles
- web (news items): add an optional "category" field to news items:
    suggested values: "server status", "news", "emergency".
    These are not used to display the items,
    but are passed in the RSS feed and could be used by news aggregators.
- manager: replace "BOINC-based account managers" with "account managers"


svn path=/trunk/boinc/; revision=16028
2008-09-19 18:08:17 +00:00
David Anderson fd3dbc1058 - client: ignore CUDA devices with major versions > 100
(apparently some report 9999)
- web: security changes: sanitize some params; escape some strings

svn path=/trunk/boinc/; revision=16005
2008-09-16 23:06:37 +00:00
Eric J. Korpela 3be692ce7f - Added additional spam fighting measure to profile.inc. Profiles for
users with RAC less than <profile_min_credit> with only be displayed if
 the viewing user is logged in.


svn path=/trunk/boinc/; revision=16004
2008-09-16 22:03:43 +00:00
David Anderson 1a75514084 - web: various security fixes
svn path=/trunk/boinc/; revision=15975
2008-09-07 07:40:56 +00:00
David Anderson 1d99bfec2b svn path=/trunk/boinc/; revision=15921 2008-08-21 23:24:11 +00:00
David Anderson a5f80bc2e6 - lib: fix typo
svn path=/trunk/boinc/; revision=15903
2008-08-20 16:49:37 +00:00
Bruce Allen 2aca840e83 User web pages, scheduler logs: link was missing because of incorrect path
svn path=/trunk/boinc/; revision=15872
2008-08-18 11:51:15 +00:00
David Anderson 9f6c4a133e - client: don't leak handles to shared-mem files
- client: don't leak process handles when abort jobs
- client: if an app exits or we kill it, always destroy the shmem segment.
- web: more HTML 4.01 Transitional conformity changes

svn path=/trunk/boinc/; revision=15865
2008-08-16 20:59:53 +00:00
David Anderson af38142142 - Bolt stuff
svn path=/trunk/boinc/; revision=15860
2008-08-15 22:07:24 +00:00
David Anderson 5b9e089cd8 - web: fix bugs in translation system
(language_select.php wasn't working)
- tr.po had some syntax error, and was way out of date.
    replaced it with en.po

svn path=/trunk/boinc/; revision=15858
2008-08-15 17:33:32 +00:00
David Anderson afbfeaa637 - web: start working towards the goal of passing the
"HTML 4.01 Transitional" test.
    The BOINC home page, project home page, and forum index now pass.
- web: .po files need to have CHARSET, LANG_NAME_NATIVE,
    and LANG_NAME_INTERNATIONAL

svn path=/trunk/boinc/; revision=15855
2008-08-15 16:26:55 +00:00
David Anderson 0e14fa8f9e - Finished implemenation of refresh intervals;
added "count" field to DB table to keep track of how many times
    we've refreshed.
- show refresh schedule on main courses page
- default for random structure is all units, not 1

svn path=/trunk/boinc/; revision=15846
2008-08-14 21:05:02 +00:00
David Anderson c69186ef74 - remove "doc_file" field; use short_name.inc
- fix tabl_exists()
- fix bugs when return to answer page
- create bolt_result records correctly

svn path=/trunk/boinc/; revision=15836
2008-08-14 15:46:30 +00:00
David Anderson 2b6f80af15 - web: stylesheet tweaks (from Simek)
svn path=/trunk/boinc/; revision=15807
2008-08-12 17:08:14 +00:00
Janus B. Kristensen 8ef70f4ec7 Removed warnings about empty language files at the first webpage hit of a new project.
These files (and hence missing arrays) are automatically generated and the warnings are therefore irrelevant.


svn path=/trunk/boinc/; revision=15802
2008-08-10 18:31:54 +00:00
David Anderson 26852af2f4 - web: forum tweaks (from Simek)
svn path=/trunk/boinc/; revision=15800
2008-08-10 01:13:00 +00:00
Rytis Slatkevičius 92e3e07e0c web: fix thread being marked as unread after posting to it (fix #506)
svn path=/trunk/boinc/; revision=15796
2008-08-09 19:27:17 +00:00
David Anderson 9cb87d2fc8 - client: don't use fixed-size buffer when looking for app files
in project prefs (avoid buffer overrun)
- web: don't show credit info if no_computing flag set

svn path=/trunk/boinc/; revision=15793
2008-08-09 16:39:20 +00:00
David Anderson bd492ae414 - web: forum tweak
svn path=/trunk/boinc/; revision=15778
2008-08-08 03:38:03 +00:00
David Anderson 13f51d2402 svn path=/trunk/boinc/; revision=15776 2008-08-07 22:13:37 +00:00
David Anderson a41848b43f svn path=/trunk/boinc/; revision=15774 2008-08-07 21:43:02 +00:00
David Anderson 534c9911c9 svn path=/trunk/boinc/; revision=15772 2008-08-07 21:12:18 +00:00
David Anderson 896bdb2e23 - web: improve white.css, and make corresponding PHP changes
(mostly from Simek)
    fixes #716
- validator: tweak the way host error rate is computed,
    e.g. on error bump rate by .1 instead of .05

svn path=/trunk/boinc/; revision=15771
2008-08-07 20:43:52 +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 6db22d8c0c - web: stylesheet fixes
fixes #708
- sched: slightly revise Bruce's fix


svn path=/trunk/boinc/; revision=15753
2008-08-05 15:06:42 +00:00
Rytis Slatkevičius b2304c576c user web: make team.inc translatable, and update en.po using the new script (fix #661)
svn path=/trunk/boinc/; revision=15747
2008-08-04 10:07:09 +00:00
David Anderson e866381c4a - Bossa stuff
svn path=/trunk/boinc/; revision=15726
2008-07-31 18:28:49 +00:00
David Anderson 884bad0975 - client: show proxy info in messages at startup and when changed
fixes #704
- web: fix the am_set_info.php RPC
    (most args are optional, not mandatory)

svn path=/trunk/boinc/; revision=15716
2008-07-30 21:37:41 +00:00
David Anderson dd59703811 - web: allow profiles to have blank text fields
svn path=/trunk/boinc/; revision=15707
2008-07-30 02:16:10 +00:00
David Anderson b18a45ec97 - manager: display days w/ 2 decimals
svn path=/trunk/boinc/; revision=15645
2008-07-21 22:07:25 +00:00
David Anderson 0496591da2 - client: if an app is using CUDA coprocessors,
pass it additional command line arg(s) "--device X" (X=0,1,...)
    to tell it which GPU(s) to use.

svn path=/trunk/boinc/; revision=15642
2008-07-21 16:25:03 +00:00
David Anderson 27dee4e450 - manager: fix typo
svn path=/trunk/boinc/; revision=15640
2008-07-20 21:27:44 +00:00
David Anderson e70273774a - scheduler: in matchmaker scheduler, if find a "locked" array slot,
which whether we're the process that locked it (from Artyom Sharov)

svn path=/trunk/boinc/; revision=15635
2008-07-18 20:59:59 +00:00
David Anderson a227801dd8 - scheduler: in matchmaker scheduler, if find a "locked" array slot,
which whether we're the process that locked it (from Artyom Sharov)

svn path=/trunk/boinc/; revision=15630
2008-07-17 20:58:42 +00:00
David Anderson a6cf172fb0 - scheduler: fix logic to not send plan-class apps to clients
that don't know about plan class

svn path=/trunk/boinc/; revision=15609
2008-07-16 04:25:11 +00:00
David Anderson 8c41a07992 - scheduler: Add a notion of "hard app" for SETI@home.
If an app is hard, the scheduler always does the deadline check,
    even if the client has no other jobs for this project.
    And the estimated wallclock duration is multiplied by 1.3,
    to avoid sending jobs to hosts that will barely make the deadline.

    Hard apps are marked by setting weight = -1.
    This is a total kludge, to avoid adding another field to app.

svn path=/trunk/boinc/; revision=15607
2008-07-15 21:43:45 +00:00
David Anderson ba6526f8c9 - scheduler: add constructor for HOST_USAGE structure
(otherwise get random crap in cmdline)


svn path=/trunk/boinc/; revision=15605
2008-07-14 22:32:20 +00:00
David Anderson 1147e60b1a - web: fix bugs that cause backslashes to be introduced
in global prefs update via account manager RPC

svn path=/trunk/boinc/; revision=15602
2008-07-14 19:13:19 +00:00
David Anderson 08f126f53b svn path=/trunk/boinc/; revision=15600 2008-07-13 04:26:23 +00:00
David Anderson f65d1927ae svn path=/trunk/boinc/; revision=15570 2008-07-08 21:13:27 +00:00
David Anderson f69a288ac0 - web: if stop_web file is present, don't allow any DB access
(I broke this a few days ago)
- client: improve message for file upload server errors

svn path=/trunk/boinc/; revision=15569
2008-07-08 21:07:33 +00:00
David Anderson a054467f9b - web: include "reason" field in emails for thread moderation
svn path=/trunk/boinc/; revision=15553
2008-07-06 22:30:10 +00:00
David Anderson 520142d475 - web: check profile text with Akismet if enabled
- web: in get_logged_in_user(), check for bad user agent types
    (a bit of spam-resistance)

svn path=/trunk/boinc/; revision=15552
2008-07-04 20:06:31 +00:00
David Anderson e9fe83cf8b - boinc_submit: add --jobs and --abort options
svn path=/trunk/boinc/; revision=15547
2008-07-03 18:41:13 +00:00
David Anderson c74f8d9a17 svn path=/trunk/boinc/; revision=15534 2008-07-01 22:16:49 +00:00
David Anderson 87c57e4444 svn path=/trunk/boinc/; revision=15533 2008-07-01 22:15:55 +00:00
David Anderson 2d6d4110ea - web: don't check for the stop_web file in BoincDb::get().
That forces that file to include a bunch of unnecessary stuff.
    Do the check at a higher level.

svn path=/trunk/boinc/; revision=15532
2008-07-01 22:11:28 +00:00
David Anderson 012ffd3614 - bolt stuff
svn path=/trunk/boinc/; revision=15527
2008-07-01 20:33:39 +00:00
David Anderson 0c5c51d531 - web: when hide/unhide/delete posts,
set the timestamp of the thread to the timetamp of
    the latest non-hidden post (rather than to now).
    Same thing for forum timestamp.
- scheduler: return more informative message to user in case of
    request message parse error

svn path=/trunk/boinc/; revision=15526
2008-07-01 16:34:51 +00:00
David Anderson 0f60f0d42b - scheduler: fix bug where a pointer to a 32-bit time field
was being cast to a pointer to 64-bit time field
    (this caused wrong results on 64-bit servers)
    From Sharov Artyom.

svn path=/trunk/boinc/; revision=15517
2008-06-30 23:05:16 +00:00
David Anderson cff13c8871 - server: add optional <no_validate> element to output file <file_ref>s.
This tells the sample bitwise validator to ignore this file.
- client: parse the above field (avoid "unparsed XML" msgs)

svn path=/trunk/boinc/; revision=15514
2008-06-30 16:46:05 +00:00
David Anderson b21be7c4d4 - client: add "Suspending computation" messages for
system idle and initial delay cases.
    Rom: please back-port

svn path=/trunk/boinc/; revision=15513
2008-06-29 20:57:21 +00:00
David Anderson 370778e484 - Bolt
svn path=/trunk/boinc/; revision=15511
2008-06-27 23:15:57 +00:00
David Anderson 37f0d8b6ef svn path=/trunk/boinc/; revision=15501 2008-06-26 23:24:43 +00:00
David Anderson 1bd7742c4a - more gcc fixes
svn path=/trunk/boinc/; revision=15496
2008-06-26 20:53:51 +00:00
David Anderson 3dd69f52cd - client: improve error messages when can't copy files
- client: change CUDA detection on Linux and Mac.
    Look for libcuda.so in /usr/lib/nvidia and /usr/lib64/nvidia.
    If we find it, assume that libcudart is in the library path.

svn path=/trunk/boinc/; revision=15477
2008-06-26 03:50:03 +00:00
David Anderson 8062bc1bbd - web: insert() functions return ID
svn path=/trunk/boinc/; revision=15461
2008-06-24 22:20:40 +00:00
David Anderson 6e731f0b7a - API, Unix: when boinc_finish(x) is called, exit with code x
even if signals happen in the atexit() handling
- API: don't print XML parse warnings for init_data.xml file

svn path=/trunk/boinc/; revision=15454
2008-06-23 19:51:07 +00:00
David Anderson e88e698106 - scheduler: change message if bad auth (fixes #685)
svn path=/trunk/boinc/; revision=15445
2008-06-22 19:14:53 +00:00
David Anderson 5a3d1fc0a5 - client (Win): if we're not in protected mode,
don't create shmem segs in global name space.
    Hopefully this will fix a bug
    (on Vista, UAC off, non-protected install)
    where apps fail to attach to shmem.

svn path=/trunk/boinc/; revision=15444
2008-06-20 21:33:02 +00:00
David Anderson bf55f0838d - client (Win): if running as service, and service is suspended/resumed,
restore previous run state rather than going to auto.
- client: improve startup messages (non-system user??)

svn path=/trunk/boinc/; revision=15442
2008-06-20 16:21:55 +00:00
David Anderson 4210ccff4c - diagnostics library: in signal handler, use _exit() instead of exit();
an atexit() function might have been what caused the signal

svn path=/trunk/boinc/; revision=15437
2008-06-19 20:56:36 +00:00
David Anderson e65c5f562e svn path=/trunk/boinc/; revision=15434 2008-06-19 03:58:19 +00:00
David Anderson 13319d65f8 - If a hidden post is deleted, don't decrement its thread's post count;
it was already decremented when the post was hidden
- Added a function to forum_repair.php to fix inconsistencies
    due to the above bug

svn path=/trunk/boinc/; revision=15433
2008-06-19 03:44:27 +00:00
David Anderson bfa6747467 - web: shuffle code to eliminate redundancy
svn path=/trunk/boinc/; revision=15419
2008-06-17 17:38:02 +00:00
David Anderson 956a5a2cc5 - web: fixed numerous bugs in team founder transfer mechanism
svn path=/trunk/boinc/; revision=15398
2008-06-13 16:40:51 +00:00
David Anderson aaa60334be - web: add $prefix arg to sample project_header(), project_footer()
(fix links on profile-index pages)
- web: use cache-control "no-store" only for home.php.
    This makes it so that, e.g. if you scroll to the middle of a long page,
    follow a link, then click Back,
    you'll go back the original scroll position rather than top of page.

svn path=/trunk/boinc/; revision=15391
2008-06-12 04:50:10 +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 0eb6091c0a - web fixes
svn path=/trunk/boinc/; revision=15388
2008-06-11 16:49:56 +00:00
David Anderson 0cee57e3de - added Free-DC CPID stats
svn path=/trunk/boinc/; revision=15387
2008-06-11 16:08:09 +00:00
David Anderson f0bd46e2c1 - web: change order of includes
svn path=/trunk/boinc/; revision=15381
2008-06-10 18:12:29 +00:00
David Anderson cf6a5281b6 - web: moved some basic utility functions to a separate file
that doesn't need to include all sorts of crap

svn path=/trunk/boinc/; revision=15368
2008-06-05 22:35:03 +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
David Anderson 348f90574c - web: fixed a couple of references to "global $logged_in_user".
It's $g_logged_in_user.

svn path=/trunk/boinc/; revision=15362
2008-06-05 04:35:21 +00:00