Commit Graph

1549 Commits

Author SHA1 Message Date
David Anderson 2f58137d38 web: make [pre] work in admin posts 2014-08-27 14:27:55 -07:00
David Anderson c39d497bae web: add sum() member for BoincCreditUser and BoincCreditTeam 2014-08-16 14:09:42 -07:00
David Anderson 126183ce19 server: add script to export per-app credit data as XML
Add an official notion of "sub-project": see
http://boinc.berkeley.edu/trac/wiki/PerAppCredit
2014-08-15 16:20:40 -07:00
David Anderson dbd2d03a0d server/web: add support for per-application credit
See http://boinc.berkeley.edu/trac/wiki/PerAppCredit
If enabled (by the <credit_by_app> config flag)
validators will maintain on a per-(app, user, credit type) basis,
and same for teams,
in new DB tables credit_user and credit_team.
This info is displayed in the web site, on user and team pages,
using project-supplied functions to generate the HTML.

Note: update_stats doesn't decay the recent-average values
for per-app credit; I'll add this if needed.
2014-08-15 14:01:32 -07:00
David Anderson dd5c8a804c web: add "chars remaining" for friend message
friend-request messages have a 250 char limit.
Show this in the GUI.
Factor this out into a function so we can use it elsewhere if needed.
2014-08-11 15:45:13 -07:00
David Anderson 3788d0c337 web: code cleanup 2014-08-11 14:57:34 -07:00
David Anderson cd1a12d4f4 web: show badges in more places
Also: improve the badge admin page
Also: zebra-stripe top user and team lists
2014-08-11 09:50:06 -07:00
David Anderson 0189132695 web: handle BBcode [pre] correctly 2014-08-10 10:26:10 -07:00
David Anderson b1fabcfedd web: add optional project-specific pref for preferring non-graphical apps
Also: show beta-test preference if project has beta app versions
2014-08-07 15:43:41 -07:00
David Anderson aa8c53773b web: factor project prefs code into a separate file
I set out to make project-specific prefs use the same object framework
(PREF_BOOL, PREF_NUM etc.) as other prefs.
This turned out to be infeasible, so I settled for a code cleanup instead.

The reason it's infeasible is that the "other prefs" code
uses a SAX parser (xml_parser_create() etc.),
while the code for project-specific prefs uses the primitive
parse_element() and parse_next_element() functions in util_basic.inc.

If I'm going to change anything, I want to switch to a DOM parser
(e.g. simplexml) for both purposes.
2014-08-05 21:02:59 -07:00
David Anderson 9a9041cf7d server: fix support for client break; show it on web 2014-07-16 21:08:18 -07:00
David Anderson 9904d7b920 web: use symbols instead of numbers in result.inc 2014-07-16 19:29:30 -07:00
Rytis Slatkevičius ac1b78b1fe Fix typos 2014-07-15 12:21:17 +03:00
Rytis Slatkevičius bff75f6f00 Remote job submission: accept wu_template parameter for create_work. 2014-07-15 11:47:18 +03:00
David Anderson 7d983da395 web: simplify and remove infinite-loop bug in web cache purging 2014-07-14 11:26:32 -07:00
David Anderson 282161831d web: add WYSIWYG control for strike-through text 2014-07-13 15:27:25 -07:00
David Anderson eb9302c8d5 Web: add support for strikethrough ([s]...[/s]) in bbcode
Didn't add to WYWIWYG interface yet
2014-07-13 10:35:22 -07:00
David Anderson 9df6e43863 web: handle the case of missing user records in a few places
The delete-spammers script was creating dangling user references
(although this is now fixed).
Detect these dangling references and clean them up.
2014-07-12 14:32:59 -07:00
David Anderson cb1bb4069a web: be more thorough when deleting users
When deleting a spammer, delete
- forum_logging
- private messages
- notifications

Also, when displaying private messages, check if sender
doesn't exist, and delete if so
2014-07-11 15:20:01 -07:00
David Anderson e437d09824 web: show peak device FLOPS on result page 2014-07-06 19:59:08 -07:00
David Anderson 4ed83d0c6d web: in user-visible app version list, don't show beta apps as latest 2014-07-02 20:23:32 -07:00
David Anderson a243e19bdc web: replace lookup_* functions with their DB API equivalents
also:
- fix bug in db_cleanse.php
- replace some uses of deprecated mysql_* API
2014-06-23 18:29:20 -07:00
David Anderson b4dba535c0 web: fix typo 2014-06-21 13:40:02 -07:00
David Anderson 3557365a91 web: UOTD_THRESHOLD can be specified in project.inc 2014-06-19 17:14:56 -07:00
David Anderson 29f2cf2cb9 web: add error-checking in DB interface layer 2014-06-19 15:22:52 -07:00
David Anderson b415b466c6 web: tweak 2014-06-19 00:06:43 -07:00
David Anderson 04064da270 web: in prefs form, say "0 means no limit" where appropriate
Also refactor some string translations
2014-06-19 00:00:02 -07:00
David Anderson 6553333002 web: check UOTD email addr 2014-06-17 22:20:26 -07:00
Rytis Slatkevičius 5beaf183b5 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2014-06-17 15:55:18 +03:00
Rytis Slatkevičius 07b9de404b Optionally specify result template file name when submitting a job via RPC 2014-06-17 15:53:41 +03:00
David Anderson 0337ce17c9 web: use "../.." to find the project dir.
Having a project symlink its html/ to a different dir doesn't work,
because if you cd into html/ops to run a script,
there's no way to know where the project dir is, so you can't find config.xml
2014-06-13 10:09:04 -07:00
David Anderson 4208b640d6 server: fix bug that prevented PHP scripts from working 2014-06-12 18:38:38 -07:00
David Anderson bc6cf03a89 Merge remote branch 'origin/respect-symlinks' 2014-06-12 12:16:53 -07:00
David Anderson 73d6012003 web: fix DISABLE_BADGES warning 2014-06-12 09:50:31 -07:00
Oliver Bock 395279cbe1 Respect symlinks when referring to project directory
* The previous implementation doesn't work if the /html directory is a symlink
* The new implementation supports symlinks while not adding any additional
  assumptions regarding relative file locations

Background:

BOINC's codebase consists of regular source code for compilation as well as
source code for direct deployment, such as the /html folder. Projects might
choose to use a checkout of the BOINC repository and a symlink in their deployed
project root directory targeting the /html directory to facilitate html-related
patch tracking and deployment (in situ). This requires the "html" symlink not to be
resolved during lookups of the project root directory (e.g. to access config.xml).
2014-06-12 15:42:52 +02:00
David Anderson 3776548971 web: allow badge disable 2014-06-10 01:24:37 -07:00
David Anderson d337f91563 admin web: link to app version details from app version mgt page 2014-06-03 14:00:14 -07:00
David Anderson f7472149bd web: don't use deprecated @eis code in preg_replace
This was used for fancy logic involving nested bbcode tags,
which I don't think we need
2014-06-02 19:33:17 -07:00
Rytis Slatkevičius 6b00c99a21 Sort filenames in the user file sandbox 2014-05-30 14:53:59 +03:00
David Anderson b3a36cd8ca admin: add --delete_banished option to delete_spammers.php 2014-05-20 10:41:44 -07:00
David Anderson 9ba2f03669 admin tools: change delete_spammers.php to delete message board posts too
Also add --id_range N M command (delete range of users)
Also forum moderation "done" pages now contain link back to forum or thread
2014-05-11 00:36:45 -07:00
David Anderson ac476a23b5 Web: send News notices containing images/video only to 7.3+ clients 2014-05-08 00:50:22 -07:00
David Anderson 640d6dc16a web: show elapsed and CPU time has X hrs Y min Z sec on result page.
Not sure if we should adopt this everywhere
2014-05-06 00:58:18 -07:00
David Anderson bd77c5c52c web: add CPU list page 2014-05-05 22:33:07 -07:00
Rytis Slatkevičius 6179a2493b Enable assigned work for remote job submission (RPC only) 2014-05-02 09:57:02 +03:00
David Anderson be58781a2f Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2014-04-30 15:39:25 -07:00
David Anderson 8390e60343 comment tweak 2014-04-30 15:39:10 -07:00
David Anderson 5d0b06136a web: update interface to PHPMailer
Depending on your mail server, PHPMailer can take various config options.
Instead of passings these as variables from project.inc to email.inc,
have project project.inc define a function make_php_mailer()
that creates a PHPMailer object, configures it as needed, and returns it.

For projects that use PHPMailer, this will require modifying your project.inc.
2014-04-30 10:36:04 -07:00
David Anderson b481f14213 web: fix language name 2014-04-29 10:06:38 -07:00
David Anderson f67833b28f Add Malay to language list 2014-04-29 09:52:27 -07:00