Commit Graph

1808 Commits

Author SHA1 Message Date
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
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
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
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 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
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
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
Rytis Slatkevičius c70f01b64d Fix unclosed HTML tag
svn path=/trunk/boinc/; revision=13877
2007-10-17 16:35:22 +00:00
Jens Seidler 4a012f8c2c Localization: BOINC distributed websites and BOINC Manager language files: Russian(ru), Durch(nl)
svn path=/trunk/boinc/; revision=13866
2007-10-17 05:44:52 +00:00
David Anderson b079d40cb9 - API, Unix: call getrusage() from the timer thread,
not the worker signal handler.
    There's no reason to call it from the signal handler -
    it returns the CPU for the entire process, not the calling thread.
    And it may be asynch-signal-handler-unsafe.
- API: comment out checks for bad CPU times.
    I don't think this is needed now, and in some cases it's wrong
    (multi-threaded apps can accumulate CPU faster than real time)
- API, Unix: in boinc_calling_thread_cpu_time(), don't retry getrusage().
- Bossa: switch to better class structure (suggested by Nicolas Alvarez).
    Haven't switched to mysqli yet, but will later.
    Also various other Bossa fixes

svn path=/trunk/boinc/; revision=13855
2007-10-16 23:02:13 +00:00
David Anderson ad2fe67886 - Initial checkin of Bossa code.
This isn't part of BOINC and eventually
    it should go in a different repository,
    but for now I'm putting it here.

svn path=/trunk/boinc/; revision=13851
2007-10-16 17:12:48 +00:00
Bruce Allen 00dbc6db34 Ops pages. In the course of a four-hour repair of the E@H database, where a sysadmin accidentally set outcome=6 in the entire result table, I noticed some inconsistencies in the summary result tables, for example that they did not properly incorporate outcome==7 (client detached) or client_state==6 (aborted). I have fixed this.
svn path=/trunk/boinc/; revision=13850
2007-10-15 23:04:55 +00:00
Jens Seidler 5d05f0c2ff Localization: BOINC distributed websites and BOINC Manager language updated: Chinese Simplified(zh_CN), Spanish(es)
svn path=/trunk/boinc/; revision=13846
2007-10-12 21:24:37 +00:00
Rytis Slatkevičius 717898ae03 Fix a lot of PHP notices that show up when error reporting E_NOTICE is enabled
svn path=/trunk/boinc/; revision=13843
2007-10-12 17:58:50 +00:00
Eric J. Korpela a5532cd0d8 Require non-zero credit to create profile. David will modify to be
configuration option


svn path=/trunk/boinc/; revision=13835
2007-10-11 15:28:12 +00:00
Janus B. Kristensen 05f6bc678f Due to magic quotes check the IDs and hashes are now always 20 bytes
svn path=/trunk/boinc/; revision=13825
2007-10-10 21:06:10 +00:00
Janus B. Kristensen d6d1b2bf73 Added check for magic quotes
svn path=/trunk/boinc/; revision=13824
2007-10-10 21:04:20 +00:00
Frank Thomas fbcfeaf456 - Removed the svn:executable property from files that should not be executable,
like source code and text files. I skipped to check most files in html/
  and mac_*/ though.
- Added svn:executable to tools/watch_tcp because it has a shebang.


svn path=/trunk/boinc/; revision=13819
2007-10-10 09:25:40 +00:00
Janus B. Kristensen f08a68f9ee The ipbans table has a list of banned IPs, keep in mind, though that this resets when the MySQL server is restarted, so a single user may not be banned forever (people on non-static IPs shouldn't be able to punish the person getting that IP next anyways)
svn path=/trunk/boinc/; revision=13818
2007-10-10 07:57:23 +00:00
David Anderson 383b21dd5a - update_versions now generates <api_version> for all app versions
- user web: don't XML-escape team names in DB
- deleted obsolete files
- calloc() return check, fixes #277

svn path=/trunk/boinc/; revision=13817
2007-10-09 22:58:49 +00:00
Rom Walton 38d4aecc0b Delete outdated .cvsignore files
svn path=/trunk/boinc/; revision=13814
2007-10-09 18:03:21 +00:00
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
Janus B. Kristensen 75b75b201c Database table for Bittorrent peers.
svn path=/trunk/boinc/; revision=13793
2007-10-08 07:55:13 +00:00
Janus B. Kristensen 243e89d8ac Traverse the filepath given as argument by progressively removing the root of the path.
svn path=/trunk/boinc/; revision=13792
2007-10-08 07:51:30 +00:00
David Anderson 9b66217202 - user web: when a table column has numbers intended to be compared,
right-justify them


svn path=/trunk/boinc/; revision=13791
2007-10-07 21:32:55 +00:00
David Anderson 015ef7be04 - user web: remove debugging text from host merge page
svn path=/trunk/boinc/; revision=13790
2007-10-07 19:37:31 +00:00
David Anderson d09bf92af3 - user web: add format_credit_large() function to show
credit in situations where it's likely to be large (e.g. team totals)

svn path=/trunk/boinc/; revision=13789
2007-10-07 19:27:59 +00:00
David Anderson 066f01dc26 - Terminology in user web and client:
"task" instead of "result";
    "computer" instead of "host";
    "scheduler request" instead of "scheduler RPC"
    "access to Internet" instead of "access to reference web site"

svn path=/trunk/boinc/; revision=13774
2007-10-04 17:30:28 +00:00
Rytis Slatkevičius f6e3a359aa Fix #236:
Private messages: allow interaction with multiple messages from the inbox, add new related translation strings.

svn path=/trunk/boinc/; revision=13761
2007-10-03 10:03:49 +00:00
David Anderson 38ba2854a0 svn path=/trunk/boinc/; revision=13750 2007-10-02 16:26:39 +00:00
David Anderson cefb2ee5aa - user web: team search tweaks
svn path=/trunk/boinc/; revision=13749
2007-10-02 15:32:28 +00:00
David Anderson d53595f047 - user web: team search tweaks
svn path=/trunk/boinc/; revision=13748
2007-10-02 15:12:45 +00:00
David Anderson 0c1dcbfe86 - user web: tweaks to team search
svn path=/trunk/boinc/; revision=13747
2007-10-02 15:07:43 +00:00
David Anderson 0b8d9a950b svn path=/trunk/boinc/; revision=13732 2007-10-02 03:31:43 +00:00
David Anderson 2272891035 - user web: add "team search" page, which does a multi-criteria
search (keywords, country, type).
    Have the new-user scenario route the user through this page.
    Also, link to it rather than team.php for existing users.
- user web: use cookies rather than URLs to identify new users,
    and show "Welcome to X" when they reach their user page.
- user web: don't show user intermediate page for join/quit team.
    Just take them to their user page.

svn path=/trunk/boinc/; revision=13731
2007-10-02 03:19:03 +00:00
Rytis Slatkevičius bd858b38fd Include "category" in moderation emails
svn path=/trunk/boinc/; revision=13718
2007-09-30 11:17:11 +00:00
Rytis Slatkevičius 793c459f67 Fix forum preview once again
svn path=/trunk/boinc/; revision=13717
2007-09-29 18:40:46 +00:00
Rytis Slatkevičius 870924eb13 Fix #424 (backslash problem)
svn path=/trunk/boinc/; revision=13716
2007-09-29 15:47:12 +00:00
Rytis Slatkevičius f2cccbd4cf Preview functionality for the forums
svn path=/trunk/boinc/; revision=13715
2007-09-29 12:53:16 +00:00
David Anderson aee80d8fea - simplify sql query
svn path=/trunk/boinc/; revision=13676
2007-09-26 17:54:35 +00:00
Rytis Slatkevičius 4b8aeabf91 User web: fix an annoyance when team founder transfer is requested and the requester leaves the team.
NOTE: DB UPDATE REQUIRED.

svn path=/trunk/boinc/; revision=13673
2007-09-26 15:46:54 +00:00