| 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 / smartpocket / admin / |
| Filename | /home/oyaide/www/moycompany.com/piwigo2/themes/smartpocket/admin/maintain.inc.php |
| Size | 972 |
| 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
class smartpocket_maintain extends ThemeMaintain
{
private $installed = false;
private $default_conf = array(
'loop' => true,//true - false
'autohide' => 5000,//5000 - 0
);
function activate($theme_version, &$errors=array())
{
global $conf, $prefixeTable;
if (empty($conf['smartpocket']))
{
conf_update_param('smartpocket', $this->default_conf, true);
}
elseif (count(safe_unserialize($conf['smartpocket'])) != 2)
{
$conff = safe_unserialize($conf['smartpocket']);
$config = array(
'loop' => (!empty($conff['loop'])) ? $conff['loop'] :true,
'autohide' => (!empty($conff['autohide'])) ? $conff['autohide'] :5000,
);
conf_update_param('smartpocket', $config, true);
}
$this->installed = true;
}
function deactivate()
{
}
function delete()
{
// delete configuration
conf_delete_param('smartpocket');
}
}
?>
class smartpocket_maintain extends ThemeMaintain
{
private $installed = false;
private $default_conf = array(
'loop' => true,//true - false
'autohide' => 5000,//5000 - 0
);
function activate($theme_version, &$errors=array())
{
global $conf, $prefixeTable;
if (empty($conf['smartpocket']))
{
conf_update_param('smartpocket', $this->default_conf, true);
}
elseif (count(safe_unserialize($conf['smartpocket'])) != 2)
{
$conff = safe_unserialize($conf['smartpocket']);
$config = array(
'loop' => (!empty($conff['loop'])) ? $conff['loop'] :true,
'autohide' => (!empty($conff['autohide'])) ? $conff['autohide'] :5000,
);
conf_update_param('smartpocket', $config, true);
}
$this->installed = true;
}
function deactivate()
{
}
function delete()
{
// delete configuration
conf_delete_param('smartpocket');
}
}
?>