Initial commit

This commit is contained in:
root
2026-05-26 08:07:45 +00:00
commit a234e55e64
4263 changed files with 855927 additions and 0 deletions
+124
View File
@@ -0,0 +1,124 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<title><?= $heading; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* ================================
🔥 GLOBAL STYLE
================================ */
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #ff8c00, #ffb347);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* ================================
🔥 CARD
================================ */
.error-card {
background: #fff;
padding: 40px 35px;
border-radius: 16px;
text-align: center;
max-width: 420px;
width: 90%;
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
animation: fadeIn 0.4s ease;
}
/* ================================
🔥 TITLE
================================ */
.error-code {
font-size: 60px;
font-weight: 700;
color: #ff8c00;
margin-bottom: 10px;
}
.error-title {
font-size: 20px;
font-weight: 600;
color: #333;
margin-bottom: 10px;
}
.error-message {
font-size: 14px;
color: #666;
margin-bottom: 25px;
}
/* ================================
🔥 BUTTON
================================ */
.btn-dashboard {
display: inline-block;
padding: 10px 20px;
background: #ff8c00;
color: #fff;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
transition: 0.3s;
}
.btn-dashboard:hover {
background: #e67700;
}
/* ================================
🔥 ANIMATION
================================ */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body>
<div class="error-card">
<!-- 🔥 KODE ERROR -->
<div class="error-code">
<?= strpos($heading, '404') !== false ? '404' : 'Error'; ?>
</div>
<!-- 🔥 TITLE -->
<div class="error-title">
<?= $heading; ?>
</div>
<!-- 🔥 MESSAGE -->
<div class="error-message">
<?= strip_tags($message); ?>
</div>
<!-- 🔥 BUTTON -->
<a href="<?= base_url('dashboard'); ?>" class="btn-dashboard">
Kembali ke Dashboard
</a>
</div>
</body>
</html>
@@ -0,0 +1,64 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Database Error</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>
@@ -0,0 +1,32 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>An uncaught Exception was encountered</h4>
<p>Type: <?php echo get_class($exception); ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $exception->getFile(); ?></p>
<p>Line Number: <?php echo $exception->getLine(); ?></p>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace:</p>
<?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
<p style="margin-left:10px">
File: <?php echo $error['file']; ?><br />
Line: <?php echo $error['line']; ?><br />
Function: <?php echo $error['function']; ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>
@@ -0,0 +1,124 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<title>403 Forbidden</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #ff8c00, #ffb347);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.error-card {
background: #fff;
padding: 40px 35px;
border-radius: 16px;
text-align: center;
max-width: 420px;
width: 90%;
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
animation: fadeIn 0.4s ease;
}
.error-code {
font-size: 60px;
font-weight: 700;
color: #ff8c00;
margin-bottom: 10px;
}
.error-title {
font-size: 20px;
font-weight: 600;
color: #333;
margin-bottom: 10px;
}
.error-message {
font-size: 14px;
color: #666;
margin-bottom: 25px;
}
.btn-dashboard {
display: inline-block;
padding: 10px 20px;
background: #ff8c00;
color: #fff;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
transition: 0.3s;
}
.btn-dashboard:hover {
background: #e67700;
}
.btn-back {
display: inline-block;
margin-left: 10px;
padding: 10px 20px;
background: #6c757d;
color: #fff;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
transition: 0.3s;
}
.btn-back:hover {
background: #5a6268;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body>
<div class="error-card">
<!-- 🔥 ICON -->
<div style="font-size:50px; margin-bottom:10px;">🔒</div>
<!-- 🔥 CODE -->
<div class="error-code">403</div>
<!-- 🔥 TITLE -->
<div class="error-title">Akses Ditolak</div>
<!-- 🔥 MESSAGE -->
<div class="error-message">
Anda tidak memiliki izin untuk mengakses halaman ini.<br>
Silakan hubungi administrator jika ini adalah kesalahan.
</div>
<a href="javascript:history.back()" class="btn-back">
Kembali
</a>
</div>
</body>
</html>
@@ -0,0 +1,33 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: <?php echo $severity; ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace:</p>
<?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
<p style="margin-left:10px">
File: <?php echo $error['file'] ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>
+11
View File
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>