Panel/Panel/modules/website/staff_migrations.php

10 lines
508 B
PHP

<?php
declare(strict_types=1);
require_once __DIR__ . '/includes/bootstrap.php';
website_require_staff();
$ran = false; $errors = [];
if (website_request_method() === 'POST') {
if (website_verify_csrf()) { $errors = website_run_billing_migrations(); $ran = true; }
else { $errors = ['Invalid CSRF token.']; }
}
website_render('staff_migrations.php', ['activePage'=>'staff','pageTitle'=>'Website Migrations - Gameservers.World','canonicalPath'=>'staff_migrations.php','ran'=>$ran,'errors'=>$errors]);