Completed
Push — 2.x ( 33f847...aa5803 )
by Naoki
04:36
created
php/elFinderVolumeDriver.class.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Base class for elFinder volume.
4
- * Provide 2 layers:
5
- *  1. Public API (commands)
6
- *  2. abstract fs API
7
- *
8
- * All abstract methods begin with "_"
9
- *
10
- * @author Dmitry (dio) Levashov
11
- * @author Troex Nevelin
12
- * @author Alexey Sukhotin
13
- **/
3
+	 * Base class for elFinder volume.
4
+	 * Provide 2 layers:
5
+	 *  1. Public API (commands)
6
+	 *  2. abstract fs API
7
+	 *
8
+	 * All abstract methods begin with "_"
9
+	 *
10
+	 * @author Dmitry (dio) Levashov
11
+	 * @author Troex Nevelin
12
+	 * @author Alexey Sukhotin
13
+	 **/
14 14
 abstract class elFinderVolumeDriver {
15 15
 	
16 16
 	/**
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
 		'mimefile'        => '',
193 193
 		// mime type normalize map : Array '[ext]:[detected mime type]' => '[normalized mime]'
194 194
 		'mimeMap'         => array(
195
-		                     'md:application/x-genesis-rom' => 'text/x-markdown',
196
-		                     'md:text/plain'                => 'text/x-markdown',
197
-		                     'markdown:text/plain'          => 'text/x-markdown',
198
-		                     'css:text/x-asm'               => 'text/css'
199
-		                    ),
195
+							 'md:application/x-genesis-rom' => 'text/x-markdown',
196
+							 'md:text/plain'                => 'text/x-markdown',
197
+							 'markdown:text/plain'          => 'text/x-markdown',
198
+							 'css:text/x-asm'               => 'text/css'
199
+							),
200 200
 		// directory for thumbnails
201 201
 		'tmbPath'         => '.tmb',
202 202
 		// mode to create thumbnails dir
@@ -4043,14 +4043,14 @@  discard block
 block discarded – undo
4043 4043
 	// }
4044 4044
 
4045 4045
 	/**
4046
-	* Find position of first occurrence of string in a string with multibyte support
4047
-	*
4048
-	* @param  string  $haystack  The string being checked.
4049
-	* @param  string  $needle    The string to find in haystack.
4050
-	* @param  int     $offset    The search offset. If it is not specified, 0 is used.
4051
-	* @return int|bool
4052
-	* @author Alexey Sukhotin
4053
-	**/
4046
+	 * Find position of first occurrence of string in a string with multibyte support
4047
+	 *
4048
+	 * @param  string  $haystack  The string being checked.
4049
+	 * @param  string  $needle    The string to find in haystack.
4050
+	 * @param  int     $offset    The search offset. If it is not specified, 0 is used.
4051
+	 * @return int|bool
4052
+	 * @author Alexey Sukhotin
4053
+	 **/
4054 4054
 	protected function stripos($haystack , $needle , $offset = 0) {
4055 4055
 		if (function_exists('mb_stripos')) {
4056 4056
 			return mb_stripos($haystack , $needle , $offset);
Please login to merge, or discard this patch.
php/plugins/Watermark/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 Watermark
4
- *
5
- * Print watermark on file upload.
6
- *
7
- * ex. binding, configure on connector options
8
- *	$opts = array(
9
- *		'bind' => array(
10
- *			'upload.presave' => array(
11
- *				'Plugin.Watermark.onUpLoadPreSave'
12
- *			)
13
- *		),
14
- *		// global configure (optional)
15
- *		'plugin' => array(
16
- *			'Watermark' => array(
17
- *				'enable'         => true,       // For control by volume driver
18
- *				'source'         => 'logo.png', // Path to Water mark image
19
- *				'marginRight'    => 5,          // Margin right pixel
20
- *				'marginBottom'   => 5,          // Margin bottom pixel
21
- *				'quality'        => 95,         // JPEG image save quality
22
- *				'transparency'   => 70,         // Water mark image transparency ( other than PNG )
23
- *				'targetType'     => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field )
24
- *				'targetMinPixel' => 200         // Target image minimum pixel size
25
- *			)
26
- *		),
27
- *		// each volume configure (optional)
28
- *		'roots' => array(
29
- *			array(
30
- *				'driver' => 'LocalFileSystem',
31
- *				'path'   => '/path/to/files/',
32
- *				'URL'    => 'http://localhost/to/files/'
33
- *				'plugin' => array(
34
- *					'Watermark' => array(
35
- *			 			'enable'         => true,       // For control by volume driver
36
- *						'source'         => 'logo.png', // Path to Water mark image
37
- *						'marginRight'    => 5,          // Margin right pixel
38
- *						'marginBottom'   => 5,          // Margin bottom pixel
39
- *						'quality'        => 95,         // JPEG image save quality
40
- *						'transparency'   => 70,         // Water mark image transparency ( other than PNG )
41
- *						'targetType'     => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field )
42
- *						'targetMinPixel' => 200         // Target image minimum pixel size
43
- *					)
44
- *				)
45
- *			)
46
- *		)
47
- *	);
48
- *
49
- * @package elfinder
50
- * @author Naoki Sawada
51
- * @license New BSD
52
- */
3
+	 * elFinder Plugin Watermark
4
+	 *
5
+	 * Print watermark on file upload.
6
+	 *
7
+	 * ex. binding, configure on connector options
8
+	 *	$opts = array(
9
+	 *		'bind' => array(
10
+	 *			'upload.presave' => array(
11
+	 *				'Plugin.Watermark.onUpLoadPreSave'
12
+	 *			)
13
+	 *		),
14
+	 *		// global configure (optional)
15
+	 *		'plugin' => array(
16
+	 *			'Watermark' => array(
17
+	 *				'enable'         => true,       // For control by volume driver
18
+	 *				'source'         => 'logo.png', // Path to Water mark image
19
+	 *				'marginRight'    => 5,          // Margin right pixel
20
+	 *				'marginBottom'   => 5,          // Margin bottom pixel
21
+	 *				'quality'        => 95,         // JPEG image save quality
22
+	 *				'transparency'   => 70,         // Water mark image transparency ( other than PNG )
23
+	 *				'targetType'     => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field )
24
+	 *				'targetMinPixel' => 200         // Target image minimum pixel size
25
+	 *			)
26
+	 *		),
27
+	 *		// each volume configure (optional)
28
+	 *		'roots' => array(
29
+	 *			array(
30
+	 *				'driver' => 'LocalFileSystem',
31
+	 *				'path'   => '/path/to/files/',
32
+	 *				'URL'    => 'http://localhost/to/files/'
33
+	 *				'plugin' => array(
34
+	 *					'Watermark' => array(
35
+	 *			 			'enable'         => true,       // For control by volume driver
36
+	 *						'source'         => 'logo.png', // Path to Water mark image
37
+	 *						'marginRight'    => 5,          // Margin right pixel
38
+	 *						'marginBottom'   => 5,          // Margin bottom pixel
39
+	 *						'quality'        => 95,         // JPEG image save quality
40
+	 *						'transparency'   => 70,         // Water mark image transparency ( other than PNG )
41
+	 *						'targetType'     => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field )
42
+	 *						'targetMinPixel' => 200         // Target image minimum pixel size
43
+	 *					)
44
+	 *				)
45
+	 *			)
46
+	 *		)
47
+	 *	);
48
+	 *
49
+	 * @package elfinder
50
+	 * @author Naoki Sawada
51
+	 * @license New BSD
52
+	 */
53 53
 class elFinderPluginWatermark {
54 54
 
55 55
 	private $opts = array();
Please login to merge, or discard this patch.
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.