VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/webtrees/resources/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/webtrees/resources/views/admin/trees-check.phtml
<?php

declare(strict_types=1);

use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\View;

/**
 * @var array<object> $errors
 * @var array<object> $infos
 * @var string        $more_url
 * @var string        $title
 * @var Tree          $tree
 * @var array<object> $warnings
 */

?>

<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>

<h1><?= $title ?></h1>

<h2>
    <?= I18N::translate('GEDCOM errors') ?>
</h2>

<ul class="list-group">
    <?php foreach ($errors as $error) : ?>
        <li class="list-group-item list-group-item-danger" data-wt-tag="<?= e($error->tag) ?>">
            <div class="row">
                <div class="col-auto"><?= $error->message ?></div>

                <?php if ($error->tag !== '') : ?>
                    <div class="col-auto ms-auto">
                        <button type="button" class="btn btn-link p-0 border-0">
                            <?= I18N::translate('Hide these errors') ?> — <?= e($error->tag) ?>
                        </button>
                    </div>
                <?php endif ?>
            </div>
        </li>
    <?php endforeach ?>

    <?php foreach ($warnings as $warning) : ?>
        <li class="list-group-item list-group-item-warning" data-wt-tag="<?= e($warning->tag) ?>">
            <div class="row">
                <div class="col-auto"><?= $warning->message ?></div>

                <?php if ($warning->tag !== '') : ?>
                    <div class="col-auto ms-auto">
                        <button type="button" class="btn btn-link p-0 border-0">
                            <?= I18N::translate('Hide these errors') ?> — <?= e($warning->tag) ?>
                        </button>
                    </div>
                <?php endif ?>
            </div>
        </li>
    <?php endforeach ?>

    <?php foreach ($infos as $info) : ?>
        <li class="list-group-item list-group-item-info" data-wt-tag="<?= e($info->tag) ?>">
            <div class="row">
                <div class="col-auto"><?= $info->message ?></div>

                <?php if ($info->tag !== '') : ?>
                    <div class="col-auto">
                        <button type="button" class="btn btn-link p-0 border-0">
                            <?= I18N::translate('Hide these errors') ?> — <?= e($info->tag) ?>
                        </button>
                    </div>
                <?php endif ?>
            </div>
        </li>
    <?php endforeach ?>

    <?php if ($errors === [] && $warnings === []) : ?>
        <li class="list-group-item"><?= I18N::translate('No errors have been found.') ?></li>
    <?php endif ?>
</ul>

<?php if ($more_url !== '') : ?>
    <p>
        <?= I18N::translate('The server’s time limit has been reached.') ?>
        <a class="btn btn-primary" href="<?= e($more_url) ?>">
            <?= I18N::translate('show more') ?>
        </a>
    </p>
<?php endif ?>

<?php View::push('javascript') ?>
<script>
  'use strict';

  document.querySelector('ul.list-group').addEventListener('click', (event) => {
    if (event.target.matches('button')) {
      event.preventDefault();
      event.stopPropagation();

      // Much quicker to hide elements than remove them.
      document
        .querySelectorAll('[data-wt-tag=' + CSS.escape(event.target.closest('li').dataset.wtTag) + ']')
        .forEach((element) => { element.style.display = 'none'; });
    }
  });
</script>
<?php View::endpush() ?>

VaKeR 2022