Commit Graph

29 Commits

Author SHA1 Message Date
David Anderson 6e622fa017 web: code cleanup in translation code 2013-12-04 10:22:11 -08:00
David Anderson 78c6cac276 web: fix PHP warnings 2013-05-08 22:42:43 -07:00
David Anderson d27af6214d - user web: finish dealing with get args spam
svn path=/trunk/boinc/; revision=23010
2011-02-09 22:11:34 +00:00
David Anderson 56ff7cf37f - client simulator: get it to work for GPU simulation
- web: small fixes to mollify skipfish

svn path=/trunk/boinc/; revision=22485
2010-10-08 23:18:12 +00:00
David Anderson 1c953745ed - web: don't call filter_var() if it doesn't exist (PHP version < 5.2)
svn path=/trunk/boinc/; revision=22377
2010-09-16 18:53:39 +00:00
David Anderson d6315c7112 - fix various XSS vulnerabilities reported by the
Acunetix Web Vulnerability Scanner (free edition)


svn path=/trunk/boinc/; revision=22315
2010-09-04 22:13:27 +00:00
David Anderson 03be4edeab - user web: clean up LANG_NAME_* mess
svn path=/trunk/boinc/; revision=20248
2010-01-22 18:09:05 +00:00
David Anderson b5124fe729 - client: brute-force attempt at eliminating domino-effect preemption:
if job A is unstarted and EDF,
    and there's a job B that is later in the list,
    is started, has the same app version,
    and has the same arrival time,
    move A after B.
- client: remove the "temp_dcf" mechanism,
    which had the same goal but didn't work.
- client: in computing overall debt for a project,
    subtract a term that reflects pending work.
    This should reduce repeated fetches from the same project.
- client simulator: tweaks

svn path=/trunk/boinc/; revision=20223
2010-01-21 00:14:56 +00:00
David Anderson f48de8625a svn path=/trunk/boinc/; revision=20184 2010-01-16 23:52:05 +00:00
David Anderson 4ab335eb49 - user web: make a bunch of strings translatable (from Nicolas)
svn path=/trunk/boinc/; revision=20180
2010-01-16 06:19:19 +00:00
David Anderson ac99693ef9 - web: trim dutch translation file
svn path=/trunk/boinc/; revision=18073
2009-05-11 19:38:53 +00:00
David Anderson c2067ef472 svn path=/trunk/boinc/; revision=18068 2009-05-11 16:38:44 +00:00
David Anderson 0f6de2ea58 - upgrade and make_project scripts: run update_translations.php,
which compiles the translation files into the form
    used by the web code.
    Projects that don't use "upgrade" will need to do this manually
    whenever translation files change.

svn path=/trunk/boinc/; revision=17652
2009-03-24 21:24:57 +00:00
David Anderson 685ea38041 - web: change style sheet so tables are bordered only if class is "bordered"
- web: fix error if translation string missing


svn path=/trunk/boinc/; revision=16363
2008-10-30 18:27:22 +00:00
Janus B. Kristensen f5327c452e - Updated the translation system from token/define-based to string-based.
- Removed language interface code (noone seemed to understand/use it anyways)
- Removed a lot of debug. Compiling the language files will now only show whether the compile worked or not
- Removed automatic change-detection. You must now manually trigger compiles using ops/update_translations.php (improves performance slightly)
- Extended tra() to support arbitrary number of arguments
- Random code documentation fixes
- Fixed language override selection page to now correctly show the possible language alternatives

svn path=/trunk/boinc/; revision=16190
2008-10-12 15:22:16 +00:00
David Anderson e432bb1182 - web: sub_sentence() went into an infinite loop
for a particular (non-ASCII) profile text.
    Not sure why, but I rewrote sub_sentence() in
    less obscure way and it works now
- web: slight cleanup of translation code.
    Can we please replace this with gettext()??

svn path=/trunk/boinc/; revision=16035
2008-09-22 17:14:03 +00:00
David Anderson 6379b2682b - feeder: fix bug from changset 15984 that changed "r" to "w",
causing the feeder to truncate hr_info.txt on startup


svn path=/trunk/boinc/; revision=16008
2008-09-17 15:59:14 +00:00
David Anderson fd3dbc1058 - client: ignore CUDA devices with major versions > 100
(apparently some report 9999)
- web: security changes: sanitize some params; escape some strings

svn path=/trunk/boinc/; revision=16005
2008-09-16 23:06:37 +00:00
David Anderson 5b9e089cd8 - web: fix bugs in translation system
(language_select.php wasn't working)
- tr.po had some syntax error, and was way out of date.
    replaced it with en.po

svn path=/trunk/boinc/; revision=15858
2008-08-15 17:33:32 +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 02adbc4d49 - web: remove all references to the PHP "session" mechanism,
which added only confusion.
    Implement login directly, using cookies.
- All cookie setting/clearing now goes through two functions,
    send_cookie() and clear_cookie().
    These deal with path and expiry
    (e.g. if you want to have different language or forum settings
    on two projects on the same server, that now works).

svn path=/trunk/boinc/; revision=14735
2008-02-13 19:02:44 +00:00
David Anderson 3c9f9102e6 David 27 Apr 2007
- bug in language_select.php made 'auto' not work,
        i.e. its impossible to return to browser settings
        after doing a cookie-based language choice
    - translation.inc and language_select.php were using $HTTP_SERVER_VARS,
        which appears to be deprecated in PHP 5.
        Use $_SERVER instead.
    - made strings at top of web site translatable

    html/
        inc/
            translation.inc
        user/
            language_select.php
    languages/translations/
        en.po

svn path=/trunk/boinc/; revision=12493
2007-04-27 16:27:12 +00:00
David Anderson 41eb40b051 *** empty log message ***
svn path=/trunk/boinc/; revision=11643
2006-12-11 23:42:54 +00:00
David Anderson 877f39921f *** empty log message ***
svn path=/trunk/boinc/; revision=9048
2005-12-06 23:00:44 +00:00
David Anderson 0ac17c0a7f *** empty log message ***
svn path=/trunk/boinc/; revision=6331
2005-06-12 20:43:59 +00:00
David Anderson bfed4b81aa *** empty log message ***
svn path=/trunk/boinc/; revision=5782
2005-04-05 21:26:41 +00:00
David Anderson 99b91e2721 *** empty log message ***
svn path=/trunk/boinc/; revision=5776
2005-04-05 06:43:58 +00:00
David Anderson 0dd0664134 *** empty log message ***
svn path=/trunk/boinc/; revision=5764
2005-04-02 18:37:22 +00:00
Janus B. Kristensen 822428875d Language selection and example flag
svn path=/trunk/boinc/; revision=5760
2005-04-02 15:51:45 +00:00