Ignore:
Timestamp:
Jan 12, 2013, 3:13:08 PM (11 years ago)
Author:
mistic100
Message:
  • add webservices
  • add mail function
  • add admin list
  • add admin export function
  • try to deal with Gthumb+
  • activate multisize dropdown menu of collection page

TODO : use webservices instead of toggle_image.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/install.inc.php

    r17657 r20090  
    55{
    66  global $conf, $prefixeTable;
     7 
     8  if (empty($conf['user_collections']))
     9  {
     10    $default_config = serialize(array(
     11      'allow_mails' => true,
     12      'allow_public' => true,
     13      ));
     14     
     15    conf_update_param('user_collections', $default_config);
     16    $conf['user_collections'] = $default_config;
     17  }
    718 
    819  // create tables
     
    2637  `col_id` mediumint(8) NOT NULL,
    2738  `image_id` mediumint(8) NOT NULL,
     39  `add_date` DATETIME NULL,
    2840  UNIQUE KEY `UNIQUE` (`col_id`,`image_id`)
    2941) DEFAULT CHARSET=utf8
    3042;';
    3143  pwg_query($query);
     44 
     45  $result = pwg_query('SHOW COLUMNS FROM `'.$prefixeTable.'collection_images` LIKE "add_date";');
     46  if (!pwg_db_num_rows($result))
     47  {
     48    pwg_query('ALTER TABLE `'.$prefixeTable.'collection_images` ADD `add_date` DATETIME NULL;');
     49  }
    3250}
    3351
Note: See TracChangeset for help on using the changeset viewer.