mirror of https://github.com/BOINC/boinc.git
Merge branch 'drupal-generic' of gitmaster.atlas.aei.uni-hannover.de:einsteinathome/drupal-boinc into drupal-generic
Conflicts: drupal/sites/default/boinc/modules/boincuser/includes/boincuser.forms.inc
This commit is contained in:
commit
8820d6fb1e
|
@ -400,6 +400,9 @@ function boincuser_request_pass_validate($form, &$form_state) {
|
|||
* The definition of the authenticator login form.
|
||||
*/
|
||||
function boincuser_authloginform() {
|
||||
$headers = apache_request_headers();
|
||||
$project_name = variable_get('site_name', 'einsteinathome.org');
|
||||
$project_domain = $headers['Host'];
|
||||
$form['heading'] = array(
|
||||
'#type' => 'markup',
|
||||
'#value' => '<h3>' . bts("If you forgot your account's email address, or you can't receive email there:") . '</h3>'
|
||||
|
@ -410,13 +413,13 @@ function boincuser_authloginform() {
|
|||
'<p>' . bts("If you have run BOINC under the account, you can still access it. Here's how:") .
|
||||
' <ul>' .
|
||||
' <li>' . bts('Go to the BOINC data directory on your computer (see !boinc_wiki for help finding this).', array('!boinc_wiki' => l(bts('BOINC documentation'), 'http://boinc.berkeley.edu/wiki/BOINC_Data_directory'))) . '</li>' .
|
||||
' <li>' . bts('Find your account file for this project; it will have a name like %file (where the project URL is %url).', array('%file' => 'account_lhcathome.cern.ch.xml', '%url' => 'http://lhcathome.cern.ch')) . '</li>' .
|
||||
' <li>' . bts('Find your account file for this project; it will have a name like %file (where the project URL is %url).', array('%file' => "account_{$project_domain}.xml", '%url' => "http://{$project_domain}")) . '</li>' .
|
||||
' <li>' . bts("Open the file in a text editor like Notepad. You'll see something like:") .
|
||||
' <pre>' .
|
||||
'<account>' . "\n" .
|
||||
' <master_url>http://lhcathome.cern.ch/</master_url>' . "\n" .
|
||||
" <master_url>http://{$project_domain}/</master_url>" . "\n" .
|
||||
' <authenticator>8b8496fdd26df7dc0423ecd43c09a56b</authenticator>' . "\n" .
|
||||
' <project_name>lhcathome</project_name>' . "\n" .
|
||||
" <project_name>{$project_name}</project_name>" . "\n" .
|
||||
' ...' . "\n" .
|
||||
'</account>' .
|
||||
' </pre>' .
|
||||
|
|
Loading…
Reference in New Issue