Ignore:
Timestamp:
09/19/09 01:26:32 (11 years ago)
Author:
Eric
Message:

Version 2.11.1 merge from Trunk :
Bug fixed on plugin install and upgrade
Language files correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/branches/2.11/maintain.inc.php

    r3859 r3873  
    88function plugin_install() 
    99{ 
     10        global $conf; 
     11         
    1012  $q = ' 
    1113    INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 
     
    1618  $q = ' 
    1719    INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 
    18     VALUES ("nbc_UserAdvManager_ConfirmMail","false;5;false;Hello.<br>This is a reminder message because you registered on our gallery but you do not validate your registration and your validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You have again 5 days to validate your registration.<br><br>Note: After this period, your account will be permanently deleted.;Hello.<br>This is a reminder message because you registered on our gallery but you do not validate your registration and your validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by clicking on the link in the message you should have received when you registered.<br><br>Note: After this period, your account will be permanently deleted.","Parametres nbc_UserAdvManager - ConfirmMail;") 
     20    VALUES ("nbc_UserAdvManager_ConfirmMail","true;5;Hello. 
     21 
     22This is a reminder message because you registered on our gallery but you do not validate your registration and your  
     23 
     24validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You  
     25 
     26have again 5 days to validate your registration. 
     27 
     28Note: After this period, your account will be permanently deleted.;true;Hello. 
     29 
     30This is a reminder message because you registered on our gallery but you do not validate your registration and your  
     31 
     32validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by  
     33 
     34clicking on the link in the message you should have received when you registered. 
     35 
     36Note: After this period, your account will be permanently deleted.","Parametres nbc_UserAdvManager - ConfirmMail") 
    1937  ;'; 
    2038  pwg_query($q); 
     
    3351} 
    3452 
    35  
     53function plugin_activate() 
     54{ 
     55          global $conf; 
     56         
     57/* Check for upgrade */ 
     58          $query = ' 
     59    SELECT *, COUNT (*) 
     60                FROM '.CONFIG_TABLE.' 
     61    WHERE param = "nbc_UserAdvManager_ConfirmMail" 
     62  ;'; 
     63  list($count) = mysql_fetch_row(pwg_query($query));  
     64   
     65  /* upgrade from branch 2.10 */ 
     66        if ($count == 0) 
     67        { 
     68                upgrade_UserAdvManager(); 
     69        } 
     70} 
    3671 
    3772function plugin_uninstall() 
     
    5388  pwg_query( $q ); 
    5489} 
     90 
     91function upgrade_UserAdvManager() 
     92{ 
     93        global $conf; 
     94           
     95  $q = ' 
     96    INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 
     97    VALUES ("nbc_UserAdvManager_ConfirmMail","true;5;Hello. 
     98 
     99This is a reminder message because you registered on our gallery but you do not validate your registration and your  
     100 
     101validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You  
     102 
     103have again 5 days to validate your registration. 
     104 
     105Note: After this period, your account will be permanently deleted.;true;Hello. 
     106 
     107This is a reminder message because you registered on our gallery but you do not validate your registration and your  
     108 
     109validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by  
     110 
     111clicking on the link in the message you should have received when you registered. 
     112 
     113Note: After this period, your account will be permanently deleted.","Parametres nbc_UserAdvManager - ConfirmMail") 
     114  ;'; 
     115  pwg_query($q); 
     116} 
    55117?> 
Note: See TracChangeset for help on using the changeset viewer.