Commit Graph

25 Commits

Author SHA1 Message Date
David Anderson ff91f05aa6 Tweaks to user URL/country flags
- Put flags in config.xml instead of project.inc
- Make them positive instead of negative
- make db_dump respect them.
2018-12-14 20:20:24 -08:00
David Anderson b45e89e9af web: add options for not collecting or showing URL and country
Add constants NO_USER_URL and NO_USER_COUNTRY.
If you set these to true (in project.inc)
there will be no query or display of user web site URL
and user country, respectively.
2018-12-10 16:58:56 -08: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 5afcdf0c3c Web: don't request postal code by default
We were asking for postal code (optional) on registration.
The purpose was to let projects study
the geographical distribution of their volunteers.
But AFAIK no one ever did this,
and some volunteers have said (understandably, I think)
that asking for postal code seems like an invasion of privacy.

So I conditioned the postal-code code on a boolean constant POSTAL_CODE.
If you put
define('POSTAL_CODE', true);
in your html/project/project.inc, you'll get the old behavior.
Otherwise users won't see postal-code related stuff any more.
2017-06-05 14:26:42 -07:00
David Anderson 1e0631dc87 web: allow user URLs with https://
We need to let users have https:// URLs.
Originally http:// was assumed, and the URLs were stored without the prefix.
For compatibility, allow either form to exist in the DB

Also update the "other account info" form to user bootstrap.
2017-02-12 00:46:15 -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 e6ecb981b3 web: change CSS usage to partly match Twitter Bootstrap. From Christian Beer. 2014-10-02 12:15:54 -07:00
David Anderson 1872fd0f6b web: eliminate some mysql_*() calls in preparation for mysqli conversion 2013-11-22 22:46:19 -08: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 d1e66f0427 - web: appearance tweaks from Simek; fixes #1012
svn path=/trunk/boinc/; revision=22394
2010-09-20 23:59:25 +00:00
David Anderson e441fdcd37 - web: make strings translatable. fixes #980
svn path=/trunk/boinc/; revision=20563
2010-02-13 22:52:55 +00:00
David Anderson 6e62285252 - web: prevent a cross-site request forgery attack
svn path=/trunk/boinc/; revision=16224
2008-10-16 04:02:59 +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 2e71493903 *** empty log message ***
svn path=/trunk/boinc/; revision=5246
2005-01-30 20:15:18 +00:00
David Anderson 2634204c88 *** empty log message ***
svn path=/trunk/boinc/; revision=4152
2004-09-04 23:37:49 +00:00
David Anderson b75c017d85 *** empty log message ***
svn path=/trunk/boinc/; revision=3368
2004-05-12 17:54:23 +00:00
David Anderson 2deee53456 *** empty log message ***
svn path=/trunk/boinc/; revision=3367
2004-05-11 22:49:23 +00:00
David Anderson 300b2a8d10 *** empty log message ***
svn path=/trunk/boinc/; revision=3171
2004-03-26 18:32:57 +00:00
Karl Chen 545a56d5c8 directory structure change
svn path=/trunk/boinc/; revision=2938
2004-02-02 23:34:39 +00:00
David Anderson 2d4552e42d *** empty log message ***
svn path=/trunk/boinc/; revision=2707
2003-11-28 23:11:22 +00:00
David Anderson 39bc2da38d admin account creation
svn path=/trunk/boinc/; revision=2171
2003-08-22 05:36:25 +00:00
David Anderson 47d48d202a new prefs
svn path=/trunk/boinc/; revision=1082
2003-03-20 02:05:25 +00:00
David Anderson f98c7f0644 user web
svn path=/trunk/boinc/; revision=1081
2003-03-19 21:01:32 +00:00
David Anderson a26d8c4d1a various
svn path=/trunk/boinc/; revision=1021
2003-03-06 17:42:49 +00:00
David Anderson a16c91e272 email address update
svn path=/trunk/boinc/; revision=946
2003-02-19 20:34:33 +00:00