IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2010, 1:49:58 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Deletion parameters are now in site.php.in + doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/ipp.php

    r28614 r28616  
    879879//
    880880function delete_old_tmp_files() {
    881   // define after how many minutes the files should be deleted
    882   $expire_time = 15;
    883   exec("find /tmp -user apache -amin +$expire_time", $output, $status);
     881  global $DELETION_USER;    // defined in raw/site.php.in
     882  global $DELETION_DELAY;   // defined in raw/site.php.in
     883  exec("find /tmp -user $DELETION_USER -amin +$DELETION_DELAY", $output, $status);
    884884  foreach ($output as $key => $value) {
    885885    exec("rm -f $value");
Note: See TracChangeset for help on using the changeset viewer.