source: trunk/themes/smartpocket/admin/upgrade.inc.php @ 26618

Last change on this file since 26618 was 26618, checked in by mistic100, 11 years ago

add two triggers and user_list_backend.php and don't fail on unknown column

File size: 747 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $prefixeTable, $conf;
6
7if (!isset($conf['smartpocket']))
8{
9  $config = array(
10    'loop'            => true,//true - false
11    'autohide'            => 5000,//5000 - 0
12  );
13  conf_update_param('smartpocket', pwg_db_real_escape_string(serialize($config)));
14  load_conf_from_db();
15}
16elseif (count(unserialize( $conf['smartpocket'] ))!=2)
17{
18  $conff=unserialize($conf['smartpocket']);
19  $config = array(
20    'loop'            => (isset($conff['loop'])) ? $conff['loop'] :true,
21    'autohide'            => (isset($conff['autohide'])) ? $conff['autohide'] :5000,
22  );
23  conf_update_param('smartpocket', pwg_db_real_escape_string(serialize($config)));
24  load_conf_from_db();
25}
26?>
Note: See TracBrowser for help on using the repository browser.