📄 upload.php
字号:
<?php
function SendError( $number, $text )
{
senduploadresults( $number, "", "", $text );
}
require( "./config.php" );
require( "./util.php" );
require( "./io.php" );
require( "./commands.php" );
require( "./phpcompat.php" );
if ( !$Config['Enabled'] )
{
senduploadresults( "1", "", "", "This file uploader is disabled. Please check the \"editor/filemanager/connectors/php/config.php\" file" );
}
$sCommand = "QuickUpload";
$sType = isset( $_GET['Type'] ) ? $_GET['Type'] : "File";
$sCurrentFolder = getcurrentfolder( );
if ( !isallowedcommand( $sCommand ) )
{
senduploadresults( "1", "", "", "The \"\"".$sCommand."\"\" command isn't allowed" );
}
if ( !isallowedtype( $sType ) )
{
senduploadresults( 1, "", "", "Invalid type specified" );
}
fileupload( $sType, $sCurrentFolder, $sCommand );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -