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).
19 lines
611 B
PHP
19 lines
611 B
PHP
<?php
|
|
// templates/import.php
|
|
?>
|
|
<div id="import-page-marker" data-delay="<?php echo htmlspecialchars($delaypersession, ENT_QUOTES, 'UTF-8'); ?>">
|
|
<p class="centr">Processing file: <b><?php echo htmlspecialchars($filename, ENT_QUOTES, 'UTF-8'); ?></b></p>
|
|
<p class="smlcentr">Starting from line: <span id="linenumber"><?php echo $start_line; ?></span></p>
|
|
|
|
<div id="progress">
|
|
<!-- progress table will be injected here by javascript -->
|
|
</div>
|
|
|
|
<div id="import_messages">
|
|
</div>
|
|
|
|
<p class="centr">
|
|
<a href="?" id="stop_button" class="button">STOP</a>
|
|
</p>
|
|
</div>
|