| @@ 27-33 (lines=7) @@ | ||
| 24 | { |
|
| 25 | $portal_url = api_get_path(WEB_PATH); |
|
| 26 | ||
| 27 | if (api_is_multiple_url_enabled()) { |
|
| 28 | $access_url_id = api_get_current_access_url_id(); |
|
| 29 | if ($access_url_id != -1) { |
|
| 30 | $url = api_get_access_url($access_url_id); |
|
| 31 | $portal_url = $url['url']; |
|
| 32 | } |
|
| 33 | } |
|
| 34 | ||
| 35 | if ($reset) { |
|
| 36 | if ($by_username) { |
|
| @@ 91-97 (lines=7) @@ | ||
| 88 | } |
|
| 89 | ||
| 90 | $portal_url = api_get_path(WEB_PATH); |
|
| 91 | if (api_is_multiple_url_enabled()) { |
|
| 92 | $access_url_id = api_get_current_access_url_id(); |
|
| 93 | if ($access_url_id != -1) { |
|
| 94 | $url = api_get_access_url($access_url_id); |
|
| 95 | $portal_url = $url['url']; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | $email_body = get_lang('YourAccountParam')." ".$portal_url."\n\n$user_account_list"; |
|
| 100 | // SEND MESSAGE |
|
| @@ 159-165 (lines=7) @@ | ||
| 156 | if (!empty($email) && $send_mail) { |
|
| 157 | $emailsubject = '['.api_get_setting('siteName').'] '.get_lang('YourReg').' '.api_get_setting('siteName'); |
|
| 158 | $portal_url = api_get_path(WEB_PATH); |
|
| 159 | if (api_is_multiple_url_enabled()) { |
|
| 160 | $access_url_id = api_get_current_access_url_id(); |
|
| 161 | if ($access_url_id != -1) { |
|
| 162 | $url = api_get_access_url($access_url_id); |
|
| 163 | $portal_url = $url['url']; |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||
| 167 | $emailbody = get_lang('Dear')." ".stripslashes(api_get_person_name($userInfo['firstname'], $userInfo['lastname'])).",\n\n". |
|
| 168 | get_lang('YouAreReg')." ".api_get_setting('siteName')." ".get_lang('WithTheFollowingSettings')."\n\n". |
|
| @@ 158-164 (lines=7) @@ | ||
| 155 | $form->addRule('mail_text', get_lang('ThisFieldIsRequired'), 'required'); |
|
| 156 | }*/ |
|
| 157 | $portal_url = api_get_path(WEB_PATH); |
|
| 158 | if (api_is_multiple_url_enabled()) { |
|
| 159 | $access_url_id = api_get_current_access_url_id(); |
|
| 160 | if ($access_url_id != -1) { |
|
| 161 | $url = api_get_access_url($access_url_id); |
|
| 162 | $portal_url = $url['url']; |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | // Show the URL that can be used by users to fill a survey without invitation |
|
| 167 | $auto_survey_link = $portal_url.'main/survey/fillsurvey.php?course='.$_course['sysCode'].'&invitationcode=auto&scode='.$survey_data['survey_code']; |
|
| @@ 458-466 (lines=9) @@ | ||
| 455 | $email_admin = api_get_setting('emailAdministrator'); |
|
| 456 | ||
| 457 | $url = api_get_path(WEB_PATH); |
|
| 458 | if (api_is_multiple_url_enabled()) { |
|
| 459 | $access_url_id = api_get_current_access_url_id(); |
|
| 460 | if ($access_url_id != -1) { |
|
| 461 | $urlInfo = api_get_access_url($access_url_id); |
|
| 462 | if ($urlInfo) { |
|
| 463 | $url = $urlInfo['url']; |
|
| 464 | } |
|
| 465 | } |
|
| 466 | } |
|
| 467 | ||
| 468 | $tplContent = new Template(null, false, false, false, false, false); |
|
| 469 | // variables for the default template |
|