Commit Graph

37 Commits

Author SHA1 Message Date
David Anderson 7302f02544 - user web: added new framework for DB access from PHP.
Here's how things should eventually be:
    - inc/db_conn.inc defines DbConn, a PHP class representing
        a connection to a database with
        various generic operations (update, insert etc.).
        DbConn prepends the DB name to table names,
        so you don't have to select a DB;
        this means you can access multiple databases
        (e.g. BOINC and Bossa) and use persistent connections.
        ALL MYSQL-SPECIFIC CODE WILL EVENTUALLY BE HERE.
    - inc/boinc_db.inc defines classes BoincUser, BoincTeam etc.,
        representing the various BOINC DB tables.
        All access to the DB should use these classes.

    When you use this framework, no initialization calls are needed.
    db.inc is deprecated and should eventually be removed.

    I changed get_logged_in_user()
    and all team-related code to use this framework.
- user web: show team founder link to "management functions"
    even if they're not currently a member;
    allow team founder to perform all operations even if not a member.
- turned on E_ALL error checking,
    and fixed a bunch of warnings
    and a couple of bugs ($team, not team)

- database: update schema/constraints for team fulltext search
- user web: forgot to change Serbia and Montenegro to Serbia

svn path=/trunk/boinc/; revision=13968
2007-10-26 21:14:35 +00:00
Rytis Slatkevičius aac96f2858 User web: tokenless translation, add wildcards
svn path=/trunk/boinc/; revision=13459
2007-08-25 14:45:15 +00:00
Rytis Slatkevičius f2844f426b User web: tokenless translation, fix display when translation missing.
svn path=/trunk/boinc/; revision=13458
2007-08-25 13:38:04 +00:00
Rytis Slatkevičius 595ded5e4c User web: tokenless translation, do the same for project specific files.
svn path=/trunk/boinc/; revision=13457
2007-08-25 13:30:08 +00:00
Rytis Slatkevičius 2ce1ad7732 User web: allow tokenless translations (takes actual string instead of a token). New translation strings should use tra("string") instead of tr(TOKEN).
svn path=/trunk/boinc/; revision=13456
2007-08-25 13:28:01 +00:00
David Anderson 293176d656 - user web: add
$s = '$s';
    at top of compiled translation files,
    to allow re-ordering of format codes
    (from H. Komori)

html/inc/
    translation.inc

svn path=/trunk/boinc/; revision=12673
2007-05-15 21:41:59 +00:00
David Anderson 0daa5a8802 - translation.inc: backed out change of 7 May;
we need to use " to expand $PROJECT var
- scheduler:
    take work_buf_min into account in deciding whether
    a result will be reported by its deadline.
- all back end programs:
    better error message if can't parse config file

html/inc/
    translation.inc
sched/
    *.C

svn path=/trunk/boinc/; revision=12652
2007-05-11 16:30:13 +00:00
David Anderson f6a06c60ac - client simulator:
- Add --server_uses_workload option
            (simulate server that does EDF simulation)
        - Add simulation of exponential backoff when don't get work.
            Otherwise it will keep asking forever.
        - move non-interesting stuff to sim_util.C
    - change simulator code to use ' instead of " in compiled translations
    
    client/
        makefile_sim
        sim_util.C
        sim.C,h
        work_fetch.C
    html/inc/
        translation.inc
    sched/
        edf_sim.C
        edf_sim.h (new)

svn path=/trunk/boinc/; revision=12604
2007-05-08 01:55:28 +00:00
Janus B. Kristensen 80d875b076 Removed some old debug and changed a bogus error message with a more sane one
svn path=/trunk/boinc/; revision=12580
2007-05-06 22:38:43 +00:00
David Anderson c72634456d - make_project and upgrade now write a file 'local.revision'
in the project home directory.
        It contains the output of /usr/bin/svnversion,
        i.e. the code revision from which the server software was built.
    - Web files that create directories now give them g+rwx permissions

    html/inc/
        cache.inc
        translation.inc
    sched/
        edf_sim.C
    tools/
        make_project
        upgrade

svn path=/trunk/boinc/; revision=12521
2007-05-01 21:21:13 +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 fe32380dcf David 23 Apr 2007
- make_project: remove --no_test_app option, add --test_app option
    - make_project: initial config in all cases has
        one_result_per_user_per_wu = 0
    - sample_assimilator: make it able to handle > 1 output file
    - boinc_cmd: make --help output more readable
    - User web: fix some undefined vars in translation.inc
        Rytis: let's try to fix PHP runtime warnings
    - DB: add default values for app table (avoid MySQL warnings)

    db/
        schema.sql
    html/
        inc/
            translation.inc
            uotd.inc
        ops/
            update_forum_activities.php
    lib/
        str_util.C
        boinc_cmd.C
    py/Boinc/
        setup_project.py
    sched/
        sample_work_generator.C
        sample_assimilator.C
    tools/
        make_project
        uc_wu, uc_result (new)

svn path=/trunk/boinc/; revision=12450
2007-04-23 16:14:47 +00:00
David Anderson 6f6f62c955 *** empty log message ***
svn path=/trunk/boinc/; revision=11515
2006-11-10 17:55:22 +00:00
David Anderson 7f4a2c5e19 *** empty log message ***
svn path=/trunk/boinc/; revision=11196
2006-09-26 17:02:46 +00:00
David Anderson 15b02359cd *** empty log message ***
svn path=/trunk/boinc/; revision=10950
2006-08-21 01:44:03 +00:00
David Anderson 6c8c7477e8 *** empty log message ***
svn path=/trunk/boinc/; revision=10904
2006-08-13 21:51:15 +00:00
David Anderson f4a37c6130 *** empty log message ***
svn path=/trunk/boinc/; revision=10875
2006-08-09 19:12:54 +00:00
David Anderson edafe87ad4 *** empty log message ***
svn path=/trunk/boinc/; revision=10731
2006-07-22 18:24:01 +00:00
David Anderson 5617df5f47 *** empty log message ***
svn path=/trunk/boinc/; revision=10118
2006-05-09 18:25:15 +00:00
David Anderson acc3b042f8 *** empty log message ***
svn path=/trunk/boinc/; revision=8772
2005-10-29 05:30:57 +00:00
David Anderson c2dff598d9 language list fix
svn path=/trunk/boinc/; revision=8771
2005-10-29 04:56:33 +00:00
Janus B. Kristensen 7523c3f7d9 Added = to == to get === (a boolean comparison) instead of == (an evaluated value comparison)
svn path=/trunk/boinc/; revision=8683
2005-10-16 10:11:19 +00:00
Janus B. Kristensen e5f8640c47 Testing if this removes warnings
svn path=/trunk/boinc/; revision=8514
2005-10-05 20:17:36 +00:00
Bruce Allen 20030738da eliminate a '===' typo
eliminate use of undefined variables

correct use of 'define()' syntax in the .inc file output
by translation.inc

svn path=/trunk/boinc/; revision=8400
2005-10-01 18:19:28 +00:00
Bruce Allen c62d4ef71b Undefined variable
svn path=/trunk/boinc/; revision=8399
2005-10-01 17:50:15 +00:00
Bruce Allen e0ec126c5d Eliminate PHP warning
svn path=/trunk/boinc/; revision=8396
2005-10-01 17:10:31 +00:00
Janus B. Kristensen 6ecd1b8008 Make compiler more stable in a heavily accessed environment, where mutual exclusion cannot be guaranteed by the filesystem.
svn path=/trunk/boinc/; revision=7827
2005-09-07 15:54:35 +00:00
Janus B. Kristensen 66b501a03d compile_languages is an optional parameter used to recompile the languages in case of an error. This is simply a debug thing and will be removed when the translator has proven to work over a longer period of time.
svn path=/trunk/boinc/; revision=6145
2005-05-13 19:13:12 +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 90420d0dbd Create missing dirs on first start, support for dual ID (xx_YY) languages, uses list traversal instead of just first browser specified language, uses cookies to override browser string. General fixes and updates.
svn path=/trunk/boinc/; revision=5759
2005-04-02 15:49:30 +00:00
David Anderson f949aa0e35 *** empty log message ***
svn path=/trunk/boinc/; revision=5556
2005-03-03 19:36:32 +00:00
Janus B. Kristensen a705b7db17 Correct compiler to avoid concurrent compiles
svn path=/trunk/boinc/; revision=5550
2005-03-02 13:33:07 +00:00
Janus B. Kristensen b2922a60b1 Translator echos to logger instead of output
svn path=/trunk/boinc/; revision=5518
2005-02-24 18:48:12 +00:00
David Anderson 1e808b012c *** empty log message ***
svn path=/trunk/boinc/; revision=5494
2005-02-22 19:37:55 +00:00
Janus B. Kristensen 95fda61c2e - Build interface from project default language instead of explicitly writing it in a file.
- Added a new layer of translation - the project specifc one, where projects can add their own translations.

svn path=/trunk/boinc/; revision=5457
2005-02-17 12:26:04 +00:00
Janus B. Kristensen e63599ac61 Small correction to allow empty lines and comments in language.po files and language interface.
svn path=/trunk/boinc/; revision=5360
2005-02-08 12:18:02 +00:00
Janus B. Kristensen 0b5da1f400 Translation functions (currently no support for project specific expansions)
svn path=/trunk/boinc/; revision=5254
2005-01-31 20:32:49 +00:00