Last change
on this file since 11699 was
11699,
checked in by flop25, 13 years ago
|
omg i did it ! dynamic generation of thumbnails.tpl
admin page for width and this dynamic generation
|
File size:
569 bytes
|
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 | 'column_width' => 170, |
---|
11 | 'thumbnail_width' => 150, |
---|
12 | 'thumbnail' => 'piwigo' //generated - auto - piwigo |
---|
13 | ); |
---|
14 | |
---|
15 | $query = ' |
---|
16 | INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) |
---|
17 | VALUES ("stripped_black_bloc" , "'.pwg_db_real_escape_string(serialize($config)).'" , "column_width#thumbnail_width#thumbnail(generated - auto - piwigo)");'; |
---|
18 | |
---|
19 | pwg_query($query); |
---|
20 | } |
---|
21 | load_conf_from_db(); |
---|
22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.