Last change
on this file since 26627 was
26627,
checked in by flop25, 10 years ago
|
smartpocket: Thememaintain class used in maintain.inc.php-> no more issue on 2.6 installation (tested)
|
File size:
853 bytes
|
Rev | Line | |
---|
[23718] | 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 | ); |
---|
[26620] | 13 | $query = " |
---|
| 14 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
| 15 | VALUES ('smartpocket' , '".pwg_db_real_escape_string(serialize($config))."' , 'loop#autohide');"; |
---|
| 16 | pwg_query($query); |
---|
[23718] | 17 | load_conf_from_db(); |
---|
| 18 | } |
---|
| 19 | elseif (count(unserialize( $conf['smartpocket'] ))!=2) |
---|
| 20 | { |
---|
| 21 | $conff=unserialize($conf['smartpocket']); |
---|
| 22 | $config = array( |
---|
[26627] | 23 | 'loop' => (!empty($conff['loop'])) ? $conff['loop'] :true, |
---|
| 24 | 'autohide' => (!empty($conff['autohide'])) ? $conff['autohide'] :5000, |
---|
[23718] | 25 | ); |
---|
| 26 | conf_update_param('smartpocket', pwg_db_real_escape_string(serialize($config))); |
---|
| 27 | load_conf_from_db(); |
---|
| 28 | } |
---|
| 29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.