config.lasso

来自「站长俱乐部新闻发布程序 采用全新代码设计,完全不同于国内所有程序 采用国际」· LASSO 代码 · 共 40 行

LASSO
40
字号
[//lasso



    
	var('connection') = array(
		-username='xxxxxxxx',
		-password='xxxxxxxx'
	);


    /*.....................................................................     
    Set the base path for files that users can upload and browse (relative
    to server root).
    
    Set which file extensions are allowed and/or denied for each file type.                                                                           
    */                                                                          
	var('config') = map(
	    'Enabled' = true,
		'UserFilesPath' = '/UserFiles/',
		'Subdirectories' = map(
			'File' = 'File/',
			'Image' = 'Image/',
			'Flash' = 'Flash/',
			'Media' = 'Media/'
		),
		'AllowedExtensions' = map(
			'File' = array(),
			'Image' = array('jpg','gif','jpeg','png'),
			'Flash' = array('swf','fla'),
			'Media' = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg')
		),
		'DeniedExtensions' = map(
			'File' = array('php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','lasso','lassoapp'),
			'Image' = array(),
			'Flash' = array(),
			'Media' = array()
		)
	);
]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?