| Revision 15211,
1004 bytes
checked in by Alexander Trofimov, 8 months ago
(diff) |
|
Code cleaning:
- converting new lines to \n
- deleting spaces at the end of every line
- converting all tabs to 4 spaces
- automated script for future cleaning was added
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * @package Dolphin Core |
|---|
| 4 | * @copyright Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ |
|---|
| 5 | * @license CC-BY - http://creativecommons.org/licenses/by/3.0/ |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | require_once('./inc/header.inc.php'); |
|---|
| 9 | require_once(BX_DIRECTORY_PATH_INC . "languages.inc.php"); |
|---|
| 10 | require_once(BX_DIRECTORY_PATH_INC . "params.inc.php"); |
|---|
| 11 | require_once(BX_DIRECTORY_PATH_INC . "design.inc.php"); |
|---|
| 12 | |
|---|
| 13 | member_auth(0); |
|---|
| 14 | |
|---|
| 15 | $oTemplate = BxDolTemplate::getInstance(); |
|---|
| 16 | $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT); |
|---|
| 17 | $oTemplate->setPageHeader (_t("_ACTIVATION_EMAIL_H")); |
|---|
| 18 | $oTemplate->setPageContent ('page_main_code', PageCompMainCode()); |
|---|
| 19 | |
|---|
| 20 | PageCode(); |
|---|
| 21 | |
|---|
| 22 | /** |
|---|
| 23 | * page code function |
|---|
| 24 | */ |
|---|
| 25 | function PageCompMainCode() { |
|---|
| 26 | |
|---|
| 27 | $iMemberID = getLoggedId(); |
|---|
| 28 | $aProfile = getProfileInfo($iMemberID); |
|---|
| 29 | |
|---|
| 30 | if ($aProfile['Status'] != 'Unconfirmed') |
|---|
| 31 | $s = _t("_NO_NEED_TO_CONFIRM_EMAIL"); |
|---|
| 32 | else |
|---|
| 33 | $s = activation_mail($iMemberID); |
|---|
| 34 | |
|---|
| 35 | return DesignBoxContent(_t("_ACTIVATION_EMAIL_H"), $s, BX_DB_PADDING_DEF); |
|---|
| 36 | } |
|---|
| 37 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.