*** empty log message ***

svn path=/trunk/boinc/; revision=10906
This commit is contained in:
David Anderson 2006-08-14 17:04:57 +00:00
parent 031605a3c7
commit 67bddbea91
5 changed files with 60 additions and 4 deletions

View File

@ -8737,7 +8737,7 @@ Rom 13 Aug 2006
lib/
diagnostics_win.C
David 11 Aug 2006
David 13 Aug 2006
- User web: multi-column option for displaying venue-specific prefs
- User web: value-checking on prefs
(from Christian Beer)
@ -8764,3 +8764,18 @@ David 11 Aug 2006
prefs_edit_form.php (removed)
prefs_remove.php
white.css
David 14 Aug 2006
- GUI RPC: added new RPCs
get_global_prefs_override_struct(GLOBAL_PREFS&) and
set_global_prefs_override_struct(GLOBAL_PREFS&)
Note: these are useful only when ALL prefs are being
specified in the override file,
as there's no provision for "undefined" values in the structs.
html/inc/
util.inc
lib/
gui_rpc_client.h
gui_rpc_client_ops.C

View File

@ -25,11 +25,11 @@ won't be able to delete the files there.
<p>
Edit /etc/group so that apache belongs to group boinc, i.e. the line:
<pre>
boinc:x:566:
boinc:x:566:
</pre>
becomes:
<pre>
boinc:x:566:apache
boinc:x:566:apache
</pre>
(Apache will need to be stopped/restarted for this to take effect.)
<p>
@ -39,10 +39,22 @@ the critical directories are owned by boincadm
and have the set-GID bit set;
this means that any directories or files created by apache
in those directories will have group boinc (not group apache).
Also, the BOINC software makes all directories group read/write.
The BOINC software makes all directories group read/write.
Thus, both apache and boinc will have read/write access to
all directories and files,
but other users will have no access.
<p>
On an existing project, do:
<pre>
chmod 02770 upload
chmod 02770 html/cache
chmod 02770 html/inc
chmod 02770 html/languages
chmod 02770 html/languages/compiled
chmod 02770 html/user_profiles
</pre>
You may also need to change the ownership of these directories
and all their subdirectories to boincadm/boinc.
<p>
If you're running several projects on the same server and

View File

@ -588,6 +588,7 @@ function link_with_GET_variables($text, $baseurl, $variable_name, $variable_valu
// @param double $low the lowest number of value if verified
// @param double $high the highest number of value if verified
// @return bool true if $value is numeric and within the defined borders, false if $value is not numeric, no changes were made in this case
//
function verify_numeric(&$value, $low, $high = false) {
$number = trim($value);
$number = str_replace('o', '0', $number);

View File

@ -619,6 +619,8 @@ public:
int get_cc_status(CC_STATUS&);
int get_global_prefs_override(std::string&);
int set_global_prefs_override(std::string&);
int get_global_prefs_override_struct(GLOBAL_PREFS&);
int set_global_prefs_override_struct(GLOBAL_PREFS&);
};
struct RPC {

View File

@ -2006,4 +2006,30 @@ int RPC_CLIENT::set_global_prefs_override(string& s) {
return retval;
}
int RPC_CLIENT::get_global_prefs_override_struct(GLOBAL_PREFS& prefs) {
int retval;
string s;
MIOFILE mf;
char buf[64000];
bool found_venue;
retval = get_global_prefs_override(s);
if (retval) return retval;
strcpy(buf, s.c_str());
mf.init_buf(buf);
prefs.parse(mf, "", found_venue);
return 0;
}
int RPC_CLIENT::set_global_prefs_override_struct(GLOBAL_PREFS& prefs) {
char buf[64000];
MIOFILE mf;
string s;
mf.init_buf(buf);
prefs.write(mf);
s = buf;
return set_global_prefs_override(s);
}
const char *BOINC_RCSID_90e8b8d168="$Id$";