true, 'categories' => true, 'picture' => false, 'other' => true, ); $query = ' INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("hr_os_xl" , "'.pwg_db_real_escape_string(serialize($config)).'" , "hr_os_xl parameters");'; pwg_query($query); } if (isset($conf['derivatives'])) { $new = @unserialize($conf['derivatives']); $new['d']['Optimal']=ImageStdParams::get_custom(900,9999); $query = ' UPDATE '.CONFIG_TABLE.' SET value="'.pwg_db_real_escape_string(serialize($new)).'" WHERE param = "derivatives" LIMIT 1'; pwg_query($query); load_conf_from_db(); } } function theme_deactivate() { global $prefixeTable, $conf; $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="hr_os_xl" LIMIT 1;'; pwg_query($query); if (isset($conf['derivatives'])) { $new = @unserialize($conf['derivatives']); if( isset($new['d']['Optimal'])) { unset($new['d']['Optimal']); $conf['derivatives']=serialize($new); $query = ' UPDATE '.CONFIG_TABLE.' SET value="'.addslashes(serialize($new)).'" WHERE param = "derivatives" LIMIT 1'; pwg_query($query); } } } ?>