| @@ 28-34 (lines=7) @@ | ||
| 25 | { |
|
| 26 | $portal_url = api_get_path(WEB_PATH); |
|
| 27 | ||
| 28 | if (api_is_multiple_url_enabled()) { |
|
| 29 | $access_url_id = api_get_current_access_url_id(); |
|
| 30 | if ($access_url_id != -1) { |
|
| 31 | $url = api_get_access_url($access_url_id); |
|
| 32 | $portal_url = $url['url']; |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| 36 | if ($reset) { |
|
| 37 | if ($by_username) { |
|
| @@ 92-98 (lines=7) @@ | ||
| 89 | } |
|
| 90 | ||
| 91 | $portal_url = api_get_path(WEB_PATH); |
|
| 92 | if (api_is_multiple_url_enabled()) { |
|
| 93 | $access_url_id = api_get_current_access_url_id(); |
|
| 94 | if ($access_url_id != -1) { |
|
| 95 | $url = api_get_access_url($access_url_id); |
|
| 96 | $portal_url = $url['url']; |
|
| 97 | } |
|
| 98 | } |
|
| 99 | ||
| 100 | $email_body = get_lang('YourAccountParam') . " " . $portal_url . "\n\n$user_account_list"; |
|
| 101 | // SEND MESSAGE |
|
| @@ 393-400 (lines=8) @@ | ||
| 390 | ); |
|
| 391 | $email_admin = api_get_setting('emailAdministrator'); |
|
| 392 | ||
| 393 | if (api_is_multiple_url_enabled()) { |
|
| 394 | $access_url_id = api_get_current_access_url_id(); |
|
| 395 | if ($access_url_id != -1) { |
|
| 396 | $url = api_get_access_url($access_url_id); |
|
| 397 | } |
|
| 398 | } else { |
|
| 399 | $url = $_configuration['root_web']; |
|
| 400 | } |
|
| 401 | $tplContent = new Template(null, false, false, false, false, false); |
|
| 402 | // variables for the default template |
|
| 403 | $tplContent->assign('complete_name', stripslashes(api_get_person_name($firstName, $lastName))); |
|
| @@ 163-169 (lines=7) @@ | ||
| 160 | if (!empty($email) && $send_mail) { |
|
| 161 | $emailsubject = '['.api_get_setting('siteName').'] '.get_lang('YourReg').' '.api_get_setting('siteName'); |
|
| 162 | $portal_url = api_get_path(WEB_PATH); |
|
| 163 | if (api_is_multiple_url_enabled()) { |
|
| 164 | $access_url_id = api_get_current_access_url_id(); |
|
| 165 | if ($access_url_id != -1) { |
|
| 166 | $url = api_get_access_url($access_url_id); |
|
| 167 | $portal_url = $url['url']; |
|
| 168 | } |
|
| 169 | } |
|
| 170 | ||
| 171 | $emailbody = get_lang('Dear')." ".stripslashes(api_get_person_name($userInfo['firstname'], $userInfo['lastname'])).",\n\n". |
|
| 172 | get_lang('YouAreReg')." ". api_get_setting('siteName') ." ".get_lang('WithTheFollowingSettings')."\n\n". |
|
| @@ 165-171 (lines=7) @@ | ||
| 162 | $form->addRule('mail_text', get_lang('ThisFieldIsRequired'), 'required'); |
|
| 163 | }*/ |
|
| 164 | $portal_url = api_get_path(WEB_PATH); |
|
| 165 | if (api_is_multiple_url_enabled()) { |
|
| 166 | $access_url_id = api_get_current_access_url_id(); |
|
| 167 | if ($access_url_id != -1) { |
|
| 168 | $url = api_get_access_url($access_url_id); |
|
| 169 | $portal_url = $url['url']; |
|
| 170 | } |
|
| 171 | } |
|
| 172 | ||
| 173 | // Show the URL that can be used by users to fill a survey without invitation |
|
| 174 | $auto_survey_link = $portal_url.'main/survey/fillsurvey.php?course='.$_course['sysCode'].'&invitationcode=auto&scode='.$survey_data['survey_code']; |
|