phpBMS

root/trunk/phpbms/modules/base/scheduler_delete_tempimport.php

Revision 727, 0.6 KB (checked in by brieb, 2 years ago)
  • Added more rights look ups to certain pages
  • Fixed several path disclosure errors
Line 
1<?php
2
3//uncomment for debug purposes
4//if(!class_exists("appError"))
5//      include_once("../../include/session.php");
6
7class cleanImports{
8
9        function cleanImports($db){
10                $this->db = $db;
11        }//end method --cleanImports--
12
13        function removeTempCSV(){
14
15                $querystatement = "
16                        DELETE FROM
17                                `files`
18                        WHERE
19                                `type` = 'phpbms/temp'
20                                AND
21                                `creationdate` <= NOW() - INTERVAL '30' MINUTE
22                                ;
23                        ";
24
25                $queryresult = $this->db->query($querystatement);
26
27        }//end method --_removeTempCSV--
28
29}//end class --cleanImports--
30
31if(!isset($noOutput) && isset($db)){
32
33    $clean = new cleanImports($db);
34    $clean->removeTempCSV();
35
36}//end if
37?>
Note: See TracBrowser for help on using the browser.
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.