AdminPro is a user authentication class based on MySQL and the PHP Session functions. It was written for Web sites that need some password protected areas. It includes a user management application script and a MySQL table setup application script. The class can allow a user to login and logout via Web-based forms, expire the session of an authenticated user if it passed a given session timeout, display error messages and point the user to the login page when the user is not authenticated or the login session expired, and check whether a logged user has administrator or user group privileges
MySQL Dialog is a simple MySQL database access wrapper class to execute SQL queries and display the results in HTML tables. The class connects to a MySQL server, sends SQL statements, and gets the results as an array. A table with the data from the result sets can also be displayed. The class may optionally return error messages on failure based on the mysql_error() and user defined error messages.
ActiveDBLib is a PHP class to access MySQL or other databases by using various database abstraction libraries. Its primary intention is to hide the differences between the different abstraction libraries, and to provide standard methods for the database connection, query, and result operations. It currently supports the ADODB, PEAR:DB, and Metabase libraries. This way, not only a project can be database independent, but also be database abstraction library independent.
activeMailLib is a PHP class that can validate email addresses and send MIME email messages using the PHP mail() function. It can generate text or HTML email messages with user-defined headers, body parts, and character encoding. File parts can also be attached to the messages. The class can also perform email address validation based on a regular expression. It can optionally check the addresses with the destination SMTP server using the PHP getmxrr() function on Unix-like systems.
Many Web applications need to execute periodic tasks. Some operating systems come with programs, like cron or at, to execute scheduled tasks. However, under some Web hosting environments these programs cannot be used. Virtual Cron provides an alternative solution that can be used in more restricted hosting environments. It uses files to keep track of the last time when a periodical task was executed. The site Web page scripts can use the class to check these files. The class can tell when it is time to execute a task again. When it is time, the same script can execute the scheduled task without depending on external programs.
Form Spam Bot Blocker is a PHP class that can generate forms that prevent submission by spam robots without requiring human users to enter special values. It generates hidden inputs for forms that have special values that are verified on the server after the form is submitted to eventually detect whether the form was sent by a spam robot.
AdminPro Class v1.3 new functions:
The version 1.3 can additionally:
- check whether a logged user has user group privileges
- allow a user to use some cookie based "Remember Me" function