CodeIgniter 4 website:
- Catalog 999 SGK (lớp 1-12) từ API, lọc theo lớp/môn/NXB, tìm kiếm
- Trang chủ grouped browse (bậc học -> lớp -> môn, ưu tiên môn quan trọng)
- Chi tiết sách: metadata đầy đủ, cover nghệ thuật /thumb/{W}x{H}/
- Đọc online qua gate captcha + countdown, PDF viewer pdf.js
- Download: captcha + token một lần + auto cache-bust version
- Tự đồng bộ catalog/cover khi API thay đổi (refresh:catalog)
- Legal: DMCA, miễn trừ trách nhiệm, điều khoản, bảo mật, liên hệ
26 lines
1005 B
PHP
26 lines
1005 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| ERROR DISPLAY
|
|
|--------------------------------------------------------------------------
|
|
| Don't show ANY in production environments. Instead, let the system catch
|
|
| it and display a generic error message.
|
|
|
|
|
| If you set 'display_errors' to '1', CI4's detailed error report will show.
|
|
*/
|
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
|
// If you want to suppress more types of errors.
|
|
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
|
|
ini_set('display_errors', '0');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| DEBUG MODE
|
|
|--------------------------------------------------------------------------
|
|
| Debug mode is an experimental flag that can allow changes throughout
|
|
| the system. It's not widely used currently, and may not survive
|
|
| release of the framework.
|
|
*/
|
|
defined('CI_DEBUG') || define('CI_DEBUG', false);
|