Changeset 32302 for extensions/title/admin.php
- Timestamp:
- Oct 31, 2020, 8:28:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/title/admin.php
r31456 r32302 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Title plugin for piwigo 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 20 16ddtddt http://temmii.com/piwigo/ |3 // | Title plugin for piwigo by TEMMII | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2011 - 2020 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 21 21 22 22 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 23 global $template, $conf, $user ;23 global $template, $conf, $user, $pwg_loaded_plugins; 24 24 include_once(PHPWG_ROOT_PATH .'admin/include/tabsheet.class.php'); 25 25 $my_base_url = PHPWG_ROOT_PATH.'admin.php?page=plugin-'; … … 38 38 $tabsheet = new tabsheet(); 39 39 $tabsheet->add('plugtitle', l10n('title_tab_plgtitle'), TITLE_ADMIN . '-plugtitle'); 40 $PAC = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ContactForm';")); 41 if($PAC['state'] == 'active'){ 40 if (isset($pwg_loaded_plugins['ContactForm'])){ 42 41 $tabsheet->add('contacttitle', l10n('Contact Title'), TITLE_ADMIN . '-contacttitle'); 43 42 } 44 $PAAP = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'AdditionalPages';")); 45 if($PAAP['state'] == 'active'){ 43 if (isset($pwg_loaded_plugins['AdditionalPages'])){ 46 44 $tabsheet->add('AdditionalPagestitle', l10n('Additional Pages Title'), TITLE_ADMIN . '-AdditionalPagestitle'); 47 45 }
Note: See TracChangeset
for help on using the changeset viewer.