Commit Graph

8 Commits

Author SHA1 Message Date
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 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 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
Rytis Slatkevičius c0bf6fe21a Fix for ticket #125 - problems with websites using PHP setting short_open_tag (additional files)
svn path=/trunk/boinc/; revision=12500
2007-04-29 14:45:44 +00:00
Bruce Allen 79d98f8afa Print a warning if a user hits the upper boundary on claimed credits
svn path=/trunk/boinc/; revision=6496
2005-06-29 15:13:23 +00:00
Bruce Allen f403368dcd Clearer output
svn path=/trunk/boinc/; revision=6495
2005-06-29 14:01:41 +00:00
Bruce Allen 3083f28348 Added a php script grant_credit.php. Running this will grant credit
to users/hosts/teams for workunits that have been cancelled or have
otherwise failed with some problem (error_mask!=0).  The script
can be run multiple times without doing any harm.  Documentation
contained within as a comment.

svn path=/trunk/boinc/; revision=6475
2005-06-28 15:29:41 +00:00