Commit Graph

952 Commits

Author SHA1 Message Date
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 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
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
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
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
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
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
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 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
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
David Anderson 513fa98c55 - user web: add links to BOINC-wide team sites
and www.boincteams.com from Team management page
- client: change error strings from, e.g.,
    "system chown" to "chown() failed"

svn path=/trunk/boinc/; revision=13644
2007-09-24 20:13:38 +00:00
Rytis Slatkevičius 33f7f585bd HTML fix
svn path=/trunk/boinc/; revision=13638
2007-09-23 19:19:37 +00:00
David Anderson 49bf68fbbb - user web: make it possible to merge hosts with OS other
than win/mac/linux/solaris;
    when can't merge hosts, explain why better


svn path=/trunk/boinc/; revision=13592
2007-09-17 13:34:46 +00:00
Rytis Slatkevičius dd97f02834 - User web: fix XSS vulnerability, web code update recommended
svn path=/trunk/boinc/; revision=13586
2007-09-13 09:46:36 +00:00
Rytis Slatkevičius ae628d1fcd Hide deleted posts when using the search (fix #191)
svn path=/trunk/boinc/; revision=13580
2007-09-12 15:02:39 +00:00
David Anderson c0c6cf779d - file upload handler:
in get_file_size() RPC, check if volume has < 1MB available space
    and if so return transient error.
    This prevents client from trying upload,
    which apparently sends entire file even if
    handler fails at the beginning
- API, Win: remove use of GetTickCount(); use dtime() instead
- use new BOINC logo in sample project home page

svn path=/trunk/boinc/; revision=13574
2007-09-12 08:25:22 +00:00
Rytis Slatkevičius 571dc4afe0 User web: fix issues regarding forum preferences reset.
svn path=/trunk/boinc/; revision=13557
2007-09-09 19:01:05 +00:00
Rytis Slatkevičius a48027767f User web: new functions to show table rows (and headers) with unlimited number of columns (table_row() and table_header())
User web: show credit information in team member list

svn path=/trunk/boinc/; revision=13464
2007-08-26 12:01:41 +00:00
Rytis Slatkevičius 0623635a9e User web: update web RPC so that project specific preferences are preserved if they are missing in the request but present in previous settings (to reset them AMS should send <project_specific></project_specific>)
svn path=/trunk/boinc/; revision=13463
2007-08-26 11:15:44 +00:00
Rytis Slatkevičius f5ac3f8631 Do not allow blank or NULL countries
svn path=/trunk/boinc/; revision=13462
2007-08-26 10:29:08 +00:00
Rytis Slatkevičius 87f0b0665c User web: allow projects to add custom text to rules and policies page without modifying the source (so that it is not overwritten after code update).
svn path=/trunk/boinc/; revision=13461
2007-08-25 15:28:39 +00:00
Rytis Slatkevičius 31901159fc Make private message functions translatable, using newly added string-based translation method.
Update English and Lithuanian languages.

svn path=/trunk/boinc/; revision=13460
2007-08-25 15:04:29 +00:00
Rytis Slatkevičius 2667e5844d Add host id to pending credits page (fix #377)
svn path=/trunk/boinc/; revision=13453
2007-08-24 19:26:33 +00:00
Rytis Slatkevičius 2678dcc331 User web: fix XSS vulnerability in team join/quit/lookup code.
svn path=/trunk/boinc/; revision=13450
2007-08-24 15:41:01 +00:00
Rytis Slatkevičius 6c71f08c6f Private messages: preview function before sending (fix #227)
svn path=/trunk/boinc/; revision=13416
2007-08-20 17:59:24 +00:00
Rytis Slatkevičius 882d20b226 Forums: return user to the same page after selecting "Mark all threads as read".
svn path=/trunk/boinc/; revision=13412
2007-08-18 16:14:53 +00:00
David Anderson d5a4824db3 - XML RPC: add user name, ID to team_delta.php XML version
svn path=/trunk/boinc/; revision=13320
2007-08-15 03:07:35 +00:00
David Anderson 71fc375d1b - feeder: created shared mem seg with 0666 rather than 0660.
In principle 0660 should work (assuming apache belongs to admin group)
    but apparently on some Linux systems it doesn't,
    and the feeder gets "can't attach to shared mem" errors.
- scheduler: print uid/gid info if can't attach to shared mem
- user web: fix bug in team founder transfer form

svn path=/trunk/boinc/; revision=13255
2007-08-01 15:35:08 +00:00
David Anderson 14bc500cab - user web: added mechanism for recording team membership changes.
These are stored in a new DB table, "team_delta".
    The team founder can view the history in HTML or XML
    (links on Management Functions page)

svn path=/trunk/boinc/; revision=13231
2007-07-27 18:30:10 +00:00