Changeset 31477


Ignore:
Timestamp:
03/20/16 18:02:06 (4 years ago)
Author:
ddtddt
Message:

[extensions] - whois_online_menu - 2.8

Location:
extensions/whois_online_menu
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online_menu/language/en_UK/index.php

    r16720 r31477  
    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// Recursive call 
    253$url = '../'; 
  • extensions/whois_online_menu/language/en_UK/plugin.lang.php

    r16720 r31477  
    11<?php  
     2// +-----------------------------------------------------------------------+ 
     3// | Whois Online in menu by plugin for Piwigo                             | 
     4// +-----------------------------------------------------------------------+ 
     5// | Copyright(C) 2012-2016 ddtddt               http://temmii.com/piwigo/ | 
     6// +-----------------------------------------------------------------------+ 
     7// | This program is free software; you can redistribute it and/or modify  | 
     8// | it under the terms of the GNU General Public License as published by  | 
     9// | the Free Software Foundation                                          | 
     10// |                                                                       | 
     11// | This program is distributed in the hope that it will be useful, but   | 
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            | 
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      | 
     14// | General Public License for more details.                              | 
     15// |                                                                       | 
     16// | You should have received a copy of the GNU General Public License     | 
     17// | along with this program; if not, write to the Free Software           | 
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 
     19// | USA.                                                                  | 
     20// +-----------------------------------------------------------------------+ 
    221$lang['Whois Online'] = "Whois Online"; 
    322?> 
  • extensions/whois_online_menu/language/fr_FR/index.php

    r16720 r31477  
    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// Recursive call 
    253$url = '../'; 
  • extensions/whois_online_menu/language/fr_FR/plugin.lang.php

    r16720 r31477  
    1 <?php  
     1<?php 
     2// +-----------------------------------------------------------------------+ 
     3// | Whois Online in menu by plugin for Piwigo                             | 
     4// +-----------------------------------------------------------------------+ 
     5// | Copyright(C) 2012-2016 ddtddt               http://temmii.com/piwigo/ | 
     6// +-----------------------------------------------------------------------+ 
     7// | This program is free software; you can redistribute it and/or modify  | 
     8// | it under the terms of the GNU General Public License as published by  | 
     9// | the Free Software Foundation                                          | 
     10// |                                                                       | 
     11// | This program is distributed in the hope that it will be useful, but   | 
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            | 
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      | 
     14// | General Public License for more details.                              | 
     15// |                                                                       | 
     16// | You should have received a copy of the GNU General Public License     | 
     17// | along with this program; if not, write to the Free Software           | 
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 
     19// | USA.                                                                  | 
     20// +-----------------------------------------------------------------------+ 
    221$lang['Whois Online'] = "Qui est en ligne"; 
    322?> 
  • extensions/whois_online_menu/language/index.php

    r16720 r31477  
    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// Recursive call 
    253$url = '../'; 
  • extensions/whois_online_menu/main.inc.php

    r16720 r31477  
    22/* 
    33Plugin Name: Whois Online in menu 
    4 Version: 1 
     4Version: auto 
    55Description: Add info whois_online in the menubar 
    6 Plugin URI: http://piwigo.org 
     6Plugin URI:http://piwigo.org/ext/extension_view.php?eid=619 
    77Author: ddtddt 
    8 Author URI:http://piwigo.org/ext/extension_view.php?eid=619 
     8Author URI: http://temmii.com/piwigo/ 
    99*/ 
     10 
     11// +-----------------------------------------------------------------------+ 
     12// | Whois Online in menu by plugin for Piwigo                             | 
     13// +-----------------------------------------------------------------------+ 
     14// | Copyright(C) 2012-2016 ddtddt               http://temmii.com/piwigo/ | 
     15// +-----------------------------------------------------------------------+ 
     16// | This program is free software; you can redistribute it and/or modify  | 
     17// | it under the terms of the GNU General Public License as published by  | 
     18// | the Free Software Foundation                                          | 
     19// |                                                                       | 
     20// | This program is distributed in the hope that it will be useful, but   | 
     21// | WITHOUT ANY WARRANTY; without even the implied warranty of            | 
     22// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      | 
     23// | General Public License for more details.                              | 
     24// |                                                                       | 
     25// | You should have received a copy of the GNU General Public License     | 
     26// | along with this program; if not, write to the Free Software           | 
     27// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 
     28// | USA.                                                                  | 
     29// +-----------------------------------------------------------------------+ 
    1030 
    1131if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
     
    1434define('W1M_PATH' , PHPWG_PLUGINS_PATH . W1M_DIR . '/'); 
    1535 
    16         load_language('plugin.lang', W1M_PATH); 
    17         load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 
     36load_language('plugin.lang', W1M_PATH); 
     37load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 
    1838 
    1939add_event_handler('blockmanager_register_blocks', 'register_w1m_menubar_blocks'); 
    2040add_event_handler('blockmanager_apply', 'w1m_apply'); 
    2141 
    22 function register_w1m_menubar_blocks( $menu_ref_arr ) 
    23 { 
     42function register_w1m_menubar_blocks( $menu_ref_arr ){ 
    2443  $menu = & $menu_ref_arr[0]; 
    2544  if ($menu->get_id() != 'menubar') 
    26     return; 
     45  return; 
    2746  $menu->register_block( new RegisteredBlock( 'mbWonline', 'Wonline', 'W1M')); 
    2847} 
    2948 
    30 function w1m_apply($menu_ref_arr) 
    31 { 
     49function w1m_apply($menu_ref_arr){ 
    3250  global $template; 
     51  $menu = & $menu_ref_arr[0]; 
     52  $template->assign     ( 
     53        array( 
     54      'W1MTITLE'     => l10n('Whois Online'), 
     55  )); 
    3356 
    34  $menu = & $menu_ref_arr[0]; 
    35   
    36       // Envoi des données au template 
    37             $template->assign   ( 
    38                 array   ( 
    39         'W1MTITLE'     => l10n('Whois Online'), 
    40                                 )                       ); 
    41  
    42  $template->assign('W1M_PATH', W1M_PATH); 
    43     
    44     if (($block = $menu->get_block( 'mbWonline' )) != null) { 
     57  $template->assign('W1M_PATH', W1M_PATH); 
     58  if (($block = $menu->get_block( 'mbWonline' )) != null) { 
    4559        $template->set_template_dir(W1M_PATH.'template/'); 
    4660        $block->template = 'report_about.tpl'; 
    47     } 
     61  } 
    4862} 
    4963 
    5064add_event_handler('loc_begin_page_header', 'WHE1',20 ); 
    51 function WHE1() 
    52 { 
    53  
    54 global $template; 
    55  
    56 $cachewol=''; 
    57  
    58     $template->append('head_elements', $cachewol); 
     65function WHE1(){ 
     66  global $template; 
     67  $cachewol=''; 
     68  $template->append('head_elements', $cachewol); 
    5969} 
    6070 
  • extensions/whois_online_menu/template/index.php

    r16720 r31477  
    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// Recursive call 
    253$url = '../'; 
Note: See TracChangeset for help on using the changeset viewer.