Commit Graph

11157 Commits

Author SHA1 Message Date
David Anderson ee4e3fba01 - user web: Add BoincDb::escape_string(),
and have boinc_real_escape_string 
    call it rather than mysql_real_escape_string(),
    to ensure that a DB connection exists
    (you need one to call mysql_real_escape_string()).
- some additional conversion to BoincDb-based classes

svn path=/trunk/boinc/; revision=13977
2007-10-27 20:38:12 +00:00
David Anderson 334bb2a9b7 - show "merge by name" only to owner
svn path=/trunk/boinc/; revision=13976
2007-10-27 20:05:32 +00:00
Charlie Fenton 4aeee97d39 Mac: build curl script: use gcc-4.0 to build curl, add optional -gcc33 arg to build with gcc-3.3
svn path=/trunk/boinc/; revision=13975
2007-10-27 11:19:12 +00:00
Charlie Fenton c1646efac3 Fix XCode project when using debug build of wxMac-2.6.3
svn path=/trunk/boinc/; revision=13974
2007-10-27 11:17:51 +00:00
Charlie Fenton e21c238a6f Mac: Use gcc-4.0 to build wxMac and curl; Fix bugs in scripts for building wxMac-2.6.3; fix XCode project when using debug build of wxMac-2.6.3
svn path=/trunk/boinc/; revision=13973
2007-10-27 11:17:31 +00:00
Charlie Fenton d52ab508d5 Mac: Fix bugs in scripts for building wxMac-2.6.3 and use gcc-4.0; fix XCode project when using debug build of wxMac-2.6.3
svn path=/trunk/boinc/; revision=13972
2007-10-27 11:16:38 +00:00
David Anderson 1ff8594698 - user web: fixed a few hex colors without #
svn path=/trunk/boinc/; revision=13969
2007-10-26 22:07:39 +00:00
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
David Anderson c6c066bde1 - Bossa: refactor DB code, creating a new PHP class DbConn
representing a connection to a database.
    This is independent of Bossa,
    and we should rewrite the BOINC PHP code based on this.

svn path=/trunk/boinc/; revision=13967
2007-10-26 17:04:46 +00:00
Charlie Fenton d0032ae0d8 Mac: Update XCode project build rules: DWARF symbols, use gcc 4 compiler more, Client, Manager, installer require OS 10.3.9.
svn path=/trunk/boinc/; revision=13966
2007-10-26 10:01:28 +00:00
Charlie Fenton 4394245d16 Fix GridRepublic branding bug.
svn path=/trunk/boinc/; revision=13965
2007-10-26 10:00:00 +00:00
David Anderson 89c9b4f112 - user web: added optional <users_per_page>, <teams_per_page> and
<hosts_per_page> elements to config.xml;
    determine the number of entries to show per page
    in top user/team/host lists

svn path=/trunk/boinc/; revision=13964
2007-10-26 03:57:07 +00:00
David Anderson 156aa07711 svn path=/trunk/boinc/; revision=13963 2007-10-25 21:36:05 +00:00
David Anderson 27a7659f36 - Bossa: changed the DB infrastructure to let Bossa tables
live in a different database (and/or server) than the BOINC tables.
    Also eliminated the need to call a DB init function.
    This involved:
    1) adding <bossa_db_host> etc. entries to config.xml
    2) prefixing DB name to table name in all Bossa queries
        (this is needed if Bossa DB is on same server as BOINC DB,
        since we're using persistent connections)
- user web: added Montenegro, and changed Serbia and Montenegro to Serbia
    (requires DB update to make latter change in existing records)


svn path=/trunk/boinc/; revision=13962
2007-10-25 21:34:13 +00:00
Rytis Slatkevičius b82c9454ed User web: add reCAPTCHA to profile creation/modification page.
svn path=/trunk/boinc/; revision=13961
2007-10-25 10:43:16 +00:00
Charlie Fenton 0f315c90ef Mac: XCode cleanup, changes for 64-bit support
svn path=/trunk/boinc/; revision=13960
2007-10-25 09:36:01 +00:00
Charlie Fenton 68d58eb3e8 Mac: Fix compiler warnings, XCode cleanup, changes for 64-bit support
svn path=/trunk/boinc/; revision=13959
2007-10-25 09:35:47 +00:00
Charlie Fenton 06012437a6 Mac: Fix compiler warnings
svn path=/trunk/boinc/; revision=13958
2007-10-25 09:34:16 +00:00
Charlie Fenton 8da306d4d8 Release BOINC Mac 5.10.27
svn path=/trunk/boinc/; revision=13957
2007-10-24 23:56:11 +00:00
Rom Walton 23609b858b - DIAG: Remove references to diagnostics_set_thread_name().
api/
        boinc_api.C
        windows_opengl.C
    lib/
        diagnostics.h
        diagnostics_win.C

svn path=/trunk/boinc/; revision=13956
2007-10-24 23:49:52 +00:00
David Anderson 7c20a8c5cf - client: add <max_stdout_file_size> and <max_stderr_file_size>
cc_config.xml options to change log file size limit
    from the default of 2 MB

svn path=/trunk/boinc/; revision=13955
2007-10-24 22:48:47 +00:00
Rom Walton 930c8ad9c7 Quick Updates
svn path=/trunk/boinc/; revision=13952
2007-10-24 20:54:11 +00:00
Eric J. Korpela fea4674524 Fix sql bug in vote_monitor
svn path=/trunk/boinc/; revision=13949
2007-10-24 20:14:20 +00:00
David Anderson 625b129abc - client: fixed bug that broke idle detection on Unix.
The problem: the various checks were surrounded by things like
    #ifdef HAVE__DEV_MOUSE
    If the host on which the client is built doesn't have a mouse
    (as is the case with our build machine)
    then the resulting executable doesn't check /dev/mouse,
    even if it exists on the target host.
- removed configure checks for /dev/mouse, /dev/kbd, and /dev/tty1

svn path=/trunk/boinc/; revision=13947
2007-10-24 18:58:23 +00:00
David Anderson d4cd3ac853 - user web: change "host" to "computer" in a few places
svn path=/trunk/boinc/; revision=13946
2007-10-24 17:59:08 +00:00
David Anderson 05542a460f - user web: enable the "merge computers by name" feature.
I added this on 30 May 07 but accidentally left
    "if ($userid==0)" around it.

svn path=/trunk/boinc/; revision=13945
2007-10-24 17:35:28 +00:00
Frank Thomas a122425261 MGR: Check on account creation if wxGetUserName() returned an empty string and
if it did assign the output of wxGetUserId() to ai->user_name instead.
(fixes #440)


svn path=/trunk/boinc/; revision=13940
2007-10-24 07:53:29 +00:00
Charlie Fenton c9718fb0b9 Mac client: Add 64-bit support for OS 10.5 (new platform x86_64-apple-darwin)
svn path=/trunk/boinc/; revision=13939
2007-10-24 00:44:42 +00:00
David Anderson 618a5c1651 - assimilator: there was a bug in the situation where:
1) a WU is marked as ready for assimilation and has no errors;
    2) it has no canonical result
    In this case, the assimilate handler gets called anyway,
    typically with the canonical result of the previous WU as arg.
    Note: this situation doesn't arise normally;
    it might happen if some results are deleted accidentally.
    The fix: 
    - identify this situation, and set the WU.error_mask to a new code
        (WU_ERROR_NO_CANONICAL_RESULT)
    - zero out the "canonical_result" variable passed to the handler,
        so even if the handler fails to check wu.error_mask,
        at least it won't assimilate the same result twice.
    Thanks to Hendrik Verhoek for finding this bug.
- DB schema: team table type is MyISAM, not InnoDB

svn path=/trunk/boinc/; revision=13938
2007-10-23 17:11:56 +00:00
Rom Walton f77ad4b0aa - client: read_file_string was modified sometime ago to support tail
functionality, we really do want only the last 63KB of stderr
        for science applications.
    
    client/
        app_control.C

svn path=/trunk/boinc/; revision=13935
2007-10-23 14:50:02 +00:00
David Anderson 1e2a6c29b8 - client: remove unparsed XML error for <active_task_state>
- client: remove spurious error if include <alt_platform> in cc_config.xml

svn path=/trunk/boinc/; revision=13934
2007-10-22 23:56:10 +00:00
David Anderson 5e5a063ef5 - GUI RPC: fix format of <auth2> request
- GUI RPC: don't enable network on bad request

svn path=/trunk/boinc/; revision=13933
2007-10-22 23:41:12 +00:00
Charlie Fenton 6e0218de66 Release Mac BOINC 5.10.26
svn path=/trunk/boinc/; revision=13932
2007-10-22 23:29:17 +00:00
David Anderson 7c32018889 - API: fixes for SETI@home
svn path=/trunk/boinc/; revision=13930
2007-10-22 23:12:42 +00:00
Rom Walton 148fc8e0b0 Quick Updates
svn path=/trunk/boinc/; revision=13929
2007-10-22 21:35:28 +00:00
Rytis Slatkevičius 4b28e7c183 User web: add HTML DOCTYPE (4.01 Transitional) to all pages, make some HTML validity changes.
svn path=/trunk/boinc/; revision=13928
2007-10-22 19:36:01 +00:00
David Anderson 615e108441 - API: fix bug introduced in 13696 causing no graphics on Linux
svn path=/trunk/boinc/; revision=13922
2007-10-22 03:15:51 +00:00
David Anderson 1239291e44 - client: add <active_task_state> to <active_task> elements in state file.
These are needed by some 3rd-party software that uses
    the state file instead of GUI RPCs


svn path=/trunk/boinc/; revision=13921
2007-10-21 20:54:24 +00:00
Rytis Slatkevičius c6824891d7 Get rid of PHP notice (undefined index)
svn path=/trunk/boinc/; revision=13920
2007-10-21 13:10:13 +00:00
Reinhard Prix 4089ad11ca fixed handling of curl-libs to avoid erroneous trunction of compiler-flags
containing '-l', such as '-funroll-loops'. These are not really supposed to be contained in 
"curl-config --libs", but apparently this happens at least in Gentoo, as reported here:
http://bugs.gentoo.org/show_bug.cgi?id=139621.
I have applied the patch supplied by Darragh Bailey (of 2006-07-07).
This should fix Gentoo Bugzilla Bug 139621.

svn path=/trunk/boinc/; revision=13919
2007-10-21 07:41:45 +00:00
David Anderson e8c2a2927a - client: cc_config.xml can contain one or more <alt_platform> elements
specifying additional alternate platforms.

svn path=/trunk/boinc/; revision=13918
2007-10-20 16:10:57 +00:00
Eric J. Korpela 706b283b19 Added ability for forum moderators to vote for banishment of a poster
New db tables banishment_vote and banishment_votes
Daemon script vote_monitor for timing the votes
New configuration option <moderators_vote_to_ban/>



svn path=/trunk/boinc/; revision=13917
2007-10-19 20:01:36 +00:00
Rom Walton 068ac0cb37 Quick Updates
svn path=/trunk/boinc/; revision=13914
2007-10-19 15:54:43 +00:00
Rom Walton 16b1887613 - TRAY: Remove the icon resource from boinctray.exe
clienttray/
        boinc_tray.h
        boinc_tray.rc
        tray_win.cpp

svn path=/trunk/boinc/; revision=13912
2007-10-19 02:55:31 +00:00
Charlie Fenton 7c4d159591 Fix double daylight savings time adjustment on UNIX/Linux
svn path=/trunk/boinc/; revision=13910
2007-10-18 23:31:55 +00:00
David Anderson f5dff1892c svn path=/trunk/boinc/; revision=13909 2007-10-18 22:18:20 +00:00
David Anderson 094eb0095e - Bossa:
JSON-encode stuff
    use text instead of varchar(255) a couple of places
    create Bossa class for utility functions

svn path=/trunk/boinc/; revision=13908
2007-10-18 21:43:25 +00:00
Rom Walton 0b98b0f0cd - Add the Global prefix to the shared memory segment that
is used to track keyboard and mouse activity for any
        machine that is Windows 2000 or better.
    
    clientlib/win/
        IdleTracker.cpp

svn path=/trunk/boinc/; revision=13907
2007-10-18 18:53:56 +00:00
David Anderson ecee1b4968 - client(win) fix time-zone code
svn path=/trunk/boinc/; revision=13904
2007-10-18 15:15:22 +00:00
Charlie Fenton ef0de723fc Release BOINC Mac 5.10.24
svn path=/trunk/boinc/; revision=13903
2007-10-18 09:02:54 +00:00