function __destruct()
{
if (strlen($this->dir) > 1) {
- require_once 'System.php';
+ $this->rmdir($this->dir);
//System::rm('-r', $this->dir);
}
function generateTempDir()
{
- $tn = '/var/lib/php5/mtrackworkingdirlEwD96a';
+ /*$tn = '/var/lib/php5/mtrackworkingdirlEwD96a';
if (file_exists($tn)) {
$this->rmdir($tn);
}
die("OOPS");
}
return $tn;
-
+ */
$tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
unlink($tn);
return $tn;