Commit Graph

18 Commits

Author SHA1 Message Date
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 b817b8ed7a - admin web: changed protection scheme as follows:
- default: script can be run from command line;
        to run from web you need to be logged in as a particular user.
        (in addition to .htaccess protection).
    - if include $cli_only at start of script:
        can only be run from the command line.
    - if include $skip_auth_ops at start of script:
        can run from web without being logged in
        (this is set ONLY in login_action.php)
- admin web: added $cli_only = true to a bunch of scripts


svn path=/trunk/boinc/; revision=19230
2009-10-02 18:32:40 +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
David Anderson 8b51226b54 svn path=/trunk/boinc/; revision=17837 2009-04-17 00:01:33 +00:00
David Anderson 6a035a0c09 svn path=/trunk/boinc/; revision=17836 2009-04-16 23:57:31 +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 904cbe5a4f - Add Bolt admin page
- added "hidden" flag to courses


svn path=/trunk/boinc/; revision=14660
2008-02-01 23:11:09 +00:00
David Anderson d642cd6815 - small web fixes; fixes #421
svn path=/trunk/boinc/; revision=14485
2008-01-07 23:33:48 +00:00
David Anderson 1ff8594698 - user web: fixed a few hex colors without #
svn path=/trunk/boinc/; revision=13969
2007-10-26 22:07:39 +00:00
Bruce Allen e72a39be86 HTML ops page: close <head> tag in page head.
svn path=/trunk/boinc/; revision=10250
2006-06-04 12:55:27 +00:00
Bruce Allen 1cb56d0f52 - Add new validate_state==TOO_LATE to ops pages summaries and result table
choice selection menus
    - Ops pages fixes from Christian Beers and David Hammer:
      * some rearrangement of index page
      * fix pass percentage by platform pages to show only non-deprecated apps
      * all platforms now appear in summary pages of failures

svn path=/trunk/boinc/; revision=5351
2005-02-08 03:33:35 +00:00
David Anderson 1776219b2d *** empty log message ***
svn path=/trunk/boinc/; revision=4949
2004-12-27 22:57:47 +00:00
David Anderson 15e29841be *** empty log message ***
svn path=/trunk/boinc/; revision=4941
2004-12-27 03:42:11 +00:00
Bruce Allen 5981d17071 Modified to work correctly with ALL php versions
svn path=/trunk/boinc/; revision=4703
2004-12-02 18:10:01 +00:00
Bruce Allen ad51e49f5c Fix bug in ops pages displaying counts of zero if 'additional clauses' includes string
names such as name='first_workunit'

svn path=/trunk/boinc/; revision=4573
2004-11-16 20:38:00 +00:00
Lana Alber 3b576016af *** empty log message ***
svn path=/trunk/boinc/; revision=4228
2004-09-23 00:32:10 +00:00
Karl Chen 545a56d5c8 directory structure change
svn path=/trunk/boinc/; revision=2938
2004-02-02 23:34:39 +00:00