70 lines
2.6 KiB
Markdown
70 lines
2.6 KiB
Markdown
|
||
## 📘 PicHost Image Hosting
|
||
| Free | Open Source | Stable | Feature-rich | Practical | API | PHP |
|
||
|
||
  
|
||
|
||
[](http://leonmmcoset.jjxmm.win:2000/odoorbell/image-pichost/src/branch/main/README.md) [](http://leonmmcoset.jjxmm.win:2000/odoorbell/image-pichost/src/branch/main/README-en.md)
|
||
|
||
---
|
||
|
||
### 🤔 Why Did I Create This Project?
|
||
Current image hosting services often require various PHP functions and complex configurations, with inconsistent quality. I wanted to develop a purely handcrafted, open-source image hosting platform. Writing the code myself is also more secure.
|
||
|
||
### 😘 Acknowledgments
|
||
Thanks to the users in NodeLoc, whose support motivated me to keep going and encouraged me to open-source the project early.
|
||
|
||
### 😜 Installation
|
||
Hmmm... It is not recommended to download using Git commands to avoid permission issues. Simply upload the files directly to your server, and it's ready to use!
|
||
|
||
Prerequisites:
|
||
|
||
- PHP 8.2 or similar (not confirmed)
|
||
- MySQL support
|
||
- Looking for experts to help test it
|
||
|
||
1. Modify `config.php`
|
||
After setting up the database, go to lines 15-18 of the file:
|
||
```
|
||
HOST → Database domain
|
||
NAME → Database name
|
||
USER → Database username
|
||
PASS → Database password
|
||
```
|
||
PS: Be careful when editing the file; do not delete any other symbols.
|
||
|
||
Go to lines 20-24:
|
||
```
|
||
WEB → Website URL
|
||
SITE → Site name
|
||
(↓ The values below can be filled in later or left empty)
|
||
MAX_FILE_SIZE → X*X*X
|
||
ALLOWED_TYPES → ['jpg', 'jpeg', 'png', 'gif', 'webp']
|
||
```
|
||
|
||
Go to lines 26-33 (if you don’t know how to fill these, search for tutorials online):
|
||
```
|
||
EHOST → Email domain provider
|
||
NUM → Email port number
|
||
EUSER → Recipient email
|
||
EPASS → Authorization code
|
||
FUSER → Sender email
|
||
FNAME → Sender name
|
||
SECURE → Protocol (ssl for encrypted, tls for unencrypted)
|
||
```
|
||
|
||
For the rest, fill them out only if you know how; otherwise, it's best not to touch them.
|
||
|
||
2. `languages/zh-CN.php`
|
||
This is the Chinese language pack. You can fill in your own `site_title`.
|
||
|
||
## 🌟 Issues (Problems)
|
||
It’s best to report any issues in the `issue` section, as NL (NodeLoc) might not always check.
|
||
|
||
## ✈️ Updates
|
||
There is no automatic update feature; you need to download the new version manually.
|
||
|
||
---
|
||
|
||
Give it a Star, please! awa
|
||
Thank you |