main/inc/lib/plugin.lib.php 1 location
|
@@ 50-54 (lines=5) @@
|
| 47 |
|
$pluginPath = api_get_path(SYS_PLUGIN_PATH); |
| 48 |
|
$plugins = array(); |
| 49 |
|
$handle = @opendir($pluginPath); |
| 50 |
|
while (false !== ($file = readdir($handle))) { |
| 51 |
|
if ($file != '.' && $file != '..' && is_dir(api_get_path(SYS_PLUGIN_PATH).$file)) { |
| 52 |
|
$plugins[] = $file; |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
@closedir($handle); |
| 56 |
|
sort($plugins); |
| 57 |
|
|
main/inc/lib/dashboard.lib.php 1 location
|
@@ 265-269 (lines=5) @@
|
| 262 |
|
$possiblePlugins = array(); |
| 263 |
|
$dashboard_pluginpath = api_get_path(SYS_PLUGIN_PATH).'dashboard/'; |
| 264 |
|
$handle = @opendir($dashboard_pluginpath); |
| 265 |
|
while (false !== ($file = readdir($handle))) { |
| 266 |
|
if ($file <> '.' && $file <> '..' && is_dir($dashboard_pluginpath.$file)) { |
| 267 |
|
$possiblePlugins[] = $file; |
| 268 |
|
} |
| 269 |
|
} |
| 270 |
|
@closedir($handle); |
| 271 |
|
|
| 272 |
|
return $possiblePlugins; |
main/lp/learnpath.class.php 1 location
|
@@ 9678-9682 (lines=5) @@
|
| 9675 |
|
} else { |
| 9676 |
|
// Cleanup: Check the temp dir for old files and delete them. |
| 9677 |
|
$handle = opendir($temp_zip_dir); |
| 9678 |
|
while (false !== ($file = readdir($handle))) { |
| 9679 |
|
if ($file != '.' && $file != '..') { |
| 9680 |
|
unlink("$temp_zip_dir/$file"); |
| 9681 |
|
} |
| 9682 |
|
} |
| 9683 |
|
closedir($handle); |
| 9684 |
|
} |
| 9685 |
|
$zip_files = $zip_files_abs = $zip_files_dist = array(); |