v-wordpress-plugin-updater/v-update-api/app/Views/logs.php
Nikolai X. Shadeauxs 8fc3bc20ad
Some checks failed
CI & Security / CI Scan (push) Failing after 9s
CI & Security / CodeQL (JavaScript) (push) Failing after 6s
CI & Security / Semgrep (PHP) (push) Failing after 8s
modified: .github/copilot-instructions.md
modified:   CHANGELOG.md
	modified:   README.md
2026-04-06 14:39:21 -04:00

36 lines
1 KiB
PHP

<?php
// phpcs:ignoreFile PSR1.Files.SideEffects.FoundWithSymbols
/**
* Project: UpdateAPI
* Author: Vontainment <services@vontainment.com>
* License: https://opensource.org/licenses/MIT MIT License
* Link: https://vontainment.com
* Version: 4.5.0
*
* File: logs.php
* Description: WordPress Update API
*/
require_once __DIR__ . '/layouts/header.php';
?>
<div class="content-box">
<h2>Plugin Log</h2>
<?php
/** @var string $ploutput */
$ploutput = $ploutput ?? '';
echo $ploutput;
?>
<h2>Theme Log</h2>
<?php
/** @var string $thoutput */
$thoutput = $thoutput ?? '';
echo $thoutput;
?>
<form method="post" action="/logs" style="margin-top:20px;">
<input type="hidden" name="csrf_token" value="<?php echo htmlspecialchars(\App\Helpers\SessionHelper::get('csrf_token') ?? '', ENT_QUOTES, 'UTF-8'); ?>">
<button class="red-button" type="submit" name="clear_logs">Clear Logs</button>
</form>
</div>
<?php require_once __DIR__ . '/layouts/footer.php'; ?>