Changeset 2521 for trunk/admin


Ignore:
Timestamp:
Sep 12, 2008, 4:17:35 AM (16 years ago)
Author:
rvelices
Message:
  • images.file categories.permalink old_permalinks.permalink - become binary
  • session security improvement: now the sessions are valid only for originating ip addr (with mask 255.255.0.0 to allow users behind load balancing proxies) -> stealing the session cookie is almost a non issue (with the exception of the 65536 machines in range)
  • metadata sync from the sync button does not overwrite valid data with empty metadata
  • other small fixes/enhancements:
    • added event get_category_image_orders
    • fix display issue with redirect.tpl (h1/h2 within h1)
    • fix known_script smarty function registration
    • query search form not submitted if q is empty
    • better admin css rules
    • some other minor changes (ws_core, rest_handler, functions_search...)
Location:
trunk/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_metadata.php

    r2299 r2521  
    2929{
    3030  global $conf, $page;
    31  
     31
    3232  $map = $conf['use_iptc_mapping'];
    33  
     33
    3434  $iptc = get_iptc_data($file, $map);
    3535
     
    109109    array_push($image_ids, $id);
    110110  }
    111  
     111
    112112  $query = '
    113113SELECT id
     
    119119;';
    120120
    121   $result = pwg_query($query);
    122   while ($row = mysql_fetch_array($result))
    123   {
    124     array_push($has_high_images, $row['id']);
    125   }
     121  $has_high_images = array_from_query($query, 'id');
    126122
    127123  foreach ($files as $id => $file)
     
    130126    $data['id'] = $id;
    131127    $data['filesize'] = floor(filesize($file)/1024);
    132  
     128
    133129    if ($image_size = @getimagesize($file))
    134130    {
     
    143139      $data['high_filesize'] = floor(filesize($high_file)/1024);
    144140    }
    145  
     141
    146142    if ($conf['use_exif'])
    147143    {
     
    162158              $tags_of[$id] = array();
    163159            }
    164            
     160
    165161            foreach (explode(',', $iptc[$key]) as $tag_name)
    166162            {
     
    179175    array_push($datas, $data);
    180176  }
    181  
     177
    182178  if (count($datas) > 0)
    183179  {
     
    190186        'date_metadata_update'
    191187        );
    192    
     188
    193189    if ($conf['use_exif'])
    194190    {
     
    199195          );
    200196    }
    201    
     197
    202198    if ($conf['use_iptc'])
    203199    {
     
    218214        'update'  => array_unique($update_fields)
    219215        ),
    220       $datas
     216      $datas,
     217      MASS_UPDATES_SKIP_EMPTY
    221218      );
    222219  }
     
    235232 * @return array
    236233 */
    237 function get_filelist($category_id = '', $site_id=1, $recursive = false, 
     234function get_filelist($category_id = '', $site_id=1, $recursive = false,
    238235                      $only_new = false)
    239236{
    240237  // filling $cat_ids : all categories required
    241238  $cat_ids = array();
    242  
     239
    243240  $query = '
    244241SELECT id
     
    293290    $files[$row['id']] = $row['path'];
    294291  }
    295  
     292
    296293  return $files;
    297294}
  • trunk/admin/template/yoga/default-layout.css

    r2503 r2521  
    291291  font-size: 1em;       /* <= some browsers don't set it correctly */
    292292}
    293 UL, DL { text-align: left;}
     293UL, DL, OL { text-align: left;}
    294294TABLE {                 /* horizontaly centered */
    295295  margin-left: auto;
  • trunk/admin/template/yoga/layout.css

    r2390 r2521  
    1 /* $Id$ */
    21
    32/* template css */
    4 @import "menubar.css";
     3/*@import "menubar.css";*/
    54@import "content.css";
    65@import "thumbnails.css";
  • trunk/admin/template/yoga/theme/admin/theme.css

    r2503 r2521  
    4545.content dl, dd { margin:5px; }
    4646.content div.titrePage { height:55px; }
    47 .content ol li { text-align: left; }
    4847.instructions { text-align: left; padding: 20px 20px 0 20px; }
    4948.throw, td h3 {
    5049 background-image: url(images/fillet.png); background-repeat: repeat-x; }
    51 .browsePath a { color: #eee; }
    5250/* borders */ /* TODO */
    5351INPUT, SELECT, TEXTAREA { border-left: 2px inset #696969;
Note: See TracChangeset for help on using the changeset viewer.