upload.php
来自「taoa2008源码部分」· PHP 代码 · 共 31 行
PHP
31 行
<?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 + =
减小字号Ctrl + -
显示快捷键?