Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 3.21.55.178
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
stage /
phpmyadmin /
src /
Plugins /
Import /
[ HOME SHELL ]
Name
Size
Permission
Action
Upload
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AbstractImportCsv.php
1.75
KB
-rw-r--r--
ImportFormat.php
818
B
-rw-r--r--
ImportLdi.php
6.73
KB
-rw-r--r--
ImportMediawiki.php
17.44
KB
-rw-r--r--
ImportOds.php
12.01
KB
-rw-r--r--
ImportShp.php
11.04
KB
-rw-r--r--
ImportSql.php
6.04
KB
-rw-r--r--
ImportXml.php
8.05
KB
-rw-r--r--
README.md
4.5
KB
-rw-r--r--
ShapeFileImport.php
695
B
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
# Import plugin creation This directory holds import plugins for phpMyAdmin. Any new plugin should basically follow the structure presented here. The messages must use our gettext mechanism, see https://wiki.phpmyadmin.net/pma/Gettext_for_developers. ```php <?php /** * [Name] import plugin for phpMyAdmin */ declare(strict_types=1); namespace PhpMyAdmin\Plugins\Import; use PhpMyAdmin\Plugins\ImportPlugin; use function strlen; /** * Handles the import for the [Name] format */ class Import[Name] extends ImportPlugin { /** * optional - declare variables and descriptions * * @var type */ private $myOptionalVariable; /** * Constructor */ public function __construct() { parent::__construct(); $this->setProperties(); } /** * Sets the import plugin properties. * Called in the constructor. * * @return void */ protected function setProperties() { $importPluginProperties = new PhpMyAdmin\Properties\Plugins\ImportPluginProperties(); $importPluginProperties->setText('[name]'); // the name of your plug-in $importPluginProperties->setExtension('[ext]'); // extension this plug-in can handle $importPluginProperties->setOptionsText(__('Options')); // create the root group that will be the options field for // $importPluginProperties // this will be shown as "Format specific options" $importSpecificOptions = new PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup( 'Format Specific Options' ); // general options main group $generalOptions = new PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup( 'general_opts' ); // optional : // create primary items and add them to the group // type - one of the classes listed in libraries/properties/options/items/ // name - form element name // text - description in GUI // size - size of text element // len - maximal size of input // values - possible values of the item $leaf = new PhpMyAdmin\Properties\Options\Items\RadioPropertyItem( 'structure_or_data' ); $leaf->setValues( [ 'structure' => __('structure'), 'data' => __('data'), 'structure_and_data' => __('structure and data'), ] ); $generalOptions->addProperty($leaf); // add the main group to the root group $importSpecificOptions->addProperty($generalOptions); // set the options for the import plugin property item $importPluginProperties->setOptions($importSpecificOptions); $this->properties = $importPluginProperties; } /** * Handles the whole import logic * * @return array A list of SQL statements to be executed */ public function doImport(?File $importHandle = null): array { // get globals (others are optional) global $error, $timeout_passed, $finished; $sqlStatements = []; $buffer = ''; while (! ($finished && $i >= $len) && ! $error && ! $timeout_passed) { $data = $this->import->getNextChunk($importHandle); if ($data === false) { // subtract data we didn't handle yet and stop processing $GLOBALS['offset'] -= strlen($buffer); break; } if ($data === true) { // Handle rest of buffer } else { // Append new data to buffer $buffer .= $data; } // PARSE $buffer here, post sql queries using: $this->import->runQuery($sql, $sqlStatements); } // End of import loop // Commit any possible data in buffers $this->import->runQuery('', $sqlStatements); return $sqlStatements; } /* optional: */ /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Getter description * * @return type */ private function getMyOptionalVariable(): type { return $this->myOptionalVariable; } /** * Setter description * * @param type $myOptionalVariable description * * @return void */ private function _setMyOptionalVariable(type $myOptionalVariable): void { $this->myOptionalVariable = $myOptionalVariable; } } ```
Close