Commit Graph

19 Commits

Author SHA1 Message Date
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02: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 4616d1d0c3 mass email scripts: check for PHP_MAILER properly 2014-06-06 15:57:52 -07:00
David Anderson 278f3fd370 web: use new DB API here and there; should be no visible changes 2014-04-24 09:41:59 -07:00
David Anderson 1600c26206 svn path=/trunk/boinc/; revision=20403 2010-02-03 17:28:03 +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 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
Matt Lebofsky 864f6f0b6a Added <email/> tag (so users can see which e-mail these reminders
were being sent to, as to hopefully avoid confusion)


svn path=/trunk/boinc/; revision=15297
2008-05-27 22:19:14 +00:00
Matt Lebofsky 9d9531a5f4 Bug fixes and added "count" command line option
svn path=/trunk/boinc/; revision=15086
2008-04-23 20:59:14 +00:00
David Anderson 512af1d30e - user web: don't append "/" to URL_BASE.
URL_BASE is assumed to end with a /.
    If you put another /, you end up with // in URLs.
    This leads to a situation where you can have
    one cookie for // and another for / - bad.

    If this causes problems for any projects,
    they should edit their project.inc accordingly

svn path=/trunk/boinc/; revision=14254
2007-11-18 22:42:47 +00:00
Rytis Slatkevičius b04aeea7d6 user web: make sure that all links that have URL_BASE have slashes after it. This makes a slash in the end of URL_BASE definition in project/project.inc no longer necessary.
svn path=/trunk/boinc/; revision=13106
2007-07-05 19:37:33 +00:00
David Anderson f42e2ee623 - Major rewrite of email-sending programs.
Instead of editing their source (ugh!)
        you can now use command-line args to get testing functionality.
        
    html/ops/
        remind.php
        mass_email_script.php

svn path=/trunk/boinc/; revision=12494
2007-04-27 23:05:48 +00:00
David Anderson 04b3417483 make scripts executable (SVN change)
svn path=/trunk/boinc/; revision=12489
2007-04-26 20:47:37 +00:00
Matt Lebofsky 591a93ebe1 svn path=/trunk/boinc/; revision=12419 2007-04-19 17:06:02 +00:00
David Anderson 6b43ad0cbc *** empty log message ***
svn path=/trunk/boinc/; revision=12346
2007-04-11 18:05:26 +00:00
Matt Lebofsky 2e42393be9 *** empty log message ***
svn path=/trunk/boinc/; revision=12342
2007-04-10 22:57:17 +00:00
David Anderson 7eb21f34e2 *** empty log message ***
svn path=/trunk/boinc/; revision=10701
2006-07-20 20:27:21 +00:00
David Anderson 6a5f70b7ba *** empty log message ***
svn path=/trunk/boinc/; revision=10651
2006-07-13 23:40:10 +00:00