00001 <?php
00012 class ppOs extends Plugin
00013 {
00014 function ppOs()
00015 {
00016 $this->Plugin();
00017 }
00018
00019
00020
00021
00022 function delfile($path)
00023 {
00024 if(file_exists($path)) {
00025 return @unlink($path);
00026 }
00027 return false;
00028 }
00029
00030
00031
00032
00033 function deltree($path)
00034 {
00035 foreach(glob($path.DS.'*') as $f) {
00036 if(is_dir($f)) {
00037 $this->deltree($f);
00038 } else {
00039 unlink($f);
00040 }
00041 }
00042 rmdir($path);
00043 }
00044
00045
00046
00047
00048 function delpattern($pattern)
00049 {
00050 foreach(glob($pattern) as $f) {
00051 unlink($f);
00052 }
00053 }
00054
00055 }
00056
00057 ?>