PHP Classes

File: aksara/Views/errors/html/banned.php

Recommend this page to a friend!
  Packages of Aby Dahana   Aksara   aksara/Views/errors/html/banned.php   Download  
File: aksara/Views/errors/html/banned.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Add Chinese translations for 2048 game and maintenance messages in zh-CN and zh-TW
feat: enhance user creation and logging with timestamps and creator references

- Updated MainSeeder to include 'created_at' timestamp and 'created_by' reference for new users.
- Modified error pages to improve user experience with updated messages and button styles.
- Refactored Home controller to use 'updated_at' instead of 'updated_timestamp' for blog entries.
- Updated various views to reflect changes in timestamp fields.
- Enhanced global JavaScript to display 'created_at' instead of 'timestamp' in user interactions.
- Added new translation keys for 'Created At' and 'Created By' across multiple languages.
- Cleaned up translations by removing unused keys and ensuring consistency across language files.
Refactor code for improved readability and consistency across multiple views

- Rearranged comments and code blocks for better organization in database.php, error_404.php, error_exception.php, error_exception.php (HTML), index.php, requirement.php, security.php, system.php, and Home module views.
- Ensured consistent formatting and indentation throughout the files.
- Added missing PHP opening tags and improved variable initialization.
- Enhanced error handling and user feedback in error views.
- Updated HTML structure for better semantic clarity and accessibility.
Date: 4 months ago
Size: 4,411 bytes
 

 

Contents

Class file image Download
<?php

/** @var int $expiresAt */
$expiresAt = isset($expiresAt)
    ? (int) $expiresAt
    : 0;

$remainingSeconds = $expiresAt > time()
    ? $expiresAt - time()
    : 0;

$remainingMinutes = $remainingSeconds > 0
    ? (int) ceil($remainingSeconds / 60)
    : 0;
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="mobile-web-app-capable" content="yes" />
        <meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=1, maximum-scale=1" />
        <link rel="icon" type="image/x-icon" href="uploads/settings/icons/logo.png">
        <title>403 - <?= phrase('Access Banned'); ?></title>
        <style>
            html, body {
                min-height: 100vh;
                margin: 0;
                padding: 0;
                background-color: #ffffff;
                font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
                color: #0f172a;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .content-wrapper {
                background-color: #ffffff;
                border: 3px dashed #faa;
                border-radius: 3rem;
                padding: 3rem 2.5rem;
                max-width: 480px;
                text-align: center;
            }
            .forbidden-icon img {
                max-width: 128px;
                max-height: auto;
                opacity: 0.5;
            }
            .logo-container {
                margin-top: 2rem;
            }
            .logo-container img {
                max-width: 200px;
                max-height: 48px;
                opacity: 0.5;
            }
            h1 {
                font-weight: 700;
                font-size: 1.875rem;
                margin: 0 0 1rem 0;
                color: #0f172a;
                line-height: 1.3;
            }
            h1 b {
                color: #0f172a;
            }
            p {
                font-size: 1rem;
                line-height: 1.5;
            }
            .text-muted {
                color: #8494ab
            }
            .text-danger {
                color: #800;
            }
            .btn-back {
                display: inline-flex;
                gap: 1rem;
                align-items: center;
                justify-content: center;
                background-color: #1e293b;
                color: #ffffff;
                text-decoration: none;
                font-size: 1rem;
                padding: 0.5rem 2rem;
                border-radius: 3rem;
                transition: background-color 0.2s ease;
                box-sizing: border-box;
            }
            .btn-back img {
                height: .75rem;
                margin: 0
            }
            .btn-back:hover {
                background-color: #334155;
            }
            .btn-back:active {
                background-color: #0f172a;
            }
            @media (max-width: 640px) {
                .content-wrapper {
                    padding: 2.5rem 1.5rem;
                    border: 0;
                    margin: 0 1rem;
                }
            }
        </style>
    </head>
    <body>
        <div class="content-wrapper">
            <div class="forbidden-icon">
                <img src="<?= base_url('assets/forbidden.png'); ?>" alt="Forbidden" width="128" />
            </div>
            <h1 class="text-danger">403 - <?= phrase('Access Banned'); ?></h1>
            <p class="text-muted"><?= phrase('Your network address has been temporarily banned because it repeatedly submitted URLs containing disallowed characters.'); ?></p>

            <?php if ($remainingMinutes > 0): ?>
                <p>
                    <b><?= ($remainingMinutes > 1 ? phrase('Access will be restored in approximately {{remaining}} minutes.', ['remaining' => $remainingMinutes]) : phrase('Access will be restored in approximately {{remaining}} minute.', ['remaining' => $remainingMinutes])); ?></b>
                </p>
            <?php endif; ?>

            <div class="logo-container">
                <img src="<?= base_url(UPLOAD_PATH . '/settings/' . get_setting('app_logo')); ?>" alt="Logo" />
            </div>
        </div>
    </body>
</html>