Source for file GC.php
Documentation is available at GC.php
DOKEOS - elearning and course management software
For a full list of contributors, see documentation/credits.html
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See "documentation/licence.html" more details.
Rue des Palais 44 Paleizenstraat
B-1030 Brussels - Belgium
* Code library for HotPotatoes integration.
* @package dokeos.exercise
* @version $Id: GC.php 10789 2007-01-18 19:18:27Z pcool $
// usage: HotPotGC($_configuration['root_sys'],$flag);
// working recursively, flag[0,1] print or delete the HotPotatoes temp files (.t.html)
echo "Garbage Collector<BR>";
HotPotGC($_configuration['root_sys'],1,1);
function HotPotGC($root_sys,$flag,$userID)
// flag[0,1] - print or delete the HotPotatoes temp files (.t.html)
$documentPath = $root_sys. "courses";
while (($file = readdir($dir)) !== false) {
$full_name = $folder. "/". $file;
while (list ($key, $val) = each ($filelist))
if (stristr($val,$userID. ".t.html"))
echo $folder. "/". $val. "<BR>";
|