Initial commit: Backup der Webseiten
- zoesch.de - blitzkiste.net - gruene-hassberge (norbert.zoesch.de) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
25
zoesch.de/galerie/themes/smartpocket/admin/upgrade.inc.php
Normal file
25
zoesch.de/galerie/themes/smartpocket/admin/upgrade.inc.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user