Ignore:
Timestamp:
Jan 14, 2013, 8:07:25 PM (11 years ago)
Author:
flop25
Message:

optimal size
switchlanguage style

todo lang file to spread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/hr_os_xl/admin/maintain.inc.php

    r11027 r20153  
    2020    pwg_query($query);
    2121  }
     22  if (isset($conf['derivatives']))  {   
     23    $new = @unserialize($conf['derivatives']);
     24    $new['d']['Optimal']=ImageStdParams::get_custom(900,9999);
     25    $query = '
     26        UPDATE '.CONFIG_TABLE.'
     27        SET value="'.pwg_db_real_escape_string(serialize($new)).'"
     28        WHERE param = "derivatives"
     29        LIMIT 1';
     30    pwg_query($query);
     31    load_conf_from_db();
     32  }
     33
    2234}
    2335
    2436function theme_deactivate()
    2537{
    26   global $prefixeTable;
     38  global $prefixeTable, $conf;
    2739
    2840  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="hr_os_xl" LIMIT 1;';
    2941  pwg_query($query);
     42  if (isset($conf['derivatives']))  {   
     43    $new = @unserialize($conf['derivatives']);
     44    if( isset($new['d']['Optimal']))
     45    {
     46      unset($new['d']['Optimal']);
     47      $conf['derivatives']=serialize($new);
     48      $query = '
     49          UPDATE '.CONFIG_TABLE.'
     50          SET value="'.addslashes(serialize($new)).'"
     51          WHERE param = "derivatives"
     52          LIMIT 1';
     53      pwg_query($query);
     54    }
     55  }
     56
    3057}
    3158
Note: See TracChangeset for help on using the changeset viewer.