loadplugin.php 286 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 <?php defined('N2LIBRARY') or die(); $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR; foreach (N2Filesystem::folders($dir) AS $folder) { $file = $dir . $folder . DIRECTORY_SEPARATOR . $folder . '.php'; if (N2Filesystem::fileexists($file)) { require_once($file); } }