Sapphire Guestbook PHP version v3.0 is written in native PHP and passed debugging under PHP5.4~php7.x. This guestbook uses UTF-8 encoding.
This is my first time making a guestbook, and it is also a guestbook for beginners. The purpose is to make a guestbook that is easy to configure and easy to use.
include/config1.php is the configuration file for database connection parameters, include/config2 is the configuration file for message board parameters, include/configpass.php is the configuration file for guestbook administrator and password, include/config1.php can be edited directly or in Modify during installation. include/config2.php and include/configpass.php can be edited directly, or you can log in to the guestbook backend to make changes.
Please ensure that the above three files are writable, and then run install.php to install. To modify the opening and closing pages of the guestbook, please modify include/header.php and include/footer.php
This guestbook implements the message audit switch function, private message function, reply function and prevents SQL injection. The username and password of the guestbook, the background and text color of the guestbook can be changed in the background. This guestbook does not support html language, but supports input of ubb code.
To log in to the background, please visit adminlogin.php. The default user name is admin and the default password is pass.
Some netizens asked me for the sql file of the database after joining me on QQ. Let me emphasize again: the database will be automatically created after running install.php, filling in the correct mysql username and password and clicking the button.
v3.0 update instructions:
1. Added message recycling bin
2. Avatars can be switched freely. You can upload your own avatar and set it as a special avatar for messages.
3. Provides a verification code switching function, so you can choose the verification code you like to use.
4. Added ubb code support.
5. Automatically convert the html code into the corresponding character entity, that is, directly display the html without executing the tags inside.