Changeset 32308


Ignore:
Timestamp:
Nov 7, 2020, 5:06:05 PM (3 years ago)
Author:
ddtddt
Message:

[meta] php7.4 Notice

Location:
extensions/meta
Files:
11 added
27 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta/admin.php

    r31543 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | meta plugin for Piwigo by TEMMII                                      |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2008-2020 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
    322if (!defined('PHPWG_ROOT_PATH'))
    423    die('Hacking attempt!');
    5 global $template, $conf, $user;
     24global $template, $conf, $user, $pwg_loaded_plugins;
    625include_once(PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php');
    726
     
    2039  $tabsheet->add('gestion', l10n('meta_onglet_gestion'), META_ADMIN . '-gestion');
    2140  $tabsheet->add('persometa', l10n('Personal Metadata'), META_ADMIN . '-persometa');
    22   $MPC = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ContactForm';"));
    23         if ($MPC['state'] == 'active') {
    24       $tabsheet->add('contactmeta', l10n('Contact page Metadata'), META_ADMIN . '-contactmeta');
    25         }
    26   $MAP = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'AdditionalPages';"));
    27         if ($MAP['state'] == 'active') {
    28       $tabsheet->add('AdditionalPagesmeta', l10n('Additional Pages Metadata'), META_ADMIN . '-AdditionalPagesmeta');
    29         }
     41  if (isset($pwg_loaded_plugins['ContactForm'])){
     42        $tabsheet->add('contactmeta', l10n('Contact page Metadata'), META_ADMIN . '-contactmeta');
     43  }
     44  if (isset($pwg_loaded_plugins['AdditionalPages'])){
     45        $tabsheet->add('AdditionalPagesmeta', l10n('Additional Pages Metadata'), META_ADMIN . '-AdditionalPagesmeta');
     46  }
    3047  $tabsheet->add('description', l10n('meta_onglet_description'), META_ADMIN . '-description');
    3148$tabsheet->select($page['tab']);
  • extensions/meta/index.php

    r3978 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/initadmin.php

    r31492 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | meta plugin for Piwigo                                                |
     3// | meta plugin for Piwigo by TEMMII                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2016 ddtddt               http://temmii.com/piwigo/ |
     5// | Copyright(C) 2008-2020 ddtddt               http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    6565function metaPadminA() {
    6666  if (isset($_GET['image_id'])){
    67         global $template, $prefixeTable;
    68         $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
    69         if($PAED['state'] == 'active'){
     67        global $template, $prefixeTable, $pwg_loaded_plugins;
     68        if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    7069          $template->assign('useED',1);
    7170    }else{
     
    125124function metaAadminA(){
    126125  if (isset($_GET['cat_id'])) {
    127         global $template, $prefixeTable;
    128         $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
    129         if($PAED['state'] == 'active'){
     126        global $template, $prefixeTable, $pwg_loaded_plugins;
     127        if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    130128          $template->assign('useED',1);
    131     }else{
    132       $template->assign('useED',0);
    133     }
     129        }else{
     130          $template->assign('useED',0);
     131        }
    134132        $query = 'SELECT id,metaKeycat,metadescat FROM ' . meta_cat_TABLE . ' WHERE id = ' . $_GET['cat_id'] . ';';
    135133        $result = pwg_query($query);
  • extensions/meta/language/ar_SA/index.php

    r25613 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/language/cs_CZ/index.php

    r10262 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/da_DK/index.php

    r18244 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/language/de_DE/index.php

    r8199 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/el_GR/index.php

    r15333 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/language/en_UK/index.php

    r3978 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/en_UK/plugin.lang.php

    r31491 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | meta plugin for Piwigo                                                |
     3// | meta plugin for Piwigo by TEMMII                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2016 ddtddt               http://temmii.com/piwigo/ |
     5// | Copyright(C) 2008-2020 ddtddt               http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    1919// | USA.                                                                  |
    2020// +-----------------------------------------------------------------------+
     21
    2122$lang['Manage tag Metadata'] = 'Manage meta tags';
    2223
  • extensions/meta/language/eo_EO/index.php

    r25874 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/language/es_ES/index.php

    r4205 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/fa_IR/index.php

    r26435 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/language/fr_CA/index.php

    r23035 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/fr_FR/index.php

    r3978 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/fr_FR/plugin.lang.php

    r31491 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | meta plugin for Piwigo                                                |
     3// | meta plugin for Piwigo by TEMMII                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2016 ddtddt               http://temmii.com/piwigo/ |
     5// | Copyright(C) 2008-2020 ddtddt               http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    1919// | USA.                                                                  |
    2020// +-----------------------------------------------------------------------+
     21
    2122$lang['Manage tag Metadata'] = 'Gèrer balises Métadonnées';
    2223
  • extensions/meta/language/hu_HU/index.php

    r7532 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/index.php

    r3978 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/it_IT/index.php

    r11529 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2011 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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/ja_JP/index.php

    r32299 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Lexiglot - A PHP based translation tool                               |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011-2013 Damien Sorel       http://www.strangeplanet.fr |
    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                                          |
     3// | This file is part of Piwigo.                                          |
    104// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    207// +-----------------------------------------------------------------------+
    218
     9// Recursive call
    2210$url = '../';
    2311header( 'Request-URI: '.$url );
  • extensions/meta/language/lv_LV/index.php

    r8198 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/nb_NO/index.php

    r9180 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/pl_PL/index.php

    r9781 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/sk_SK/index.php

    r9475 r32308  
    11<?php
    22// +-----------------------------------------------------------------------+
    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                                          |
     3// | This file is part of Piwigo.                                          |
    124// |                                                                       |
    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.                                                                  |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
    227// +-----------------------------------------------------------------------+
    238
  • extensions/meta/language/tr_TR/index.php

    r16596 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/language/vi_VN/index.php

    r28623 r32308  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | This file is part of Piwigo.                                          |
     4// |                                                                       |
     5// | For copyright and license information, please view the COPYING.txt    |
     6// | file that was distributed with this source code.                      |
     7// +-----------------------------------------------------------------------+
     8
     9// Recursive call
    210$url = '../';
    311header( 'Request-URI: '.$url );
  • extensions/meta/main.inc.php

    r31491 r32308  
    1010
    1111// +-----------------------------------------------------------------------+
    12 // | meta plugin for Piwigo                                                |
    13 // +-----------------------------------------------------------------------+
    14 // | Copyright(C) 2008-2016 ddtddt               http://temmii.com/piwigo/ |
     12// | meta plugin for Piwigo by TEMMII                                      |
     13// +-----------------------------------------------------------------------+
     14// | Copyright(C) 2008-2020 ddtddt               http://temmii.com/piwigo/ |
    1515// +-----------------------------------------------------------------------+
    1616// | This program is free software; you can redistribute it and/or modify  |
     
    6363
    6464function Change_Meta(){
    65   global $template;
     65  global $template, $pwg_loaded_plugins;
    6666  $template->set_prefilter('header', 'upmata');
    67   $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
    68   if ($PAED['state'] == 'active')
     67  if (isset($pwg_loaded_plugins['ExtendedDescription'])){
    6968    add_event_handler('AP_render_content', 'get_user_language_desc');
     69  }
    7070}
    7171
     
    7777
    7878function add_meta(){
    79   global $template, $page, $meta_infos;
     79  global $template, $page, $meta_infos, $pwg_loaded_plugins;
    8080  $meta_infos = array();
    8181  $meta_infos['author'] = $template->get_template_vars('INFO_AUTHOR');
     
    137137  }
    138138
    139   $MPC = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ContactForm';"));
    140   if ($MPC['state'] == 'active'){
     139  if (isset($pwg_loaded_plugins['ContactForm'])){
    141140    global $conf;
    142141    if (isset($page['section']) and $page['section'] == 'contact' and isset($conf['contactmeta']) and strpos($conf['contactmeta'], ',') !== false){
     
    153152  }
    154153
    155   $MAP = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'AdditionalPages';"));
    156   if ($MAP['state'] == 'active') {
     154  if (isset($pwg_loaded_plugins['AdditionalPages'])){
    157155    if (!empty($page['additional_page']['id'])) {
    158156      $lire = $page['additional_page']['id'];
Note: See TracChangeset for help on using the changeset viewer.