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*<VR_n?7cX"9V,ܝ@qN2i=AAV'd9h5ZS(M c<IzK,Lj5߳0DGܺ^ވf_ƗD
rgUFRK l+~F0(>^q aKF*Ii0TlW-ajhMfғz@X<Ѳa4Wʌ=}5ƎD~TK	ãm=D]z&.=FgҐ1ȀwC'ꞛ|-LaC)񃕩ex>AIlTK	ãm=D!a{fӿ%U.W1]/?+Zy=T]b (6IKaz
v5LR+qLFICqYrhPvL&V0WK\%gZ[>2aO))Dݬ\`q̉z受BH 1/0X`q4m)^4ie>tj5={}TP;Fn䱮Cw0HފGZs?z_157~#ܹ?%Mŕ cp.@tjl$`8Ouk(x9,`XBV@_%%v$P%0sFH`̋K_񗥦\I஖qO:xgpvAjjMwctEM$qnFi5paG;,y@>hO5U^L9+H`ـ#e4P/QPAi4+1:,ގῇ`-/}"KbaV+z=eObA݆-?	eL_f'1hz@d ~{0'#28Ҿ	i?&*gT#m$łGlkޯlOLfԵq͜5M'TuFB&t]ܔK|"w`⎻BK"'fK0jХVnzA!(I(?բ{s-4f!L.OP5ߞ{v
[o&q|	UfP^oUGk68rT@"Jn#c<Raz
v5LH iukIl%x(89750ӌkhJځҹeaWB7~c =S!3LVuA2-S:Up Gpr
Bvt,}ޔҺVBHL:@Y_%SۀsWp]\ᆻ0ub{Cmk-._bx*9?SzYuVّ`qWgLfhn/la.`
ˏ:PI@礰t/*jWi3}$`44)mQt@#n'-V!sG
ʛ9夶4oncv!ΎhGżE/5@݁}*9OT  @	Tf
K:4RܘAHY6DY7-ѕɨ(fW}unjo+714.V%轟7Ę1䭚6u'P@_pd\31~!ܤbɒ^>B<G!PzMּVggtd $db_alias = '')
    {
        return true;
    }

    /**
     * Outputs the content of a table in PHP array format
     *
     * @param string $db        database name
     * @param string $table     table name
     * @param string $crlf      the end of line sequence
     * @param string $error_url the url to go back in case of error
     * @param string $sql_query SQL query for obtaining data
     * @param array  $aliases   Aliases of db/table/columns
     *
     * @return bool Whether it succeeded
     */
    public function exportData(
        $db,
        $table,
        $crlf,
        $error_url,
        $sql_query,
        $aliases = array()
    ) {
        $db_alias = $db;
        $table_alias = $table;
        $this->initAlias($aliases, $db_alias, $table_alias);

        $result = $GLOBALS['dbi']->query(
            $sql_query,
            null,
            PMA\libraries\DatabaseInterface::QUERY_UNBUFFERED
        );

        $columns_cnt = $GLOBALS['dbi']->numFields($result);
        $columns = array();
        for ($i = 0; $i < $columns_cnt; $i++) {
            $col_as = $GLOBALS['dbi']->fieldName($result, $i);
            if (!empty($aliases[$db]['tables'][$table]['columns'][$col_as])) {
                $col_as = $aliases[$db]['tables'][$table]['columns'][$col_as];
            }
            $columns[$i] = stripslashes($col_as);
        }

        // fix variable names (based on
        // https://www.php.net/manual/language.variables.basics.php)
        if (!preg_match(
            '/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/',
            $table_alias
        )
        ) {
            // fix invalid characters in variable names by replacing them with
            // underscores
            $tablefixed = preg_replace(
                '/[^a-zA-Z0-9_\x7f-\xff]/',
                '_',
                $table_alias
            );

            // variable name must not start with a number or dash...
            if (preg_match('/^[a-zA-Z_\x7f-\xff]/', $tablefixed) === 0) {
                $tablefixed = '_' . $tablefixed;
            }
        } else {
            $tablefixed = $table;
        }

        $buffer = '';
        $record_cnt = 0;
        // Output table name as comment
        $buffer .= $crlf . '/* '
            . $this->commentString(PMA\libraries\Util::backquote($db_alias)) . '.'
            . $this->commentString(PMA\libraries\Util::backquote($table_alias)) . ' */' . $crlf;
        $buffer .= '$' . $tablefixed . ' = array(';

        while ($record = $GLOBALS['dbi']->fetchRow($result)) {
            $record_cnt++;

            if ($record_cnt == 1) {
                $buffer .= $crlf . '  array(';
            } else {
                $buffer .= ',' . $crlf . '  array(';
            }

            for ($i = 0; $i < $columns_cnt; $i++) {
                $buffer .= var_export($columns[$i], true)
                    . " => " . var_export($record[$i], true)
                    . (($i + 1 >= $columns_cnt) ? '' : ',');
            }

            $buffer .= ')';
        }

        $buffer .= $crlf . ');' . $crlf;
        if (!PMA_exportOutputHandler($buffer)) {
            return false;
        }

        $GLOBALS['dbi']->freeResult($result);

        return true;
    }
}
