Ignore:
Timestamp:
Jan 30, 2010, 11:50:34 PM (14 years ago)
Author:
plg
Message:

feature 1407 added: set the privacy level at upload time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/upload_form/include/functions_upload.inc.php

    r4783 r4805  
    2626$page['source_file'] = '/home/pierrick/public_html/test/resize/phpthumb/examples/statue_small.jpg';
    2727
    28 function add_uploaded_file($source_filepath, $original_filename=null, $categories=null)
     28function add_uploaded_file($source_filepath, $original_filename=null, $categories=null, $level=null)
    2929{
    3030  global $page;
     
    9696    $insert['high_filesize'] = $high_infos['filesize'];
    9797  }
     98
     99  if (isset($level))
     100  {
     101    $insert['level'] = $level;
     102  }
    98103 
    99104  mass_inserts(
Note: See TracChangeset for help on using the changeset viewer.