Changeset 5633 for extensions/NBC_UserAdvManager/trunk/ConfirmMail.php
- Timestamp:
- Apr 4, 2010, 4:18:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/ConfirmMail.php
r5593 r5633 2 2 //----------------------------------------------------------- include 3 3 define('PHPWG_ROOT_PATH','./../../'); 4 4 5 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); 6 5 7 include_once (UAM_PATH.'include/constants.php'); 6 8 include_once (UAM_PATH.'include/functions.inc.php'); … … 11 13 //check_status(ACCESS_NONE); 12 14 load_language('plugin.lang', UAM_PATH); 13 14 if (isset($_GET['key']))15 {16 17 global $conf;18 19 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);20 21 if (VerifyConfirmMail($_GET['key']))22 {23 $template->assign(24 array(25 'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5],26 )27 );28 }29 else30 {31 $template->assign(32 array(33 'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],34 )35 );36 }37 }38 15 39 16 /** … … 55 32 '/theme/'.$user['theme'].'/themeconf.inc.php'); 56 33 57 $template->set_filenames( 58 array( 59 'confirm_mail'=>UAM_PATH.'ConfirmMail.tpl', 60 ) 61 ); 34 if (isset($_GET['key'])) 35 { 36 37 global $conf; 38 39 $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']); 40 41 if (VerifyConfirmMail($_GET['key'])) 42 { 43 $status = true; 44 45 $template->assign( 46 array( 47 'STATUS' => $status, 48 'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5], 49 ) 50 ); 51 } 52 else 53 { 54 $status = false; 55 $template->assign( 56 array( 57 'STATUS' => $status, 58 'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6], 59 ) 60 ); 61 } 62 } 63 62 64 if (isset($lang['Theme: '.$user['theme']])) 63 65 { … … 78 80 } 79 81 82 $template->set_filenames( 83 array( 84 'confirm_mail'=>dirname(__FILE__).'/template/ConfirmMail.tpl', 85 ) 86 ); 80 87 81 88 $template->pparse('confirm_mail');
Note: See TracChangeset
for help on using the changeset viewer.