Completed
Push — 2.x ( 82b028...ec6e0b )
by Naoki
04:23
created
php/plugins/Normalizer/plugin.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -1,55 +1,55 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * elFinder Plugin Normalizer
4
- * 
5
- * UTF-8 Normalizer of file-name and file-path etc.
6
- * nfc(NFC): Canonical Decomposition followed by Canonical Composition
7
- * nfkc(NFKC): Compatibility Decomposition followed by Canonical
8
- * 
9
- * This plugin require Class "Normalizer" (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
10
- * or PEAR package "I18N_UnicodeNormalizer"
11
- * 
12
- * ex. binding, configure on connector options
13
- *	$opts = array(
14
- *		'bind' => array(
15
- *			'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre' => array(
16
- *				'Plugin.Normalizer.cmdPreprocess'
17
- *			),
18
- *			'upload.presave' => array(
19
- *				'Plugin.Normalizer.onUpLoadPreSave'
20
- *			)
21
- *		),
22
- *		// global configure (optional)
23
- *		'plugin' => array(
24
- *			'Normalizer' => array(
25
- *				'enable' => true,
26
- *				'nfc'    => true,
27
- *				'nfkc'   => true,
28
- *				'lowercase'   => false
29
- *			)
30
- *		),
31
- *		// each volume configure (optional)
32
- *		'roots' => array(
33
- *			array(
34
- *				'driver' => 'LocalFileSystem',
35
- *				'path'   => '/path/to/files/',
36
- *				'URL'    => 'http://localhost/to/files/'
37
- *				'plugin' => array(
38
- *					'Normalizer' => array(
39
- *						'enable' => true,
40
- *						'nfc'    => true,
41
- *						'nfkc'   => true,
42
- * 						'lowercase'   => false
43
- *					)
44
- *				)
45
- *			)
46
- *		)
47
- *	);
48
- *
49
- * @package elfinder
50
- * @author Naoki Sawada
51
- * @license New BSD
52
- */
3
+	 * elFinder Plugin Normalizer
4
+	 * 
5
+	 * UTF-8 Normalizer of file-name and file-path etc.
6
+	 * nfc(NFC): Canonical Decomposition followed by Canonical Composition
7
+	 * nfkc(NFKC): Compatibility Decomposition followed by Canonical
8
+	 * 
9
+	 * This plugin require Class "Normalizer" (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
10
+	 * or PEAR package "I18N_UnicodeNormalizer"
11
+	 * 
12
+	 * ex. binding, configure on connector options
13
+	 *	$opts = array(
14
+	 *		'bind' => array(
15
+	 *			'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre' => array(
16
+	 *				'Plugin.Normalizer.cmdPreprocess'
17
+	 *			),
18
+	 *			'upload.presave' => array(
19
+	 *				'Plugin.Normalizer.onUpLoadPreSave'
20
+	 *			)
21
+	 *		),
22
+	 *		// global configure (optional)
23
+	 *		'plugin' => array(
24
+	 *			'Normalizer' => array(
25
+	 *				'enable' => true,
26
+	 *				'nfc'    => true,
27
+	 *				'nfkc'   => true,
28
+	 *				'lowercase'   => false
29
+	 *			)
30
+	 *		),
31
+	 *		// each volume configure (optional)
32
+	 *		'roots' => array(
33
+	 *			array(
34
+	 *				'driver' => 'LocalFileSystem',
35
+	 *				'path'   => '/path/to/files/',
36
+	 *				'URL'    => 'http://localhost/to/files/'
37
+	 *				'plugin' => array(
38
+	 *					'Normalizer' => array(
39
+	 *						'enable' => true,
40
+	 *						'nfc'    => true,
41
+	 *						'nfkc'   => true,
42
+	 * 						'lowercase'   => false
43
+	 *					)
44
+	 *				)
45
+	 *			)
46
+	 *		)
47
+	 *	);
48
+	 *
49
+	 * @package elfinder
50
+	 * @author Naoki Sawada
51
+	 * @license New BSD
52
+	 */
53 53
 class elFinderPluginNormalizer
54 54
 {
55 55
 	private $opts = array();
Please login to merge, or discard this patch.
php/plugins/Sanitizer/plugin.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -1,48 +1,48 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * elFinder Plugin Sanitizer
4
- *
5
- * Sanitizer of file-name and file-path etc.
6
- *
7
- * ex. binding, configure on connector options
8
- *	$opts = array(
9
- *		'bind' => array(
10
- *			'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre' => array(
11
- *				'Plugin.Sanitizer.cmdPreprocess'
12
- *			),
13
- *			'upload.presave' => array(
14
- *				'Plugin.Sanitizer.onUpLoadPreSave'
15
- *			)
16
- *		),
17
- *		// global configure (optional)
18
- *		'plugin' => array(
19
- *			'Sanitizer' => array(
20
- *				'enable' => true,
21
- *				'targets'  => array('\\','/',':','*','?','"','<','>','|'), // target chars
22
- *				'replace'  => '_'    // replace to this
23
- *			)
24
- *		),
25
- *		// each volume configure (optional)
26
- *		'roots' => array(
27
- *			array(
28
- *				'driver' => 'LocalFileSystem',
29
- *				'path'   => '/path/to/files/',
30
- *				'URL'    => 'http://localhost/to/files/'
31
- *				'plugin' => array(
32
- *					'Sanitizer' => array(
33
- *						'enable' => true,
34
- *						'targets'  => array('\\','/',':','*','?','"','<','>','|'), // target chars
35
- *						'replace'  => '_'    // replace to this
36
- *					)
37
- *				)
38
- *			)
39
- *		)
40
- *	);
41
- *
42
- * @package elfinder
43
- * @author Naoki Sawada
44
- * @license New BSD
45
- */
3
+	 * elFinder Plugin Sanitizer
4
+	 *
5
+	 * Sanitizer of file-name and file-path etc.
6
+	 *
7
+	 * ex. binding, configure on connector options
8
+	 *	$opts = array(
9
+	 *		'bind' => array(
10
+	 *			'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre' => array(
11
+	 *				'Plugin.Sanitizer.cmdPreprocess'
12
+	 *			),
13
+	 *			'upload.presave' => array(
14
+	 *				'Plugin.Sanitizer.onUpLoadPreSave'
15
+	 *			)
16
+	 *		),
17
+	 *		// global configure (optional)
18
+	 *		'plugin' => array(
19
+	 *			'Sanitizer' => array(
20
+	 *				'enable' => true,
21
+	 *				'targets'  => array('\\','/',':','*','?','"','<','>','|'), // target chars
22
+	 *				'replace'  => '_'    // replace to this
23
+	 *			)
24
+	 *		),
25
+	 *		// each volume configure (optional)
26
+	 *		'roots' => array(
27
+	 *			array(
28
+	 *				'driver' => 'LocalFileSystem',
29
+	 *				'path'   => '/path/to/files/',
30
+	 *				'URL'    => 'http://localhost/to/files/'
31
+	 *				'plugin' => array(
32
+	 *					'Sanitizer' => array(
33
+	 *						'enable' => true,
34
+	 *						'targets'  => array('\\','/',':','*','?','"','<','>','|'), // target chars
35
+	 *						'replace'  => '_'    // replace to this
36
+	 *					)
37
+	 *				)
38
+	 *			)
39
+	 *		)
40
+	 *	);
41
+	 *
42
+	 * @package elfinder
43
+	 * @author Naoki Sawada
44
+	 * @license New BSD
45
+	 */
46 46
 class elFinderPluginSanitizer
47 47
 {
48 48
 	private $opts = array();
Please login to merge, or discard this patch.