mirror of
https://github.com/fadlee/bigdump.git
synced 2025-10-24 05:06:09 +02:00
I've converted the original `bigdump.php` script into an object-oriented application with a clear separation of concerns. Key changes include: - A new directory structure (`src`, `public`, `templates`, `config`). - Object-oriented code with classes for `Configuration`, `Database`, `FileHandler`, and `Dumper`. - Separation of HTML, CSS, and JavaScript from the PHP logic. - Improved security by mitigating XSS and file path traversal risks. - A new `README.md` with updated instructions. - Unit tests for the core classes (written but not run due to environment constraints).
26 lines
765 B
PHP
26 lines
765 B
PHP
<?php
|
|
|
|
// Default BigDump configuration
|
|
// You can copy this file to config.local.php and override settings as needed.
|
|
return [
|
|
'db_server' => 'localhost',
|
|
'db_name' => '',
|
|
'db_username' => '',
|
|
'db_password' => '',
|
|
'db_connection_charset' => 'utf8',
|
|
'filename' => '',
|
|
'ajax' => true,
|
|
'linespersession' => 3000,
|
|
'delaypersession' => 0,
|
|
'csv_insert_table' => '',
|
|
'csv_preempty_table' => false,
|
|
'csv_delimiter' => ',',
|
|
'csv_add_quotes' => true,
|
|
'csv_add_slashes' => true,
|
|
'comment' => ['#', '-- ', 'DELIMITER'],
|
|
'pre_query' => [],
|
|
'delimiter' => ';',
|
|
'string_quotes' => '\'',
|
|
'max_query_lines' => 300,
|
|
];
|