Date field added to documents.
[moodle.git] / search / delete.php
CommitLineData
d9e1bf24 1<?php
2
3 require_once('../config.php');
4 require_once("$CFG->dirroot/search/lib.php");
5
6 mtrace("<pre>Starting clean-up...\n");
7
8 if ($mods = get_records_select('modules')) {
9 foreach ($mods as $mod) {
10 $class_file = $CFG->dirroot.'/search/documents/'.$mod->name.'_document.php';
11
12 if (file_exists($class_file)) {
13 mtrace("Checking $mod->name module for deletions.\n");
14
15 $records = get_records_sql("select * from ".$CFG->prefix."log where module = '$mod->name' and action like '%delete%'");
16
17 print_r($records);
18 } //if
19 } //foreach
20 } //if
21
22 mtrace("</pre>");
23
24?>