1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
piwigo_ynh/sources/themes/smartpocket/admin/upgrade.inc.php
2016-09-05 13:40:09 +02:00

25 lines
No EOL
608 B
PHP

<?php
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
global $prefixeTable, $conf;
if (!isset($conf['smartpocket']))
{
$config = array(
'loop' => true,//true - false
'autohide' => 5000,//5000 - 0
);
conf_update_param('smartpocket', $config, 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);
}
?>