Ignore:
Timestamp:
Apr 16, 2011, 3:53:31 PM (14 years ago)
Author:
cljosse
Message:

[extensions] mail_supervisor fix bug in design

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/maintain.inc.php

    r9702 r10419  
    2424if (!defined('MAIL_SUPERV_PATH')) define('MAIL_SUPERV_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
    2525 include_once (MAIL_SUPERV_PATH.'include/constants.php');
    26  
     26
    2727function plugin_install(){
    2828  global $conf ;
     
    3333    $my_para['check_header_text']="on";
    3434    $my_para['no_mail_list']="on";
    35     $my_para['no_connect']="off";       // empeche l'ip de se connecter au site.
    36     $my_para['set_auto']="on";          // Test a l'ouverture et enregistrement
    37     $my_para['ip']="127.0.0.1";         // dernièrre adresse IP
    38     $my_para['set_id']="on";              // enregistrment nouvel 
     35    $my_para['no_connect']="off";   // empeche l'ip de se connecter au site.
     36    $my_para['set_auto']="on";      // Test a l'ouverture et enregistrement
     37    $my_para['ip']="127.0.0.1";     // dernièrre adresse IP
     38    $my_para['set_id']="on";          // enregistrment nouvel
    3939    $mails_values=  addslashes(serialize($my_para));
    4040    $query = 'INSERT INTO '.CONFIG_TABLE.' (param, value, comment)
    4141    VALUES ("mail_superv", "'.$mails_values.'" ,"Parametres du plugin Mail superviseur");';
    4242    pwg_query($query);
    43   } 
     43  }
    4444}
    4545function plugin_uninstall(){
     
    5050    pwg_query($query);
    5151    $query = 'DROP TABLE IF EXISTS  '.MAIL_BLACK_LISTE_TABLE.';';
    52     pwg_query( $query ); 
     52    pwg_query( $query );
    5353    $query = 'DROP TABLE IF EXISTS  '.mail_superv_TABLE.';';
    54     pwg_query( $query); 
     54    pwg_query( $query);
    5555}
    5656
    5757function plugin_activate(){
    58 include_once (MAIL_SUPERV_PATH.'include/fonctions.php'); 
     58include_once (MAIL_SUPERV_PATH.'include/fonctions.php');
    5959 verif_base() ;
    6060}
Note: See TracChangeset for help on using the changeset viewer.