Method to add a log message to the database
log_table, along with username/email and ip address.
Class: bb_main, called as $main
File: bb_main.php (php)
function log($con, $message, $username = NULL, $email = NULL)
$main->function log($con, $message, $username, $email);
Action: Inputs a log entry into the
$con (database connector)
Valid database connection
Message to be logged in database.
$username (string default global $username)
If user is logged in, the username of the current user, or the username used in the login attempt.
$email (string default global $email)
If user is logged in, the email of the current user.