"; $emailfromaddr = $administratorEmail; $emailfromname = api_get_setting('platform.site_name'); $emailsubject = get_lang('YourReg').' '.api_get_setting('platform.site_name'); $emailheaders = "From: ".api_get_person_name(api_get_setting('platform.administrator_name'), api_get_setting('platform.administrator_surname'), null, PERSON_NAME_EMAIL_ADDRESS)." <".$administratorEmail.">\n"; $emailheaders .= "Reply-To: ".$administratorEmail."\n"; $emailheaders .= "Return-Path: ".$administratorEmail."\n"; $emailheaders .= "charset: ".api_get_system_encoding()."\n"; $emailheaders .= "X-Mailer: PHP/" . phpversion() . "\n"; $emailheaders .= "X-Sender-IP: $REMOTE_ADDR"; // (small security precaution...) $recipient_name = api_get_person_name($firstname_form, $lastname_form, null, PERSON_NAME_EMAIL_ADDRESS); $sender_name = api_get_person_name(api_get_setting('platform.administrator_name'), api_get_setting('platform.administrator_surname'), null, PERSON_NAME_EMAIL_ADDRESS); $email_admin = api_get_setting('platform.administrator_email'); $portal_url = api_get_path(WEB_PUBLIC_PATH); if ($_configuration['multiple_access_urls']) { $access_url_id = api_get_current_access_url_id(); if ($access_url_id != -1 ){ $url = api_get_access_url($access_url_id); $portal_url = $url['url']; } } if ($courseRegSucceed) { $emailbody = get_lang('Dear')." ".stripslashes(api_get_person_name($firstname_form, $lastname_form)).",\n".get_lang('OneResp')." $currentCourseName ".get_lang('RegYou')." ".api_get_setting('platform.site_name')." ".get_lang('WithTheFollowingSettings')."\n\n".get_lang('Username')." : $username_form\n".get_lang('Pass').": $password_form\n".get_lang('Address')." ".api_get_setting('platform.site_name')." ".get_lang('Is').": ".$portal_url."\n".get_lang('Problem')."\n".get_lang('Formula').",\n".api_get_person_name(api_get_setting('platform.administrator_name'), api_get_setting('platform.administrator_surname'))."\n".get_lang('Manager')." ".api_get_setting('platform.site_name')." \nT. ".api_get_setting('administratorTelephone')."\n".get_lang('Email').": ".api_get_setting('platform.administrator_email')."\n"; $message = get_lang('TheU')." ".stripslashes(api_get_person_name($firstname_form, $lastname_form))." ".get_lang('AddedToCourse')."".get_lang('BackUser')."\n"; } else { $emailbody = get_lang('Dear')." ".api_get_person_name($firstname_form, $lastname_form).",\n ".get_lang('YouAreReg')." ".api_get_setting('platform.site_name')." ".get_lang('WithTheFollowingSettings')."\n\n".get_lang('Username')." : $username_form\n".get_lang('Pass').": $password_form\n".get_lang('Address')." ".api_get_setting('platform.site_name')." ".get_lang('Is').": ".$portal_url."\n".get_lang('Problem')."\n".get_lang('Formula').",\n".api_get_person_name(api_get_setting('platform.administrator_name'), api_get_setting('platform.administrator_surname'))."\n".get_lang('Manager')." ".api_get_setting('platform.site_name')." \nT. ".api_get_setting('administratorTelephone')."\n".get_lang('Email').": ".api_get_setting('platform.administrator_email')."\n"; $message = stripslashes(api_get_person_name($firstname_form, $lastname_form))." ".get_lang('AddedU'); } @api_mail($recipient_name, $email_form, $emailsubject, $emailbody, $sender_name,$email_admin); /* * remove
variables to prevent any pre-filled fields */ unset($lastname_form, $firstname_form, $username_form, $password_form, $email_form, $admin_form, $tutor_form); } // end if ($platformRegSucceed) //else //{ // $message = get_lang('UserAlreadyRegistered'); //} } // end if register request $interbreadcrumb[] = array ("url"=>"user.php", "name"=> get_lang('ToolUser')); $nameTools = get_lang('AddAU'); Display::display_header($nameTools, "User"); ?>

.
:
:
:
:
:
:
:
:
: /> />
: /> />
:
 
".get_lang('IfYouWantToAddManyUsers')."

"; Display::display_footer();