From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../libraries/classes/Display/Import.php | 127 --------------------- 1 file changed, 127 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Display/Import.php (limited to 'srcs/phpmyadmin/libraries/classes/Display/Import.php') diff --git a/srcs/phpmyadmin/libraries/classes/Display/Import.php b/srcs/phpmyadmin/libraries/classes/Display/Import.php deleted file mode 100644 index c9e543a..0000000 --- a/srcs/phpmyadmin/libraries/classes/Display/Import.php +++ /dev/null @@ -1,127 +0,0 @@ -display(); - exit; - } - - if (Core::isValid($_REQUEST['offset'], 'numeric')) { - $offset = intval($_REQUEST['offset']); - } - if (isset($_REQUEST['timeout_passed'])) { - $timeoutPassed = $_REQUEST['timeout_passed']; - } - - $localImportFile = ''; - if (isset($_REQUEST['local_import_file'])) { - $localImportFile = $_REQUEST['local_import_file']; - } - - // zip, gzip and bzip2 encode features - $compressions = []; - if ($cfg['GZipDump'] && function_exists('gzopen')) { - $compressions[] = 'gzip'; - } - if ($cfg['BZipDump'] && function_exists('bzopen')) { - $compressions[] = 'bzip2'; - } - if ($cfg['ZipDump'] && function_exists('zip_open')) { - $compressions[] = 'zip'; - } - - $allCharsets = Charsets::getCharsets($GLOBALS['dbi'], $cfg['Server']['DisableIS']); - $charsets = []; - /** @var Charset $charset */ - foreach ($allCharsets as $charset) { - $charsets[] = [ - 'name' => $charset->getName(), - 'description' => $charset->getDescription(), - ]; - } - - return $template->render('display/import/import', [ - 'upload_id' => $uploadId, - 'handler' => $_SESSION[$SESSION_KEY]["handler"], - 'id_key' => $_SESSION[$SESSION_KEY]['handler']::getIdKey(), - 'pma_theme_image' => $GLOBALS['pmaThemeImage'], - 'import_type' => $importType, - 'db' => $db, - 'table' => $table, - 'max_upload_size' => $maxUploadSize, - 'import_list' => $importList, - 'local_import_file' => $localImportFile, - 'is_upload' => $GLOBALS['is_upload'], - 'upload_dir' => isset($cfg['UploadDir']) ? $cfg['UploadDir'] : null, - 'timeout_passed_global' => isset($GLOBALS['timeout_passed']) ? $GLOBALS['timeout_passed'] : null, - 'compressions' => $compressions, - 'is_encoding_supported' => Encoding::isSupported(), - 'encodings' => Encoding::listEncodings(), - 'import_charset' => isset($cfg['Import']['charset']) ? $cfg['Import']['charset'] : null, - 'timeout_passed' => isset($timeoutPassed) ? $timeoutPassed : null, - 'offset' => isset($offset) ? $offset : null, - 'can_convert_kanji' => Encoding::canConvertKanji(), - 'charsets' => $charsets, - ]); - } -} -- cgit