| Apache Linux webd001.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 uid=2234(oyaide) gid=100(users) groups=100(users) server ip : 213.186.33.18 | your ip : 216.73.216.109 safemode OFF > / home / oyaide / www / moycompany.com / piwigo2 / plugins / PersoFooter / |
| Filename | /home/oyaide/www/moycompany.com/piwigo2/plugins/PersoFooter/admin.php |
| Size | 3.35 kb |
| Permission | rw----r-- |
| Owner | oyaide : users |
| Create time | 30-Mar-2016 16:36 |
| Last modified | 18-Mar-2016 22:25 |
| Last accessed | 18-Mar-2016 22:25 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
<?php
// +-----------------------------------------------------------------------+
// | Perso Footer plugin for piwigo |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2011 - 2016 ddtddt http://temmii.com/piwigo/ |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
global $template, $conf, $user;
include_once(PHPWG_ROOT_PATH .'admin/include/tabsheet.class.php');
load_language('plugin.lang', PFT_PATH);
$my_base_url = PHPWG_ROOT_PATH.'admin.php?page=plugin-';
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
//-------------------------------------------------------- sections definitions
if (!is_webmaster())
{
array_push($page['errors'], l10n('This section is reserved for the webmaster'));
}
else
{
// Gestion des onglets
if (!isset($_GET['tab']))
$page['tab'] = 'gest';
else
$page['tab'] = $_GET['tab'];
$tabsheet = new tabsheet();
$tabsheet->add('gest', l10n('pft_tab_gest'), PFT_ADMIN . '-gest');
$tabsheet->add('help', l10n('pft_tab_help'), PFT_ADMIN . '-help');
$tabsheet->select($page['tab']);
$tabsheet->assign();
// Onglet gest
switch ($page['tab']){
case 'gest':
$template->assign('gestA',array('PFTBASE' => $conf['persoFooter'],));
$PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
if($PAED['state'] == 'active'){
$template->assign('useED',1);
}else{
$template->assign('useED',0);
}
if (isset($_POST['submitpft']))
{
conf_update_param('persoFooter', $_POST['perso_footer']);
$template->assign(
'gestA',
array('PFTBASE' => stripslashes($_POST['perso_footer']),));
array_push($page['infos'], l10n('Configuration update'));
}
break;
case 'help':
$template->assign(
'gestB',
array('meta'=>l10n('nul'),));
break;
}
$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl'));
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
}
?>
// +-----------------------------------------------------------------------+
// | Perso Footer plugin for piwigo |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2011 - 2016 ddtddt http://temmii.com/piwigo/ |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
global $template, $conf, $user;
include_once(PHPWG_ROOT_PATH .'admin/include/tabsheet.class.php');
load_language('plugin.lang', PFT_PATH);
$my_base_url = PHPWG_ROOT_PATH.'admin.php?page=plugin-';
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);
//-------------------------------------------------------- sections definitions
if (!is_webmaster())
{
array_push($page['errors'], l10n('This section is reserved for the webmaster'));
}
else
{
// Gestion des onglets
if (!isset($_GET['tab']))
$page['tab'] = 'gest';
else
$page['tab'] = $_GET['tab'];
$tabsheet = new tabsheet();
$tabsheet->add('gest', l10n('pft_tab_gest'), PFT_ADMIN . '-gest');
$tabsheet->add('help', l10n('pft_tab_help'), PFT_ADMIN . '-help');
$tabsheet->select($page['tab']);
$tabsheet->assign();
// Onglet gest
switch ($page['tab']){
case 'gest':
$template->assign('gestA',array('PFTBASE' => $conf['persoFooter'],));
$PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';"));
if($PAED['state'] == 'active'){
$template->assign('useED',1);
}else{
$template->assign('useED',0);
}
if (isset($_POST['submitpft']))
{
conf_update_param('persoFooter', $_POST['perso_footer']);
$template->assign(
'gestA',
array('PFTBASE' => stripslashes($_POST['perso_footer']),));
array_push($page['infos'], l10n('Configuration update'));
}
break;
case 'help':
$template->assign(
'gestB',
array('meta'=>l10n('nul'),));
break;
}
$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl'));
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
}
?>