Commit Graph

51 Commits

Author SHA1 Message Date
David Anderson 5914060d4b web: change names of admin functions to e.g. admin_show_user()
to avoid conflict with non-admin versions
2018-05-01 10:47:38 -07:00
David Anderson f90aa68051 Admin web: use bootstrap 2017-09-26 13:52:14 -07:00
Christian Beer 0040bd9817 Ops: enhance errorwus.php again
Added more filters and moved logic from PHP to the DB. This results in a smaller memory footprint of the script but stresses the database a little more for big projects.
2016-03-18 10:51:09 +01:00
Christian Beer 3b6df98c44 Ops: update cancel_workunits scripts to use db layer
Also uses the wrapper functions for variables supplied by post and get requests.
2016-03-17 14:37:59 +01:00
Oliver Bock fd3e17b04c Improve DB queries
* WHERE IN clauses perform really bad for long lists/sub-queries
* Using INNER JOINs to speed up the queries
* Down from a couple of minutes to less than a second :-)
2016-03-17 13:45:03 +01:00
Christian Beer 407a2fce47 Ops: combine statements for better performance
No need to change the same rows in two statements.
2016-03-17 13:45:03 +01: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 945a0f9f7a admin web: fixes to cancel_workunits.php 2015-02-13 10:13:47 -08:00
David Anderson 45f820b30b admin web: add more flexible interface for canceling jobs (from Bernd) 2015-01-23 11:13:44 -08:00
Rytis Slatkevičius 0b31ebae64 ops: Fix missing escape for newline character 2014-11-25 11:01:49 +02:00
David Anderson db6592e6fc admin web: fix bug in "delete user" function
Also:
- use "admin_error_page()" instead of "error_page()" in admin pages
- add footer w/ Main Page link to admin pages
- code cleanup in delete user function
2014-10-29 12:25:35 -07: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 3abed383e5 web PHP code: use mysqli everywhere if available
Change all the PHP code to use _mysql_query() instead of mysql_query()
(and similar for other functions).
_mysql_query() uses the mysqli API if available, else the old API.

Going forward, all PHP code should the DB abstration layer if possible;
else it should use the _mysql_* functions.
2014-09-04 12:00:09 -07:00
David Anderson 89d92f4a24 admin web: show PHP warnings 2014-04-20 00:29:05 -07:00
David Anderson 936556b4ac Admin web: don't use project banner; use stylesheets
It doesn't make sense to show the project banner in admin pages;
the banner typically has (broken) links to non-admin pages.

Also, include basic stylesheets in admin pages.
2014-04-03 12:14:37 -07:00
David Anderson 92fec3e4ae admin web: enhance badge admin page
- add delete button
- show # of badges assigned
- don't use separate head/tail function are admin pages
- add badge assign task for new projects
- turn on db_dump, update_uotd, update_forum_activities,
  update_profile_pages, notify for new projects
2013-12-23 21:02:55 -08:00
David Anderson b33bf69a98 web: enhance badge features
- the default badges (defined in ops/badge_assign.php) are now
  based on RAC percentile (top 1%, 5%, and 25%) rather than plain RAC.
- RAC percentile badges are now granted for teams as well as users;
  show badges in team page.
- move badge utility functions to inc/util_ops.inc
2013-12-20 15:03:24 -08:00
David Anderson 4d738ab4fb admin web: add script for removing zombie hosts 2013-12-18 13:32:23 -08:00
David Anderson 00897ecc3f web: remove some mysql_* calls 2013-12-16 19:22:34 -08:00
David Anderson 3b395872be Upgrade script: fix message text: default MySQL user is owner of server, not current user 2013-10-09 12:42:55 -07:00
David Anderson 2a2c9c4ad8 remote job submission: add notion of "expire time" for batches (for Condor)
- Batches now have optional "expire time".
  If this time passes and the batch is not retired, abort and retire it.
- Add script "expire_batches" which enforces the above.
  Run it as a periodic task.
- Add a web RPC for setting the expire time of a batch
  (it can be changed multiple times)
- Add a C++ interface for this RPC
- Add a BOINC_SET_LEASE command to the BOINC GAHP
  ("lease" is Condor term for expire time)
2013-09-17 13:35:55 -07:00
David Anderson cca4b96152 admin web: fix PHP warning 2013-08-16 12:20:40 -07:00
David Anderson 6501519031 admin web: in failure-by-version page, show anon platform versions correctly 2013-08-16 11:59:46 -07:00
David Anderson 24788d4f54 admin web: fix typo in cancel jobs page 2013-08-03 18:31:43 -07:00
David Anderson e1523cc093 admin web: add option to Cancel Jobs page to cancel only unsent jobs 2013-07-30 14:07:34 -07:00
David Anderson e85a18289e client (win): fix typo in last commit 2013-07-30 10:47:54 -07:00
Rytis Slatkevicius 258c6d802b Allow additional CSS file for ops pages (defined in project.inc as ADMIN_STYLESHEET) 2013-05-17 11:12:29 +03:00
David Anderson 69a595329d - scheduler: various fixes to plan_class_spec.cpp; from Bernd
- admin web: don't include the project's stylesheet,
    which may assume a layout not used by admin pages


svn path=/trunk/boinc/; revision=25731
2012-06-03 17:31:00 +00:00
Wenjing Wu dfc84b1916 - add script for canceling jobs
- CAS@home stuff


svn path=/trunk/boinc/; revision=25550
2012-04-12 12:20:16 +00:00
David Anderson 33b607dab1 - upgrade script:
- prompt user for DB user/passwd if DB updates needed
    - error out immediately if any DB update fails
    Fixes #1169, #1170
- create_work: check for duplicate <file_info>s in input template
    NOTE: the input template syntax is pretty clunky


svn path=/trunk/boinc/; revision=24969
2012-01-02 07:33:08 +00:00
David Anderson 9f27824fba - admin web: improve the FLOPs estimation tool so that
it works for GPU versions too


svn path=/trunk/boinc/; revision=23840
2011-07-13 21:50:48 +00:00
David Anderson 3d02f9f361 - admin web: add page for showing app and app version details
svn path=/trunk/boinc/; revision=23835
2011-07-12 05:19:15 +00:00
David Anderson f484e732cd - web: fix next-URL mechanism for admin login (from Michael Tarantino)
svn path=/trunk/boinc/; revision=22604
2010-10-29 17:49:29 +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 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