Commit Graph

1549 Commits

Author SHA1 Message Date
Rytis Slatkevičius e9d5a08eda Load job input file information from the database instead of checking download dir (fixes remote files). 2014-04-29 10:43:39 +03:00
Rytis Slatkevičius 5b62645853 Add missing directory separator to the last commit 2014-04-29 10:23:13 +03:00
Rytis Slatkevičius b4e8cc6b03 Read sandbox directory from the config file and also allow project.inc override for it. 2014-04-29 10:08:33 +03:00
Rytis Slatkevičius 166d9f46c0 If sandbox link file does not exist, return an error 2014-04-25 15:22:46 +03:00
Rytis Slatkevicius e5bdb008df Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2014-04-25 11:17:47 +03:00
Rytis Slatkevicius a67819e42a Split select name from file filter regexp in sandbox_file_select; optionally allow selection of an empty value. 2014-04-25 11:16:06 +03:00
David Anderson 3b4a604498 web: tweaks to last commit 2014-04-24 09:54:13 -07:00
David Anderson 278f3fd370 web: use new DB API here and there; should be no visible changes 2014-04-24 09:41:59 -07:00
David Anderson e5dc4bb3f1 Server: add some functions to PHP DB interface for platforms
- I'd like to transition from Python (and the clunky
  DB interface we developed) to PHP for tools like xadd
- I'd like to figure out how to change the PHP DB interface
  so that we can define generic functions like insert(), update() etc.
  just one, in a base class.
2014-04-22 10:03:16 -07:00
David Anderson 8dd86be33b PHP interface to remote job submission: support remote input files 2014-04-21 11:34:10 -07:00
David Anderson 89d92f4a24 admin web: show PHP warnings 2014-04-20 00:29:05 -07:00
David Anderson af99251e79 web: let projects disable forums
Do this by putting
define("DISABLE_FORUMS", true);
in your html/project/project.inc.

If this is set, admin users can still see enough forum functionality
to post and edit news items
(this is linked to from the Admin web interface).

Other users, or non-logged-in access, sees news but no forums
or forum-related info.
2014-04-18 15:54:28 -07:00
David Anderson 4d7c0113f5 web: tweaks for "no teams" feature 2014-04-18 00:15:05 -07:00
David Anderson 1010cee2ae web: 2014-04-17 23:31:51 -07:00
David Anderson 6706f5c893 admin: add "delete_spammers.php": script to help delete spam profiles 2014-04-17 12:41:04 -07:00
David Anderson 7c9b5a6b56 web: lets project admins delete posts and threads
Spam needs to be deleted, not hidden.
Add buttons for deleting posts and threads.
For now, these are available only to admins
(ADMIN, DEV, SCIENTIST privileges).
2014-04-16 22:54:17 -07:00
David Anderson 28b36a331a admin web: don't show deprecated claimed credit 2014-04-16 22:00:47 -07:00
Rytis Slatkevičius 8df684206b Extend user's sandbox to allow uploading multiple files at once (note: supported browsers are Firefox 3.6+, Safari 5+, Chrome 6+, Opera 11+, IE 10+; for older browsers only one file will be allowed like before). 2014-04-15 12:54:11 +03:00
David Anderson ec8200d0eb Web: in PHP < 5.3.0, mysqli doesn't support persistent connections 2014-04-11 11:02:12 -07:00
David Anderson 641b2da0b3 admin web: fix bug that could cause badges to not get deleted properly. 2014-04-10 09:16:10 -07:00
David Anderson 936556b4ac Admin web: don't use project banner; use stylesheets
It doesn't make sense to show the project banner in admin pages;
the banner typically has (broken) links to non-admin pages.

Also, include basic stylesheets in admin pages.
2014-04-03 12:14:37 -07:00
David Anderson fc7c75b200 server: parse peak memory/disk info from client, store in DB, display in web
The latest client reports the peak working set size, swap size,
and disk usage for completed jobs.
Add fields to the results table to store these.
Parse them in scheduler request messages, and write to the DB.
Display them in the result web page.

This data can be used to improve (or even automate)
the job estimates for memory and disk usage.
2014-04-02 19:35:59 -07:00
David Anderson 70c458aa44 BOINC web site: fix PHP warnings; change VBox link on download page 2014-03-24 15:13:06 -07:00
David Anderson ffda962698 web: get rid of If-Modified-Since stuff in cache.inc.
We can't use this since cache functions are called in the middle of page generation
2014-03-22 10:30:36 -07:00
David Anderson 6216673eca web: fix missing mysqli change 2014-03-22 09:04:58 -07:00
David Anderson 42a386e89f Bossa: use new DB interface; from Janus 2014-03-21 10:40:12 -07:00
David Anderson 8e59a5b2ae web: if present, use the mysqli interface to MySQL.
The older interface is deprecated and may eventually be removed.
Note: some of the more ancient PHP code directly uses the old interface.
We'll have to update this at some point.
2014-03-21 01:08:47 -07:00
David Anderson 8e5d9c1f12 web: message tweak 2014-03-16 14:47:50 -07:00
David Anderson 92f35f9f7b web: when export posts as RSS feed, escape HTML for non-admin posters 2014-03-15 15:33:38 -07:00
David Anderson 2869cf4bbd web: fix typo 2014-03-14 12:03:12 -07:00
David Anderson fbc81b40ae web: only show HTML in posts by admins (fix yesterday's changes) 2014-03-14 00:20:07 -07:00
David Anderson ff484b9228 web: allow HTML in news items
Now that the manager supports images/video in notices,
we need to allow these in new posts
(i.e. posts to the News forum, which only admins can do).
Don't escape HTML tags in the web display of news items,
or in their export in RSS
2014-03-13 13:08:27 -07:00
David Anderson 0cdee0af4e Fixes for the BOINC-wide teams site
- the exported team list wasn't parsing due to non-ASCII characters
    in some team descriptions.
    htmlspecialchars() wasn't doing the job.
    Use DOMDocument instead.
- If SHOW_NONVALIDATE_TEAMS is set (as on the BOINC-wide teams site)
    show teams whose founders email addresses are not validated
    (and hence won't be exported).
2014-03-07 00:37:44 -08:00
David Anderson 5381def663 server: use gpu_active_frac in scheduling decisions
On some hosts, gpu_active_frac may be much less than active_frac
(i.e., GPUs may be available much less than CPUs).
Use gpu_active_frac in the following places:

- scheduler: in estimating the elapsed time of jobs,
    to decide whether they can meet deadline
- scheduler: in computing the effective speed of a (host, app version),
    when deciding what size class it belongs to
- size_census: in computing effective speed of (host, app versions)

(Previously, we were just using active_frac in all these cases)
2014-03-06 21:23:02 -08:00
David Anderson df1d8e2bde server: store and display gpu_active_frac
- gpu_active_frac is the fraction of time GPU use is allowed
  while the client is running.
  Previously the client reported it but we weren't storing it in the DB.
  We may need it in the future for batch scheduling logic.
- fix a crashing bug in scheduler
- client: minor message tweak
2014-03-06 13:23:52 -08:00
David Anderson 6ff59eae06 web: remove "mobile" from host venue select 2014-02-08 15:38:11 -08:00
David Anderson 01b78c714a Remote job submission: allow efficient batch query
The batch query call used by Condor (query_batch_set(), in the C++ API)
returned info about all the jobs in the set of batches,
even those that hadn't changed.
This is potentially inefficient - a query might return info
about 10,000 jobs, only a few (or none) of which have changed state
since the last call.

Solution: add a "min_mod_time" parameter to the call.
Only jobs that have changed state since that time are reported.
Also, add a "server_time" field to the return,
giving the current time on the server
(in case there's clock skew between client and server)

Also, fix some text scrambling introduced in previous checkin;
there must have been a gremlin in my vim.
2014-01-16 10:24:10 -08:00
David Anderson fe1db8060a Remote job submission: allow a limit on the # of in-progress jobs per user 2014-01-13 21:52:55 -08:00
David Anderson e979588b7f web: cleanup and minor bug fixes, from Janus 2014-01-09 13:51:12 -08:00
David Anderson e672cdac37 web: don't call db_init() in uotd.inc 2014-01-07 13:04:59 -08:00
David Anderson e8110e6918 Fix last commit 2013-12-28 22:53:47 -08:00
David Anderson ecdc25968a Extend PHP interface for Web RPCs
- add a PHP interface for lookup_account()
- PHP interfaces return error number as well as message
  (messages change; numbers don't)
- using symbolic error codes instead of hardwired numbers in PHP code
2013-12-28 22:50:59 -08:00
David Anderson ef245d456b web: show badges on private user page 2013-12-23 22:13:27 -08:00
David Anderson 92fec3e4ae admin web: enhance badge admin page
- add delete button
- show # of badges assigned
- don't use separate head/tail function are admin pages
- add badge assign task for new projects
- turn on db_dump, update_uotd, update_forum_activities,
  update_profile_pages, notify for new projects
2013-12-23 21:02:55 -08:00
David Anderson 387c04c365 web: tweak badge images 2013-12-22 20:39:52 -08:00
David Anderson b33bf69a98 web: enhance badge features
- the default badges (defined in ops/badge_assign.php) are now
  based on RAC percentile (top 1%, 5%, and 25%) rather than plain RAC.
- RAC percentile badges are now granted for teams as well as users;
  show badges in team page.
- move badge utility functions to inc/util_ops.inc
2013-12-20 15:03:24 -08:00
David Anderson 4d738ab4fb admin web: add script for removing zombie hosts 2013-12-18 13:32:23 -08:00
David Anderson 00897ecc3f web: remove some mysql_* calls 2013-12-16 19:22:34 -08:00
David Anderson 0fdfcbd074 web: remove some mysql_* calls 2013-12-16 00:45:45 -08:00
David Anderson 13cb0e817f web: change Recaptcha URL; the old one doesn't work w/ Chrome, IE 2013-12-06 17:45:40 -08:00
David Anderson 65b5ab5184 server/web: preliminary support for badges
- DB: add tables for badges and badge/user and badge/team associations
- add script that defines 3 RAC-based badges and assigns them
- add images for these badges
- add admin page for creating/editing badges
- show badges on user page
not done:
- figure out how to send badges to client
- display badges somewhere in the GUIs
- export badges in db_dump
- enable badges by default for new projects
2013-12-05 10:14:26 -08:00
David Anderson 6e622fa017 web: code cleanup in translation code 2013-12-04 10:22:11 -08:00
David Anderson 5357952783 web: when using sub_sentence() to truncate user-supplied text, you must first use output_transform() (to convert BBcode to HTML) and then sanitize_tags() (to remove HTML tags). 2013-11-24 10:13:07 -08:00
David Anderson 1872fd0f6b web: eliminate some mysql_*() calls in preparation for mysqli conversion 2013-11-22 22:46:19 -08:00
David Anderson 0bedadd429 web: result display tweak, and code cleanup 2013-11-21 11:34:43 -08:00
David Anderson 5efa5d7388 admin web: fix links for app version in result page 2013-11-17 13:47:05 -08:00
David Anderson 92b25f841d admin web: in result display, improve the way app version is shown 2013-11-17 11:45:11 -08:00
David Anderson 5689ded88d web: on HTTPS pages, load stylesheets using HTTPS also; otherwise Firefox rejects them 2013-11-14 18:23:44 -08:00
David Anderson b978b2aa53 web: message tweak 2013-11-07 10:54:32 -08:00
David Anderson a673c12300 Web: add code for language selection 2013-10-29 00:09:27 -07:00
David Anderson 519e0629d3 BOINC web site language fixes 2013-10-23 20:09:04 -07:00
David Anderson a5757e8ecf Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2013-10-23 18:32:57 -07:00
David Anderson 916f46aa8c language changes 2013-10-23 18:32:30 -07:00
David Anderson abd33fbdd6 language name update 2013-10-23 18:31:06 -07:00
David Anderson 4408b80cf5 Add language_names.inc 2013-10-23 15:57:10 -07:00
Rytis Slatkevicius b7a89884b8 Fix incorrect assigment title for users; fix warnings in assign.php 2013-10-10 16:35:43 +03:00
David Anderson 3b395872be Upgrade script: fix message text: default MySQL user is owner of server, not current user 2013-10-09 12:42:55 -07:00
David Anderson 78b7faed99 web: remove "Pending credit" link from account page. This page didn't work, and is subsumed by results.php 2013-09-29 02:44:47 -07:00
David Anderson d40bbcf9e5 Web RPC interface: don't need Curl if you're just doing a GET 2013-09-18 23:51:23 -07:00
David Anderson f06d4af433 Add PHP interface to Web RPCs (create_account, to start) 2013-09-18 23:28:18 -07:00
David Anderson 2a2c9c4ad8 remote job submission: add notion of "expire time" for batches (for Condor)
- Batches now have optional "expire time".
  If this time passes and the batch is not retired, abort and retire it.
- Add script "expire_batches" which enforces the above.
  Run it as a periodic task.
- Add a web RPC for setting the expire time of a batch
  (it can be changed multiple times)
- Add a C++ interface for this RPC
- Add a BOINC_SET_LEASE command to the BOINC GAHP
  ("lease" is Condor term for expire time)
2013-09-17 13:35:55 -07:00
David Anderson a7ceaee1e3 Web: fix PHP warnings 2013-09-08 23:36:03 -07:00
David Anderson e798bf50eb Web: in result list, sort by name if showing names, and allow search by result name. 2013-09-08 15:20:49 -07:00
David Anderson 17c8f90926 BOINC web: fix translation problems
- change build_po.php to included news.inc and omit poll stuff
- remote.po.inc files before generating them (otherwise we'll always append)
2013-08-22 16:33:08 -07:00
David Anderson cca4b96152 admin web: fix PHP warning 2013-08-16 12:20:40 -07:00
David Anderson 6501519031 admin web: in failure-by-version page, show anon platform versions correctly 2013-08-16 11:59:46 -07:00
David Anderson 1c31f6feaa Condor: fix bug when 2 input files have same contents; fix error messages 2013-08-09 16:06:36 -07:00
David Anderson 6a34f264d4 web: remove mobile venue for the time being 2013-08-04 15:12:34 -07:00
David Anderson 24788d4f54 admin web: fix typo in cancel jobs page 2013-08-03 18:31:43 -07:00
David Anderson eb489c487c web: show product name in host lists, and don't show domain name twice 2013-08-02 13:35:17 -07:00
David Anderson e1523cc093 admin web: add option to Cancel Jobs page to cancel only unsent jobs 2013-07-30 14:07:34 -07:00
David Anderson e85a18289e client (win): fix typo in last commit 2013-07-30 10:47:54 -07:00
David Anderson d078038daa web: add "mobile" prefs venue
Note: the prefs code is badly in need of modernization.
Adding a venue should not require changing a bunch of code.
2013-07-26 11:23:27 -07:00
David Anderson 3faf18c7b4 remote_submit script: exit with nonzero status if error
Also, suppress warnings from simplexml_load_string()
2013-07-16 13:18:46 -07:00
David Anderson 4d09bb549c web: fix bug where am_set_info RPC incorrectly removed people from teams
The problem: post_int() was returning 0 rather than null when arg is missing
2013-07-10 13:00:50 -07:00
David Anderson 7a281665c0 Admin web: change App and App Version admin pages to limit POST size
On projects with lots of app versions and small POST size limits
(PHP or Apache config?) limit could be exceeded,
causing incorrect DB updates.
Fix this by having one Update button per app version.
Similar for apps.
2013-07-02 14:51:19 -07:00
David Anderson 85245f1802 web: show host product name to owner 2013-06-26 16:23:50 -07:00
David Anderson 2ad0e83417 web: don't show host cache size if we don't know it 2013-06-26 16:16:21 -07:00
David Anderson 57a6d3d17a client (Android): make max battery temperature a preference
Note: internal change only; there's no GUI for this yet
2013-06-20 21:47:34 -07:00
David Anderson 286646554e web: fix broken link to change-password form if SECURE_URL_BASE not defined 2013-05-28 23:19:18 -07:00
David Anderson 48e044fa76 Condor interface: bug fixes, and set WU names correctly 2013-05-28 23:14:17 -07:00
David Anderson 023e1ce684 web: don't try to increate PHP mem limit to 256MB
Apparently this generates warning messages that fill up log files,
and we may not need it anymore.
2013-05-22 11:10:49 -07:00
Rytis Slatkevicius 258c6d802b Allow additional CSS file for ops pages (defined in project.inc as ADMIN_STYLESHEET) 2013-05-17 11:12:29 +03:00
David Anderson 1b4c2c0dbf web: fix PHP warnings 2013-05-13 23:29:19 -07:00
David Anderson e12280909f web: fix PHP warnings, and a small bug in forum search 2013-05-13 12:29:07 -07:00
David Anderson b8edb91ec1 web: fix PHP warnings, and use HTTPS for all forms with password 2013-05-09 22:49:25 -07:00
David Anderson b0555bbf24 web: fix some PHP warnings 2013-05-07 00:53:06 -07:00
David Anderson 82b153b75d admin web pages: validate some input values 2013-05-06 16:41:55 -07:00
David Anderson c93b12dd60 web: fix PHP warnings 2013-05-04 10:15:04 -07:00
David Anderson 6b22ba2902 web: fix PHP warning 2013-05-04 00:01:20 -07:00