Commit Graph

4467 Commits

Author SHA1 Message Date
David Anderson b7295c287c web: fix problems with download page on project sites
The Linux installers on the BOINC web site (.sh files)
have out-of-date binaries, and are not real installers.
We shouldn't direct users to them.
But projects and AMs that use auto-attach were directing
Linux users to these installers.

This change fixes that.
Linux users are not shown a download button, but are instead directed to
https://boinc.berkeley.edu/wiki/Installing_on_Linux
which lists various options for installing BOINC on Linux
(starting with package managers).

Also: the download page (download_software.php) is also used
by account managers (Science United).
In this case, it should show instructions for
adding an account manager, not attaching to a project.

Note: there's an analogous update to download.php on the BOINC web site:
if the machine is Linux,
show a link to the Linux instructions rather than a download button.
2023-03-20 15:40:00 -07:00
David Anderson 21ec387a0d Web: remove XSS vulnerability.
team_members.php and top_*.php have a textual parameter "sort"by".
Validate it.
2023-03-14 17:39:29 -07:00
Vitalii Koshura 1dfaf6cc5f
Update translations
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-12-12 10:21:39 +01:00
David Anderson dc65f38742 get_project_config.php: always send terms of use if present. 2022-12-02 12:44:32 -08:00
David Anderson 9213ac3613 web: fix recaptcha validation
The old code stopped working; I don't know why.
Maybe some change at Google's end.
I switched to a simpler method, as described here:
https://developers.google.com/recaptcha/docs/verify
2022-11-29 13:12:07 -08:00
David Anderson 2f46ab55d7 web: show disk size in TB if needed 2022-11-04 20:10:26 -07:00
lfield 7784b61b5e
Merge pull request #4961 from BOINC/dpa_recent
server status page: 'last 100' -> 'recent'
2022-10-11 09:53:19 +02:00
David Anderson 90e79a2956 server status page: 'last 100' -> 'recent' 2022-10-10 17:39:15 -07:00
David Anderson 9ee282f2ae web: if not-in-use prefs undefined, use in-use values 2022-09-01 15:43:01 -07:00
David Anderson 70285e2d14 web: add "requires BOINC 7.20.3+" for new prefs 2022-08-07 10:49:15 -07:00
David Anderson 588ab8fdfa Web: in computing prefs, move swap limit to Disk section 2022-08-06 21:07:07 -07:00
David Anderson 3ce9291145 change "Tasks" to "General" 2022-08-06 06:58:39 -07:00
David Anderson 3b1ebfd1b0 Add new "not in use" (niu) prefs
niu_cpu_usage_limit: CPU throttling while computer not in use
    niu_max_ncpus_pct: # CPUs to use while computer not in use
    niu_suspend_cpu_usage: suspend if non-BOINC usage while computer not in use

Client: parse these from global_prefs files, and enforce them.
    If not specified, use the corresponding (non-niu) pref all the time.

Web: add them to the computing prefs pages.
    Refactor the prefs into:
    in use / not in use / tasks / disk / network

TODO: update the Manager prefs dialog accordingly
2022-08-02 13:59:32 -07:00
Vitalii Koshura df9c80fd9f
Update translations
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-07-01 16:26:24 +02:00
David Anderson eae716f6cb Tweak Bolt and Bossa to make them work again
(which they miraculously do, on the test project).
2022-06-17 15:10:28 -07:00
Vitalii Koshura 07d7a2e4be
Merge pull request #4794 from BOINC/dpa_web8 2022-06-17 12:52:13 +02:00
David Anderson 3ccf0e57f9 minor fix in team_import.php 2022-06-12 02:37:21 -07:00
David Anderson 5fae50505a Fix PHP 8.1 errors in a couple of PHP scripts in /ops 2022-06-12 00:46:44 -07:00
David Anderson 1bbc873314 web: a couple more PHP 8.1 fixes 2022-06-11 18:24:42 -07:00
David Anderson 2bf8421fab web: a couple more PHP 8.1 fixes 2022-06-11 12:20:38 -07:00
David Anderson 0d7d29e986 Web: various changes to remove PHP 8.1 warnings and errors
- implode() cares about arg order
- strlen(), strstr(), stripslashes() don't take null arg
- time() takes no args

There are probably others.
I don't currently have 8.1 set up, and am working off bug reports.
2022-06-11 00:00:08 -07:00
David Anderson 570541b134 Web: fix some PHP 8 deprecation warnings
Note: if a function expects, say, a string (and not null)
and you get a warning about a null arg,
don't fix it by casting the param to string.
That masks possible bugs.
Instead, find out where null is being passed, and fix it there.

web: server status: fix case where app has no results

web: fix case where get_logged_in_user() is called twice,
first with must_be_logged_in == false and later true.

web: xml_error(): $num default is -1

web: validate_email_addr(): tell user to check spam folder if no email
2022-06-09 14:33:20 -07:00
ashkanj 617e1341e3
[web] fix deprecated passing null to parameter of type string.
see https://github.com/BOINC/boinc/issues/4768
2022-06-09 19:01:25 +02:00
Vitalii Koshura 0b3d37399d
Update localization
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-05-23 23:36:27 +02:00
David Anderson accf756b02 - remote job submission: clean up permissions checking 2022-04-21 12:53:49 -07:00
David Anderson de87ee031f web: make forms fluid
web: add optional "extra" arg to form_start, e.g. to allow file upload
web: change form div spacing to be 3+9 rather 4+8
    (could make this a parameter)
web: add form_focus() to initialize focus on a field
web: add optional nrows arg to form_input_textarea()

- add KW_CANADA keyword for WCG
- use https: for BOINC URL
2022-04-06 14:49:06 -07:00
David Anderson e029a737c7
Merge pull request #4549 from BOINC/dpa_news
web: for News forum, always put oldest post (the news) first
2021-12-07 19:40:17 -08:00
David Anderson 98c3549d85 Add a new mechanism to discourage spam: if you put
define('VALIDATE_EMAIL_TO_POST', '1');
in your project.inc, users have to validate their email addrs
to post in the forums, send PMs, or create profiles.
2021-12-03 22:58:12 -08:00
David Anderson 0f01ba84c5 web: remove use of "group by" to avoid error w/ newer MySQL 2021-11-08 20:04:55 -08:00
David Anderson a25db5df62 web: exempt moderators from oldest-first order for news forum 2021-10-08 00:37:02 -07:00
David Anderson 335fff7079 web: for News forum, always put oldest post (the news) first 2021-10-07 18:04:52 -07:00
Vitalii Koshura ffafd936e6
Update translations
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2021-08-10 09:55:38 +02:00
David Anderson 508a22bda9 Add ATI, Intel(R) to GPU maker list 2021-05-03 19:43:33 -07:00
David Anderson c1125582cc GPU list: strip leading "AMD" or "NVIDIA" from model to avoid dups in list 2021-04-30 14:06:13 -07:00
David Anderson 684b55badf Web: add functions for fetching and displaying RSS feeds 2021-04-06 12:40:45 -07:00
David Anderson 9000318170
Merge pull request #4155 from BOINC/dpa_download_info
Web RPC: add an RPC that lets "front-end" web sites show Download buttons that auto-attach to back-end BOINC projects or account managers.
2021-01-24 23:37:25 -08:00
David Anderson 43e277c82a Web RPC: add an RPC that lets "front-end" web sites show Download buttons that auto-attach to back-end BOINC projects or account managers. 2021-01-22 00:47:02 -08:00
David Anderson 6948c2d4f1 Allow invitation codes for create-account RPCs only
If you define INVITE_CODES_RPC, create-account RPCs must include
a matching invitation code.
Record this code in user.signature to keep track
of where the RPCs are coming from.
2021-01-19 18:48:51 -08:00
David Anderson 10fd6db22f web: remove 30-day limit in forum search function
The explanation for an error code could be years old.
2020-12-02 16:10:25 -08:00
Matt c19add3c0a Merge branch 'master' of https://github.com/mikaey/boinc 2020-11-10 11:39:29 -06:00
Matt 5c9acc064c Don't call magic_quotes_gpc on newer versions of PHP 2020-11-10 11:37:17 -06:00
Kevin Reed 3cf5fb5e54
Merge pull request #4052 from BOINC/dpa_web2
web: minor tweaks
2020-10-10 09:40:39 -05:00
David Anderson 01fc42f44a web: minor tweaks
- allow specification of panel body class
- say "Language: default" in language selector
2020-10-09 12:37:46 -07:00
David Anderson 7d68422e94 web: in "all projects" certificate, show message if no projects
... rather than a certificate with PHP warnings at the top
2020-10-07 16:35:12 -07:00
Rytis Slatkevičius 03b2e00990
Merge pull request #4030 from BOINC/dpa_submit_batch
remote job submission: specify all fields on batch creation.
2020-10-03 10:29:49 +03:00
David Anderson e725f9bd62 manage_privileges, badge_assign.php: fix DB inserts
For newer MySQLs, need to specify values for all fields
2020-10-01 15:08:10 -07:00
David Anderson dd332d61ed remote job submission: specify all fields on batch creation.
Newer versions of MySQL error out if you don't.
2020-09-24 22:06:53 -07:00
David Anderson 7423971fd4
Merge pull request #4027 from BOINC/Rytiss-account_creation
Check account creation in the project frontpage
2020-09-21 13:18:03 -07:00
Rytis Slatkevičius fc126a532e
Check account creation in the project frontpage 2020-09-21 13:58:17 +03:00
Rytis Slatkevičius 0d1b425959
Add a project-customizable hook to result pages 2020-09-21 13:11:33 +03:00