Ignore:
Timestamp:
Jan 14, 2013, 8:14:00 PM (12 years ago)
Author:
flop25
Message:

derivative size

File:
1 edited

Legend:

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

    r11026 r20154  
    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  }
    2233}
    2334
     
    2839  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="hr_glass_xl" LIMIT 1;';
    2940  pwg_query($query);
     41  if (isset($conf['derivatives']))  {   
     42    $new = @unserialize($conf['derivatives']);
     43    if( isset($new['d']['Optimal']))
     44    {
     45      unset($new['d']['Optimal']);
     46      $conf['derivatives']=serialize($new);
     47      $query = '
     48          UPDATE '.CONFIG_TABLE.'
     49          SET value="'.addslashes(serialize($new)).'"
     50          WHERE param = "derivatives"
     51          LIMIT 1';
     52      pwg_query($query);
     53    }
     54  }
     55
    3056}
    3157
Note: See TracChangeset for help on using the changeset viewer.