コード例 #1
0
ファイル: loadplugin.php プロジェクト: MBerguer/wp-demo
<?php

defined('N2LIBRARY') or die;
$mdir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
foreach (N2Filesystem::folders($mdir) as $mfolder) {
    $mfile = $mdir . $mfolder . DIRECTORY_SEPARATOR . 'loadplugin.php';
    if (N2Filesystem::fileexists($mfile)) {
        require_once $mfile;
    }
}
コード例 #2
0
ファイル: loadplugin.php プロジェクト: MBerguer/wp-demo
<?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;
    }
}
コード例 #3
0
ファイル: subform.php プロジェクト: MBerguer/wp-demo
 function getOptions()
 {
     return N2Filesystem::folders($this->getSubFormfolder(''));
 }