HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //proc/self/cwd/dup-installer/templates/default/parts/validation/database-tests/db-triggers.php
<?php

/**
 *
 * @package templates/default
 */

defined('ABSPATH') || defined('DUPXABSPATH') || exit;
/* Variables */
/* @var $isOk bool */
/* @var $triggers array */

$statusClass = $isOk ? 'green' : 'red';
?>
<div class="sub-title">STATUS</div>
<p class="<?php echo $statusClass; ?>">
    <?php if ($isOk) {
        ?>
        The source database did not contain any triggers.
        <?php
    } else {
        ?>
        The source database contained <b><?php echo count($triggers); ?> TRIGGERS</b> which will have to be manually imported.
        <?php
    } ?>
</p>

<div class="sub-title">DETAILS</div>
<p>
    TRIGGERS are not being imported along side the rest of the database, because their presence might cause unintended
    behavior. You can copy the CREATE queries by clicking the button below and manually add triggers via PHPMyAdmin, if necessary.
</p>

<div class="copy-to-clipboard-block">
    <button type="button" <?php echo $isOk ? 'disabled' : '' ?> class="default-btn">Copy Queries to Clipboard</button>
    <textarea <?php echo $isOk ? 'disabled' : '' ?> readonly="readonly"><?php
    if ($isOk) {
        echo 'No triggers found.';
    } else {
        foreach ($triggers as $name => $info) {
            echo $info->create . "\n\n";
        }
    }
    ?>
    </textarea>
</div>