Commit Graph

18 Commits

Author SHA1 Message Date
David Anderson 41e1aeac30
web: fix email address checks
There are two types of email address check:
1) syntax check
2) stopforumspam.com (SFS) check: enabled by USE_STOPFORUMSPAM in project.inc

- Separate these.  Sometimes it's appropriate to use just syntax check.
    When we do use SFS check, and the email is flagged,
    we should tell the user what happened;
    maybe they're incorrectly in the SFS DB.
- use PHP's filter_var() for the syntax check,
    rather than our own funky regexp.
2024-08-02 08:35:13 +02:00
Christian Beer 4b5ea18504 Web: fix deprecated php stuff
The `ereg` function is deprecated since 5.3 and was removed in 7.0.
Using `break;` outside a loop was working unintentionally before 7.0 but now throws a compile error.
Using s call-time pass-by-reference throws an error since 5.4. The `&` is only needed in the function declaration not when calling the function.
2019-01-19 23:59:41 +01: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
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
David Anderson 1880a50cc5 David 19 Apr 2007
- Change things so that make_project installs a test application
        (uppercase) and the daemons to go along with it
        (sample_work_generator, sample_bitwise_validator, sample_assimilator).
        This is mostly working, not completely.

    apps
        upper_case.C
    html/ops/
        mass_email_script.php
    py/Boinc/
        setup_project.py
    sched/
        sched_config.C,h
        sample_work_generator.C
    tools/
        make_project
        project.xml
        Makefile.am

svn path=/trunk/boinc/; revision=12422
2007-04-19 22:11:25 +00:00
Matt Lebofsky 9a9d3514e2 *** empty log message ***
svn path=/trunk/boinc/; revision=11344
2006-10-23 22:05:56 +00:00
David Anderson 7eb21f34e2 *** empty log message ***
svn path=/trunk/boinc/; revision=10701
2006-07-20 20:27:21 +00:00
David Anderson 913bc77221 *** empty log message ***
svn path=/trunk/boinc/; revision=10649
2006-07-13 16:48:44 +00:00
David Anderson 440c667e8a mass email
svn path=/trunk/boinc/; revision=10580
2006-07-05 21:38:08 +00:00