Changeset 15201 for trunk/activation_email.php
- Timestamp:
- 06/06/11 02:27:38 (12 months ago)
- File:
-
- 1 edited
-
trunk/activation_email.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/activation_email.php
r14327 r15201 1 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 */ 2 7 3 /*************************************************************************** 4 * Dolphin Smart Community Builder 5 * ----------------- 6 * begin : Mon Mar 23 2006 7 * copyright : (C) 2006 BoonEx Group 8 * website : http://www.boonex.com/ 9 * This file is part of Dolphin - Smart Community Builder 10 * 11 * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. 12 * http://creativecommons.org/licenses/by/3.0/ 13 * 14 * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 15 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 * See the Creative Commons Attribution 3.0 License for more details. 17 * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 18 * see license.txt file; if not, write to marketing@boonex.com 19 ***************************************************************************/ 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"); 20 12 21 require_once( 'inc/header.inc.php' ); 22 require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); 23 require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); 13 member_auth(0); 24 14 25 // --------------- page variables and login 26 27 $_page['name_index'] = 35; 28 $_page['css_name'] = 'activation_email.css'; 29 $logged['member'] = member_auth(0); 30 31 $_page['header'] = _t( "_ACTIVATION_EMAIL_H" ); 32 $_page['header_text'] = _t( "_ACTIVATION_EMAIL_H1" ); 33 34 // --------------- page components 35 36 $_ni = $_page['name_index']; 37 $_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode(); 38 39 // --------------- [END] page components 15 $oTemplate = BxDolTemplate::getInstance(); 16 $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT); 17 $oTemplate->setPageHeader (_t("_ACTIVATION_EMAIL_H")); 18 $oTemplate->setPageContent ('page_main_code', PageCompMainCode()); 40 19 41 20 PageCode(); 42 43 // --------------- page components functions44 21 45 22 /** 46 23 * page code function 47 24 */ 48 function PageCompPageMainCode() 49 { 50 $memberID = getLoggedId(); 51 $p_arr = getProfileInfo( $memberID ); //db_assoc_arr( "SELECT `Status` FROM `Profiles` WHERE `ID` = '$memberID'" ); 25 function PageCompMainCode() { 52 26 53 if ( $p_arr['Status'] != 'Unconfirmed' ) 54 return _t( "_NO_NEED_TO_CONFIRM_EMAIL" ); 27 $iMemberID = getLoggedId(); 28 $aProfile = getProfileInfo($iMemberID); 29 30 if ($aProfile['Status'] != 'Unconfirmed') 31 $s = _t("_NO_NEED_TO_CONFIRM_EMAIL"); 55 32 else 56 return activation_mail( $memberID ); 33 $s = activation_mail($iMemberID); 34 35 return DesignBoxContent(_t("_ACTIVATION_EMAIL_H"), $s, BX_DB_PADDING_DEF); 57 36 } 58 ?> 37
Note: See TracChangeset
for help on using the changeset viewer.