Changeset 25678 for extensions/UserCollections/admin/export.php
- Timestamp:
- Nov 24, 2013, 6:09:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/admin/export.php
r24421 r25678 4 4 try { 5 5 $collection = new UserCollection($_GET['col_id']); 6 6 7 7 $template->assign('COL_ID', $_GET['col_id']); 8 8 } … … 19 19 pwg_set_session_var('uc_export_active_fields', $_POST['active']); 20 20 pwg_set_session_var('uc_export_inactive_fields', $_POST['inactive']); 21 21 22 22 $content = $collection->serialize($_POST['active']); 23 23 $filename = 'collection_'.$_GET['col_id'].'_'.date('Ymd-Hi').'.csv'; 24 24 25 25 header('Content-Type: application/force-download; name="'.$filename.'"'); 26 26 header('Content-Disposition: attachment; filename="'.$filename.'"'); … … 32 32 header('Pragma: no-cache'); 33 33 header('Expires: 0'); 34 34 35 35 echo $content; 36 36 exit; … … 55 55 $template->assign('inactive_fields', pwg_get_session_var('uc_export_inactive_fields', $default_inactive_fields)); 56 56 57 57 58 $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.