Hope there are no loopholes, the code is simple but messy. . . . . The experts laughed and declared that this program interface is from "Fengyun Life" website. I will not design and beautify it. Thank you to the author for providing the complete PSD file!
Some notes:
1. The $dir variable in config.php must be consistent with the image directory (level one).
2. $default= pic.php?dir=MjAwNy8wMDE= in index.php; is the directory category displayed by default on the homepage. MjAwNy8wMDE= corresponds to the base64 encoding of "Level 1/2007/001"
3. After setting the data in the first step, upload files in the second- and third-level directories. The info.txt in the third-level directory is the classification description.
4. Run create.php, the image list file will be generated, rewrite config.php and automatically rename the image directory (level 1). Please note: Do not leave the image directory in a locked state when performing this step, otherwise the program will fail. , remember! ! !
5. If the third step fails due to locking, please perform the first step again.
6. I forgot what I thought at the time, and divided the directory into three levels. It is best to use numbers for the second and third levels, otherwise the file names may be illegal when generating the list file.
7. It is recommended that after step 3 is completed, the create.php file should be renamed or deleted.