Last change
on this file since 13222 was
12048,
checked in by flop25, 13 years ago
|
adding an option to create big thumbnails periodically : new class css, admin option
changing timthumb to phpThumb.php : it's safer and works according document_root
=> new keys to translate
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!isset($conf['stripped_black_bloc'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'color_main' => 'E6554F', |
---|
11 | 'column_width' => 170, |
---|
12 | 'thumbnail_width' => 150, |
---|
13 | 'every_x' => 20, |
---|
14 | 'starting_to' => 1, |
---|
15 | 'thumbnail' => 'piwigo' //generated - auto - piwigo |
---|
16 | ); |
---|
17 | $query = " |
---|
18 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
19 | VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)');"; |
---|
20 | |
---|
21 | |
---|
22 | pwg_query($query); |
---|
23 | load_conf_from_db(); |
---|
24 | } |
---|
25 | elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=6) |
---|
26 | { |
---|
27 | $config = array( |
---|
28 | 'color_main' => 'E6554F', |
---|
29 | 'column_width' => 170, |
---|
30 | 'thumbnail_width' => 150, |
---|
31 | 'every_x' => 20, |
---|
32 | 'starting_to' => 1, |
---|
33 | 'thumbnail' => 'piwigo' //generated - auto - piwigo |
---|
34 | ); |
---|
35 | |
---|
36 | |
---|
37 | conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config))); |
---|
38 | load_conf_from_db(); |
---|
39 | } |
---|
40 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.