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 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!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 | } |
---|
16 | elseif (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.