Commit Graph

92 Commits

Author SHA1 Message Date
David Anderson 9dbc768621 web: let project customize "Want to help more?" list 2018-06-18 15:01:17 -07:00
David Anderson 91803006f9 web: home page: don't show credit as FLOPS. Might not be correct. 2018-06-10 18:57:13 -07:00
David Anderson 226bc4f1d8 web: finish (I think) handling all the "join" scenarios sensibly.
The degrees of freedom include
- whether the project is vetted, has an ID an therefore can use autoattach
- whether the user already has an account
- whether the user is logged in

Account creation can now be done through the web in all cases,
rather than "new user" in the BOINC manager.

- sample index.php now directs new users to Join page,
    where they create an account.
- download.php now works for both vetted and non-vetted projects;
    in the non-vetted case direct them to BOINC and give instructions
- prefs.php defaults to subset global
- Add a new "welcome" page, welcome.php
    New users in the autoattach case end up here.
    It tells them basic stuff about what to expect and what they can do.
2018-06-07 00:02:24 -07:00
David Anderson b3eebff65d web: tweaks to sample home page
- if logged in, suggest recruiting friends and running on other devices
- move project description to a separate file
    (html/project/project_description.php").
    The eliminates the need to customize index.php
2018-06-06 16:32:09 -07:00
David Anderson 56e18f11d8 - add some tra()s 2018-05-29 17:03:18 -07:00
David Anderson d3c93cb8e0 - parse project ID correctly 2018-05-29 16:13:24 -07:00
David Anderson 0669d2b738 Web: tweaks to signup logic and forum tables 2018-05-29 00:26:26 -07:00
David Anderson 0514a28dfc web: add support for autoattach
- make download page translatable
- change sample_index.php to show different things to:
    new users: show project intro, Join link
    returning users: show recent credit, link to home page
- add signup page: streamlined registration, goes to download
2018-05-21 15:08:24 -07:00
David Anderson 415ebacbd1 web: encapsulate PHP
In bootstrap.inc there are some functions for creating forms.
They conceal Bootstrap (and HTML itself) from the caller.
I changed a couple of forms (edit user into and create account) to use this API.
There are many other forms that we could change as well.
This is how I'd like the PHP code to evolve:
encapsulate HTML in utility functions.
We have this for tables, forms, and header/footer.

Also finish the NO_COMPUTING changes.
2017-06-20 00:38:11 -07:00
David Anderson c5a743baf4 web: if web stopped, show home page anyway 2016-11-29 12:59:38 -08:00
David Anderson 91b4dcdc37 web: make some strings translatable
Also: on default home page, don't show the big green Join button
if the user is logged in; they're presumably running BOINC
on at least one computer.
However, in this case put a Join item in the Project menu
in case this is a new computer and they forgot where to download from.
2016-11-29 00:34:26 -08:00
David Anderson 5ea948224e web: make $master_url a global var 2016-11-25 20:41:09 -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 3df12e48a1 web: tweaks. disable "friends and family email" (abused by spammers) 2016-11-11 20:10:12 -08:00
David Anderson b33c463cf3 web: various bug fixes
- fix "jump to first unread post" feature
- use <pre> for bbcode [code]
- don't use table-responsive class for tables.
  It does bad/funky things, especially on small displays
- remove start_table_noborder()
2016-11-11 19:11:57 -08:00
David Anderson c5b948020d Initial commit for Bootstrap 2016-11-11 12:36:27 -08:00
David Anderson 60db5c6bde web: add function for google search form.
Add this to default front page.
Also remove <table> stuff from show_login_info();
let the caller decide how to format.
2016-10-19 13:44:38 -07:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00:00
Christian Beer ea7df2637e Web: use https urls everywhere
Modern Browser complain if there are non-https elements in https websites. This makes sure that if the user visits via https all elements of the page are also retrieved using SSL. Furthermore it uses https urls in emails that are send to the user, if SECURE_URL_BASE is set in project/project.inc.
The only remaining places where URL_BASE is used is when it is used as master_url where it is important that it is in sync with what the scheduler uses.
2015-11-30 09:36:29 +01:00
David Anderson 1a0824bfe5 web: fix bug in family/friends email feature 2015-07-21 23:41:13 -07:00
David Anderson a19ae32205 web: make separate style for green buttons (temporary) 2015-01-23 09:54:04 -08:00
David Anderson 592a8654a9 web: support shortcut icon for project pages
Projects can now define a shortcut icon in project.inc, e.g.
define("SHORTCUT_ICOM", "icon.gif");
See http://boinc.berkeley.edu/trac/wiki/WebConfig
2015-01-19 12:04:12 -08:00
David Anderson e470620acb web: preliminary support for simplified attach
See http://boinc.berkeley.edu/trac/wiki/SimpleAttach
2015-01-14 09:19:11 -08: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 cd05b76c1f web: remove old DB calls on home and server status pages 2014-08-20 09:41:01 -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 1010cee2ae web: 2014-04-17 23:31:51 -07:00
David Anderson 071c68f494 web: fixes related to account-creation disabling
- Correctly enforce the following config options:
    <disable_account_creation>
    <disable_account_creation_rpc>
    <no_web_account_creation>
- On the project front page, if account creation is disabled, say so.
- on other pages, if account creation is disabled,
    don't show a "create account link"
2013-11-26 15:43:02 -08:00
David Anderson 38d6c26fff - web: add <no_web_account_creation> config option
svn path=/trunk/boinc/; revision=24174
2011-09-13 04:53:13 +00:00
David Anderson 80db207b64 - user web: internationalization, from Christian Beer
svn path=/trunk/boinc/; revision=23872
2011-07-25 22:05:49 +00:00
David Anderson 3f2f56906e - web: make front page work for Bossa projects
svn path=/trunk/boinc/; revision=23618
2011-05-27 19:38:18 +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 e615cefbaa - user web: fixes
svn path=/trunk/boinc/; revision=23031
2011-02-14 20:50:59 +00:00
David Anderson faf7fe54c8 - client: if a logical filename contains /'s,
create the needed dirs under the slot dir
- user web: pages with translatable text should not be cached.
    Fix this for home page; there are some others

svn path=/trunk/boinc/; revision=23019
2011-02-11 00:37:01 +00:00
David Anderson 3e2e5f2fdc - user web: CSS cleanup.
Use classes instead of IDs.
    white.css and black.css are cleaned up; style2.css needs work


svn path=/trunk/boinc/; revision=23018
2011-02-10 22:45:39 +00:00
David Anderson d27af6214d - user web: finish dealing with get args spam
svn path=/trunk/boinc/; revision=23010
2011-02-09 22:11:34 +00:00
David Anderson e87f289544 - fix formatting in PHP code
svn path=/trunk/boinc/; revision=22623
2010-11-04 18:20:57 +00:00
David Anderson f6e9a3c0c1 - fix a few absolutely last messages with "attach", "detach"
svn path=/trunk/boinc/; revision=22462
2010-10-06 20:13:34 +00:00
David Anderson d1e66f0427 - web: appearance tweaks from Simek; fixes #1012
svn path=/trunk/boinc/; revision=22394
2010-09-20 23:59:25 +00:00
David Anderson 0ccf399136 - web: move server status page from ops/ to user/.
Remove funky file-writing stuff - just use caching.
    fixes #913
- web: include link to server status page on sample front page

svn path=/trunk/boinc/; revision=22361
2010-09-15 22:28:33 +00:00
David Anderson 04b8cf965f - web: assume all translation files are UTF-8
svn path=/trunk/boinc/; revision=20270
2010-01-27 04:04:17 +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 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
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
Rom Walton bba5980102 - web: fix a parsing error in sample_index.php which would
cause new projects to report an error when they first
        attempt to start up.
    - tools: Add the missing x86_64-apple-darwin platform type
        used for 64-bit Mac OS X applications.  I used the
        description from the alpha project.
    - MGR: delete obselete make files.
    

    clientgui/
        Makefile.linux.fedora
        Makefile.linux.suse
        Makefile.linux.ubuntu
    html/user/
        sample_index.php
    tools/
        project.xml

svn path=/trunk/boinc/; revision=15906
2008-08-20 18:32:32 +00:00
David Anderson 56db46b0ef - typo in sample_index.php
svn path=/trunk/boinc/; revision=15892
2008-08-19 21:33:21 +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 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 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
Rytis Slatkevičius 78de217b37 Ops pages: add missing error numbers.
svn path=/trunk/boinc/; revision=15163
2008-05-09 16:47:42 +00:00