| 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 / themes / elegant / admin / |
| Filename | /home/oyaide/www/moycompany.com/piwigo2/themes/elegant/admin/upgrade.inc.php |
| Size | 801 |
| Permission | rwxr-xr-x |
| Owner | oyaide : users |
| Create time | 11-Mar-2016 09:45 |
| Last modified | 08-Mar-2016 15:46 |
| Last accessed | 08-Mar-2016 15:46 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
<?php
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
global $prefixeTable, $conf;
if (!isset($conf['elegant']))
{
$config = array(
'p_main_menu' => 'on', //on - off - disabled
'p_pict_descr' => 'on', //on - off - disabled
'p_pict_comment' => 'off', //on - off - disabled
);
conf_update_param('elegant', $config, true);
}
elseif (count(safe_unserialize( $conf['elegant'] ))!=3)
{
$conff = safe_unserialize($conf['elegant']);
$config = array(
'p_main_menu' => (isset($conff['p_main_menu'])) ? $conff['p_main_menu'] :'on',
'p_pict_descr' => (isset($conff['p_pict_descr'])) ? $conff['p_pict_descr'] :'on',
'p_pict_comment' => (isset($conff['p_pict_comment'])) ? $conff['p_pict_comment'] :'off',
);
conf_update_param('elegant', $config, true);
}
?>
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
global $prefixeTable, $conf;
if (!isset($conf['elegant']))
{
$config = array(
'p_main_menu' => 'on', //on - off - disabled
'p_pict_descr' => 'on', //on - off - disabled
'p_pict_comment' => 'off', //on - off - disabled
);
conf_update_param('elegant', $config, true);
}
elseif (count(safe_unserialize( $conf['elegant'] ))!=3)
{
$conff = safe_unserialize($conf['elegant']);
$config = array(
'p_main_menu' => (isset($conff['p_main_menu'])) ? $conff['p_main_menu'] :'on',
'p_pict_descr' => (isset($conff['p_pict_descr'])) ? $conff['p_pict_descr'] :'on',
'p_pict_comment' => (isset($conff['p_pict_comment'])) ? $conff['p_pict_comment'] :'off',
);
conf_update_param('elegant', $config, true);
}
?>