Changeset 4199


Ignore:
Timestamp:
Nov 5, 2009, 2:00:55 PM (11 years ago)
Author:
cljosse
Message:

[mail_supervisor] Fix Bug 'session_start() '

File:
1 edited

Legend:

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

    r4180 r4199  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based picture gallery                                  |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 
    242/*
    253Plugin Name: Mail supervisor
    26 Version: 1.2.4
    27 Description:  Mail supervisor surveille l'envoie des mails.
     4Version: 1.0
     5Description: Mail supervisor surveille l'envoie des mails.
    286Plugin URI: http://piwigo.org/ext/extension_view.php?eid=315
    297Author: cljosse
    30 Author URI:http://cl.josse.free.fr
     8Author URI:http://cljosse.free.fr
    319*/
    32 
    3310if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    34 
    3511if (!defined('MAIL_SUPERV_DIR')) define('MAIL_SUPERV_DIR' , basename(dirname(__FILE__)));
    3612if (!defined('MAIL_SUPERV_PATH')) define('MAIL_SUPERV_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
    37 
    3813include_once (MAIL_SUPERV_PATH.'include/constants.php');
    39 include_once (MAIL_SUPERV_PATH.'include/fonctions.php');
    40 
    41 /*
    42 EVENT_HANDLER_PRIORITY_NEUTRAL  */
     14
     15/* EVENT_HANDLER_PRIORITY_NEUTRAL  */
    4316
    4417
     
    290263}
    291264
    292            
    293          
    294 
     265function affiche_spam ()
     266
     267{
     268include_once (MAIL_SUPERV_PATH.'include/fonctions.php');
     269
     270  affiche_message();
     271}
    295272add_event_handler('get_admin_plugin_menu_links', 'admin_menu');
    296 add_event_handler('loc_after_page_header', 'affiche_message');
    297  
     273add_event_handler('loc_after_page_header','affiche_spam' );
    298274
    299275?>
    300 
    301  
    302  
Note: See TracChangeset for help on using the changeset viewer.