Commit Graph

52 Commits

Author SHA1 Message Date
David Anderson ce213120de web: fix bug in project prefs; appearance tweaks
- editing resource shared wasn't working
- change sizes of controls to "input-sm"
- show errors correctly in project prefs
- move selection of project prefs from project_specific_prefs.inc
  to project.inc.
  This means that (unless you've added your own project prefs)
  you can update project_specific_prefs.inc from master, with no changes.

NOTE: projects will need to move their project prefs selections, e.g.
    define('COLOR_PREFS', false);
from project_specific_prefs.inc to project.inc.
Then copy project.sample/project_specific_prefs.inc to your project/
2016-12-19 15:47:52 -08:00
David Anderson cb5668a0d8 web: various appearance tweaks
policy change: when showing lists of name/value pairs in a table,
don't show the names with a different background color or font.
This is what Edward Tufte would call "noise".
Keep the visuals as simple as possible.
2016-12-19 01:15:48 -08:00
David Anderson 7a492cedf3 project web: various enhancements:
- change default home page to replace text with a Join button,
    which links to a new page saying how to join.
- change default to show image to top of home page
- add form-control class to all <select>s so that text displays
    correctly with dark-background themes
- change args to page_head():
    - add $is_main; gets passed to project_banner()
    - remove $title_plain; not sure what it was for
- add arg for inverse navbar
2016-11-22 01:20:07 -08:00
David Anderson df8e221287 web: various tweaks
Please enter the commit message for your changes. Lines starting
2016-11-20 15:38:19 -08:00
David Anderson c5b948020d Initial commit for Bootstrap 2016-11-11 12:36:27 -08:00
Christian Beer b403e6dddc Web: added RPC_DEBUG option to disable error messages in public Web RPCs
PHP error messages may contain sensitive information that should not be publicly visible. This option gives each project a simple switch to turn error messages in Web RPCs on or off.
2016-08-04 10:31:12 +02:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00:00
David Anderson e6ecb981b3 web: change CSS usage to partly match Twitter Bootstrap. From Christian Beer. 2014-10-02 12:15:54 -07:00
David Anderson ce8e78e10e web: add script for granting badges based on per-subproject credit totals
See http://boinc.berkeley.edu/trac/wiki/PerAppCredit
2014-08-18 13:48:27 -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 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 d4a40a8841 - admin web: remove outdated code that tried to show SVN version
in the admin main page
2013-03-05 15:05:20 +01:00
David Anderson 245aa70cf9 - web: use gmdate() instead date() to avoid time zone warning
svn path=/trunk/boinc/; revision=25673
2012-05-12 15:13:43 +00:00
David Anderson d5347f0ff1 - web: allow a project to specify 2 stylesheets
svn path=/trunk/boinc/; revision=25398
2012-03-09 21:40:57 +00:00
David Anderson 51c652640f - create_work: allow multiple URLs for non-local input files
(from Zoltan Farkas)
- scheduler: fix message describing per-app limits


svn path=/trunk/boinc/; revision=23546
2011-05-13 18:40:10 +00:00
David Anderson a3cccc85e6 - web: show "logged in as" info on every page;
remove funky "log out" link from user page
- web: go to home page on logout,
    not dorky "you are logged out" page


svn path=/trunk/boinc/; revision=23387
2011-04-20 14:50:50 +00:00
David Anderson b062bd03f4 - admin web: all specifying an SVN config dir in the web config file,
in case your svn requires a proxy or something.
    From Boris Dayma.


svn path=/trunk/boinc/; revision=23386
2011-04-19 20:17:51 +00:00
Rytis Slatkevičius b11b56ecbb user web: implement Memcache as an option for caching (defaults to in-file cache). Can be enabled by installing php5-memcached package and defining MEMCACHE_SERVERS in project.inc
svn path=/trunk/boinc/; revision=23228
2011-03-12 15:36:58 +00:00
David Anderson c62a55b47f svn path=/trunk/boinc/; revision=23034 2011-02-14 21:35:29 +00:00
David Anderson fe156c945c - user web: translation fixes
svn path=/trunk/boinc/; revision=21938
2010-07-14 19:20:31 +00:00
David Anderson 575cec858c - admin web: a project must provide an .htaccess file
or an auth_ops() function (not necessarily both).
    New projects are given an .htaccess file with no .htpasswd,
    so they must either create a .htpasswd file
    or define auth_ops() in order to use admin web pages.

svn path=/trunk/boinc/; revision=20671
2010-02-21 04:45:52 +00:00
David Anderson 21a18b7045 - web: more translations, from Christian. fixes #982
svn path=/trunk/boinc/; revision=20582
2010-02-16 01:06:03 +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 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
Janus B. Kristensen 57964aaa2b Q&A is not merged with the Message Boards by default but this define enables admins to merge it.
svn path=/trunk/boinc/; revision=17014
2009-01-25 12:22:11 +00:00
David Anderson 760cd90c7b - client: restore support for max_ncpus preference.
This and max_ncpus_pct can both be specified.
    If both are specified, we take the min.

svn path=/trunk/boinc/; revision=16268
2008-10-22 21:25:26 +00:00
David Anderson 7a3996aba0 - web: add optional $project_http_proxy to project.inc;
if project is behind an HTTP proxy,
    this fixes the SVN fetch in ops/index.php

svn path=/trunk/boinc/; revision=16243
2008-10-21 18:55:17 +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 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 f183b6f47f - web: add general-purpose notification mechanism.
Users can choose whether to get 1 email per notification,
    a daily "digest" email, or no email.
    (All notifications are shown on the Account page).
    Currently used for:
    - Friend requests and confirmations
    - Posts to subscribed threads
    - Private messages

    NOTE: To implement the "daily digest" feature, projects must add
    a periodic task for html/ops/notify.php to config.xml
- web: have project_footer() generate links for
    Account Page and Message Boards as well as Home
    NOTE: projects that want this change
    will have to modify their own project.inc.

svn path=/trunk/boinc/; revision=14447
2007-12-30 22:02:16 +00:00
Eric J. Korpela 2ca04c07e0 Added function to project.inc, project_forum_post_rules() which returns
additional project specific posting rules.


svn path=/trunk/boinc/; revision=14315
2007-11-28 17:40:08 +00:00
Rytis Slatkevičius 4b28e7c183 User web: add HTML DOCTYPE (4.01 Transitional) to all pages, make some HTML validity changes.
svn path=/trunk/boinc/; revision=13928
2007-10-22 19:36:01 +00:00
Matt Lebofsky ae5748636c *** empty log message ***
svn path=/trunk/boinc/; revision=11762
2007-01-03 19:12:53 +00:00
Rytis Slatkevičius f18d253948 Enable multiple moderation emails on post report (new defined value in project.inc!)
svn path=/trunk/boinc/; revision=11469
2006-11-04 19:21:05 +00:00
David Anderson aef50da4f1 *** empty log message ***
svn path=/trunk/boinc/; revision=11154
2006-09-14 00:18:13 +00:00
David Anderson 2c15b67153 *** empty log message ***
svn path=/trunk/boinc/; revision=11095
2006-09-05 01:27:54 +00:00
David Anderson 5617df5f47 *** empty log message ***
svn path=/trunk/boinc/; revision=10118
2006-05-09 18:25:15 +00:00
Janus B. Kristensen 0ebf1c17ff Email to moderators about reported posts
svn path=/trunk/boinc/; revision=8387
2005-10-01 11:11:53 +00:00
David Anderson c27cb008f4 *** empty log message ***
svn path=/trunk/boinc/; revision=5599
2005-03-09 01:02:36 +00:00
David Anderson 3cbe6cebe5 *** empty log message ***
svn path=/trunk/boinc/; revision=5207
2005-01-25 19:21:35 +00:00
Bruce Allen 3017533fde From Christian Beer -- restore missing project_footer() function.
svn path=/trunk/boinc/; revision=5193
2005-01-24 14:45:51 +00:00
Daniel Hsu b87634c90f *** empty log message ***
svn path=/trunk/boinc/; revision=3579
2004-06-15 18:50:57 +00:00
David Anderson 56c08a7f95 *** empty log message ***
svn path=/trunk/boinc/; revision=3538
2004-06-11 18:50:15 +00:00
Rom Walton d011c7a6a5 *** empty log message ***
svn path=/trunk/boinc/; revision=3293
2004-04-23 01:42:09 +00:00
Rom Walton 1cd0d67d9e *** empty log message ***
svn path=/trunk/boinc/; revision=3051
2004-03-09 23:20:52 +00:00
Rom Walton 5ed3190bc7 *** empty log message ***
svn path=/trunk/boinc/; revision=3006
2004-02-24 04:14:46 +00:00
Rom Walton 39c5f3c8b6 *** empty log message ***
svn path=/trunk/boinc/; revision=3005
2004-02-24 04:05:13 +00:00
David Anderson abd3561274 *** empty log message ***
svn path=/trunk/boinc/; revision=2983
2004-02-10 07:02:38 +00:00