Ignore:
Timestamp:
Nov 24, 2013, 6:09:57 PM (10 years ago)
Author:
mistic100
Message:

very big update for Piwigo 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/admin/export.php

    r24421 r25678  
    44try {
    55  $collection = new UserCollection($_GET['col_id']);
    6  
     6
    77  $template->assign('COL_ID', $_GET['col_id']);
    88}
     
    1919  pwg_set_session_var('uc_export_active_fields', $_POST['active']);
    2020  pwg_set_session_var('uc_export_inactive_fields', $_POST['inactive']);
    21  
     21
    2222  $content = $collection->serialize($_POST['active']);
    2323  $filename = 'collection_'.$_GET['col_id'].'_'.date('Ymd-Hi').'.csv';
    24  
     24
    2525  header('Content-Type: application/force-download; name="'.$filename.'"');
    2626  header('Content-Disposition: attachment; filename="'.$filename.'"');
     
    3232  header('Pragma: no-cache');
    3333  header('Expires: 0');
    34  
     34
    3535  echo $content;
    3636  exit;
     
    5555$template->assign('inactive_fields', pwg_get_session_var('uc_export_inactive_fields', $default_inactive_fields));
    5656
     57
    5758$template->set_filename('user_collections', realpath(USER_COLLEC_PATH . 'admin/template/export.tpl'));
    58 
    59 ?>
Note: See TracChangeset for help on using the changeset viewer.