[Mã code 69348]

Source Code Web truyện tranh giao diện giống Cứu Truyện (cuutruyen )

  (1 Đánh giá)
  0       9    

Source Code Web truyện tranh giao diện giống cuutruyen, sử dụng 3 api cuutruyen, otruyen, mangadex

Danh mục
Thể loại
Ngày đăng
27-12-2025
Loại file
Full code
File download
 cuutruyen.zip [#]
CAM KẾT TỪ NGƯỜI BÁN
Thông tin code đúng như mô tả
Hỗ trợ người mua sau khi tải code

(Hạng vàng)
Xem trang

Source code
1

Đánh giá (1)
5/5

Ngày tham gia
14/12/2022

Website truyện tranh PHP giao diện dựa theo Cứu Truyện. Website sử dụng 100% data từ api cho những ai nghiên cứu làm web nhưng hạn chế về kinh phí server lưu trữ. 3 nguồn API hoàn toàn miễn phí từ cuutruyen, otruyen, mangadex tối ưu truy cập và nguồn truyện khổng lồ.

 

Trang DEMO: https://cuutruyen.site/

 

🎯 Phù hợp cho ai:

  • Người muốn xây dựng website đọc truyện tranh hoặc truyện chữ nhanh chóng.

  • Người mới bắt đầu, không cần nhiều chi phí để vận hành, không cần nhiều kỹ thuật vẫn có thể setup trong vài phút đơn giản.

 


XEM THÊM ==> Hướng dẫn cài đặt chi tiết

HÌNH ẢNH DEMO


cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện

cứu truyện,code website truyện tranh,web truyện tranh,code truyện tranh,code website đọc truyện tranh,code website cứu truyện


HƯỚNG DẪN CÀI ĐẶT
HƯỚNG DẪN SETUP – CỨU TRUYỆN
--------------------------------------------------
1. CẤU HÌNH DATABASE
--------------------------------------------------
File: config/database.php
 
Thay đổi thông tin kết nối MySQL:
 
$host = 'localhost';      // Địa chỉ MySQL server
$user = 'root';           // Tên người dùng MySQL
$pass = '';               // Mật khẩu MySQL
$dbname = 'cuutruyenne';  // Tên database
 
--------------------------------------------------
2. CẤU HÌNH PROXY DOMAIN (CLOUDFLARE WORKERS)
--------------------------------------------------
Website cần 2 Cloudflare Workers riêng biệt để proxy API và ảnh.
 
File cấu hình: config/proxy.php
Code worker có sẵn trong thư mục: proxy-workers/
thichtruyentranh(online).js - Dành cho PROXY_IMAGE_DOMAIN
cuutruyen(click).js - Dành cho PROXY_CUUTRUYEN_DOMAIN

 
--------------------------------
Worker 1: Proxy ảnh / API MangaDex
--------------------------------
- Truy cập Cloudflare (https://dash.cloudflare.com) > Compute & AI > Workers & Pages.
- Tạo Worker mới > chọn Start with Hello world! (đặt tên ví dụ: mangadex-proxy)
- Copy toàn bộ nội dung file:
  proxy-workers/thichtruyentranh(online).js
- Paste vào editor → Save and Deploy
- Vào Settings > Triggers
- Thêm Custom Domain
  Ví dụ: https://mangadex-proxy.demo1.workers.dev
 
--------------------------------
Worker 2: Proxy API CuuTruyen
--------------------------------
- Tạo thêm 1 Worker mới (đặt tên ví dụ: cuutruyen-proxy)
- Copy toàn bộ nội dung file:
  proxy-workers/cuutruyen(click).js
- Paste vào editor → Save and Deploy
- Vào Settings > Triggers
- Thêm Custom Domain
  Ví dụ: https://cuutruyen-proxy.demo1.workers.dev
 
--------------------------------
Cấu hình domain trong config/proxy.php
--------------------------------
Proxy ảnh / API MangaDex (dòng 7–8):
 
define('PROXY_IMAGE_DOMAIN', 'https://thichtruyentranh.online');
 
→ Thay bằng domain Worker 1 của bạn
 
Proxy API CuuTruyen (dòng 12–13):
 
define('PROXY_CUUTRUYEN_DOMAIN', 'https://cuutruyen.click');
 
→ Thay bằng domain Worker 2 của bạn
 
Lưu ý:
- Mỗi Worker bắt buộc dùng 1 domain riêng
- Có thể dùng subdomain hoặc workers.dev
- Không dùng chung domain cho 2 worker
 
--------------------------------------------------
3. CẤU HÌNH GOOGLE OAUTH (ĐĂNG NHẬP GOOGLE)
--------------------------------------------------
File: config/google-callback.php
 
Dòng 9–10:
$client->setClientId('YOUR_CLIENT_ID');
$client->setClientSecret('YOUR_CLIENT_SECRET');
 
Cách lấy Google OAuth Credentials:
- Truy cập Google Cloud Console
- Tạo project mới hoặc chọn project có sẵn
- Vào APIs & Services > Credentials
- Create Credentials > OAuth client ID
- Chọn loại: Web application
- Thêm Authorized redirect URI:
  https://yourdomain.com/config/google-callback.php
- Copy Client ID và Client Secret vào file trên
 
--------------------------------------------------
4. CẤU HÌNH EMAIL (PHPMAILER)
--------------------------------------------------
File: config/mail.php
 
SMTP Gmail (dòng 16–17):
 
$mail->Username = 'helptruyen@gmail.com';
$mail->Password = 'aaaa bbbb cccc dddd';
 
Email hiển thị người gửi (dòng 21):
 
$mail->setFrom('helptruyen@gmail.com', 'HelpTruyen');
 
Lưu ý khi dùng Gmail:
- Bắt buộc bật 2-Step Verification
- Tạo App Password tại:
  https://myaccount.google.com/apppasswords
- Sử dụng App Password (16 ký tự) thay cho mật khẩu Gmail
- Nếu dùng email khác:
  + Thay $mail->Host
  + Thay $mail->Port tương ứng
 
--------------------------------------------------
5. CẤU HÌNH CLOUDFLARE TURNSTILE (CAPTCHA)
--------------------------------------------------
File: register.php
 
Secret Key (Server-side) – dòng 52:
$secret_key = 'YOUR_SECRET_KEY';
 
Site Key (Client-side) – dòng 210:
sitekey: 'YOUR_SITE_KEY',
 
Cách lấy Turnstile Keys:
- Truy cập Cloudflare Dashboard
- Chọn domain của bạn
- Vào Turnstile
- Click Add Site
- Nhập tên site và domain
- Copy Site Key và Secret Key
- Thay vào các vị trí tương ứng trong register.php
 



Nguồn: Topcode.vn

BÌNH LUẬN (0)


ĐÁNH GIÁ (1)

ĐIỂM TRUNG BÌNH

5
1 Đánh giá
Code rất tốt (1)
Code tốt (0)
Code rất hay (0)
Code hay (0)
Bình thường (0)
Thành viên
Nội dung đánh giá
01:30 - 31/12/2025
Code rất tốt
Code chất lượng, hỗ trợ tốt
HỖ TRỢ TRỰC TUYẾN