Ignore:
Timestamp:
Apr 4, 2010, 4:18:52 PM (14 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]

  • Bug 1571 fixed : Missing translation tag
  • Bug 1572 fixed : Fix unable to read resource: "ConfirmMail.tpl"
  • Bug 1574 fixed : Beautifying ConfirmMail page. Moved to a "template" folder with css file and icons.
  • Bug 1576 partially fixed : Compatibility with other database systems than MySql like PostgreSql or Sqlite. Using Piwigo's pwg_db_### integrated functions. mysql_list_fields() and mysql_num_fields() are not implemented in Piwigo's database functions. This point is still under discuss on FR forum.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/ConfirmMail.php

    r5593 r5633  
    22//----------------------------------------------------------- include
    33define('PHPWG_ROOT_PATH','./../../');
     4
    45include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     6
    57include_once (UAM_PATH.'include/constants.php');
    68include_once (UAM_PATH.'include/functions.inc.php');
     
    1113//check_status(ACCESS_NONE);
    1214load_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   else
    30   { 
    31     $template->assign(
    32                         array(
    33                                 'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],
    34                         )
    35                 );
    36   }
    37 }
    3815
    3916/**
     
    5532  '/theme/'.$user['theme'].'/themeconf.inc.php');
    5633
    57 $template->set_filenames(
    58   array(
    59         'confirm_mail'=>UAM_PATH.'ConfirmMail.tpl',
    60         )
    61 );
     34if (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
    6264if (isset($lang['Theme: '.$user['theme']]))
    6365{
     
    7880}
    7981
     82$template->set_filenames(
     83  array(
     84        'confirm_mail'=>dirname(__FILE__).'/template/ConfirmMail.tpl',
     85        )
     86);
    8087
    8188$template->pparse('confirm_mail');
Note: See TracChangeset for help on using the changeset viewer.