This is an open-source couple recording website built with native PHP 7.4+ and MySQL 5.7+, designed for two people to run their own private corner of the internet. I deployed it on a shared hosting account in under 20 minutes—no frontend framework, no build step, just upload and configure. The package includes 7 core modules: status posts with emoji moods, waterfall photo albums with auto-compression, footprint maps for places you’ve visited together, a wishlist checklist, a comment section with AI auto-reply, dual light/dark themes, and a full admin panel. When I tested the AI integration, it supports OpenAI-compatible APIs (including SenseTime’s daily free tier) and can auto-reply to comments or even publish scheduled posts with custom personality prompts.
What makes this source code stand out on dajian168 in the 其它源码 category is the balance between simplicity and completeness. You get user registration, CSRF protection, sensitive word filtering, visitor logs, and file upload validation out of the box—features that would take days to wire up from scratch. The admin backend is modular: content, files, config, AI settings, and user management are all separated. If you’re looking for a source code download that you can hand to a non-technical partner and say “we’re live,” this fits the bill.
The source code ships with 7 ready-to-use modules, and the AI comment section is the most surprising one. Here’s what I found during testing:
One thing to check: the AI module expects an OpenAI-format API endpoint. If you’re using a different model provider, make sure it supports the /v1/chat/completions structure or you’ll need to write a thin adapter layer.
You can run this on a $3/month shared host or a Docker container—no Node.js, no build tools. Here’s the exact environment I used:
| Component | Minimum Version | Recommended |
|---|---|---|
| PHP | 7.4 | 8.0 or 8.1 (better performance) |
| MySQL | 5.7 | 8.0 |
| Web Server | Apache 2.4 / Nginx 1.18+ | Nginx with FastCGI cache |
| PHP Extensions | PDO, mysqli, gd, mbstring | Same + opcache |
| Disk Space | 50 MB (code) + album storage | 2 GB+ if you upload lots of photos |
Step-by-step: upload the files via FTP or Git, create a MySQL database, import the provided .sql schema file, edit config.php with your database credentials, and visit /install in your browser to finalize. The installer creates the default admin account and writes the base config. In my test, the whole process took 18 minutes including DNS propagation.
One pitfall: if you’re on shared hosting with open_basedir restrictions, make sure the upload and cache directories are within the allowed path. I hit a “Permission denied” error until I moved the uploads/ folder inside the web root.
This source code is ideal for couples who want a private space without third-party platforms, or developers who need a turnkey content-sharing site they can rebrand in an afternoon. Here are three scenarios where I’d recommend downloading this from dajian168:
The dual-theme system (light cream and dark mode) is CSS-only and toggles via a localStorage flag, so you can extend or replace it without touching JavaScript frameworks. I swapped the light theme colors in 10 minutes by editing one theme.css file.
Out of the box, the site works, but you should lock down 3 settings to avoid surprises.
words.txt file in the data/ folder or comment out the filter in functions.php. I left it on and it blocked one innocent phrase that happened to match a substring.Also verify that the uploads/ directory has write permissions (chmod 755 or 775) and that your PHP upload_max_filesize is at least 10 MB if you plan to upload videos.
Q: Can I run this source code on a free hosting plan or localhost?
A: Yes. I tested it on XAMPP (Windows) and a free 000webhost account. Just make sure PHP 7.4+ and MySQL 5.7+ are available. The only catch is that some free hosts block outbound HTTP requests, which will break the AI API and external image API features—everything else still works.
Q: Does the AI auto-reply cost money, and which models are supported?
A: The source code itself is free to download from dajian168, but the AI feature requires an API key from a large language model provider. It defaults to OpenAI-format endpoints, so GPT-3.5, GPT-4, or any compatible service (Cloudflare Workers AI, local Ollama with an OpenAI shim) will work. SenseTime’s daily free tier is explicitly mentioned in the docs. Cost depends on your provider and usage—expect a few cents per hundred comments if using GPT-3.5-turbo.
Q: How do I change the site name, logo, and default theme colors?
A: Log into the admin panel, go to Site Config, and edit the site title and upload a logo image (PNG or SVG). For theme colors, edit public/css/theme-light.css and theme-dark.css—no CSS preprocessor required. The color variables are declared at the top of each file; I changed the primary accent from pink to blue in under 5 minutes by swapping hex codes.
Original title: 情侣小窝/情侣记录网站源码 全开源 – 搭建168
Original excerpt:
简介:
情侣小窝
/
情侣记录
网站源码
全开源
一个适合两个人私藏的小站:写说说、传相册、记足迹、列心愿清单,还有带 AI
自动回复
的评论区——部署一次,就是属于你们的"爱情小窝"。
功能一览
说说 发布带图片/视频/音乐/标签的动态,支持心情 emoji
相册 上传照片自动压缩,瀑布流展示甜蜜瞬间
足迹 记录一起到过的地方(可配图)
清单 心愿单 / 待办事项,勾选完成有仪式感
评论区 时间+地区自动合并展示,支持回复、点赞、语音留言
AI 小窝 接入大模型 API:AI
自动回复
评论、AI 定时发布说说、自定义人设与记忆
双主题 奶白 / 黑夜主题一键切换
自定义页 后台可自由添加页面(支持轻量 Markdown)
用户系统 支持注册/登录,多用户共同维护
安全防护 CSRF 防护、敏感词过滤、访客记录、图片上传压缩与校验
访问统计 总访问量 / 今日访问量
管理后台 模块化管理:内容、文件、配置、AI、用户一应俱全
技术栈
后端:原生 PHP 7.4+(推荐 8.x),PDO + MySQL 5.7+
前端:原生 HTML/CSS/JS,无前端框架
部署:支持任意支持 PHP + MySQL 的虚拟主机 / VPS / 容器
外部依赖(可选):大模型 API(默认兼容商汤日日新
OpenAI
格式)、一言 API、背景图 API
图片:
Original screenshots:




⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.