-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__autoload.php
More file actions
30 lines (25 loc) · 1.04 KB
/
Copy path__autoload.php
File metadata and controls
30 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
$dir = __DIR__;
function CKEditorPHP_recursive_load_php($directory) {
if (is_dir($directory)) {
$scan = array_diff(scandir($directory, SCANDIR_SORT_NONE), array('..', '.'));
//unset($scan[0], $scan[1]); //unset . and ..
foreach ($scan as $file) {
if (is_dir($directory . '/' . $file)) {
CKEditorPHP_recursive_load_php($directory . '/' . $file);
} else if (strpos($file, '.php') !== false) {
include_once $directory . '/' . $file;
}
}
}
}
require_once $dir . '/CKEditorPHP/CKEditorPHP.php';
require_once $dir . '/CKEditorPHP/core/Collection.php';
require_once $dir . '/CKEditorPHP/core/External.php';
require_once $dir . '/CKEditorPHP/core/ContentsCssCollection.php';
require_once $dir . '/CKEditorPHP/core/AbstractView.php';
require_once $dir . '/CKEditorPHP/core/AbstractPlugin.php';
require_once $dir . '/CKEditorPHP/core/PluginInterface.php';
require_once $dir . '/CKEditorPHP/core/PluginFactory.php';
require_once $dir . '/CKEditorPHP/view/JQueryView.php';
CKEditorPHP_recursive_load_php($dir . '/CKEditorPHP/plugins');