You are here

function security_review_get_last_check in Security Review 6

Same name and namespace in other branches
  1. 7 security_review.module \security_review_get_last_check()

Retrive the result from the last run of a security check.

16 calls to security_review_get_last_check()
security_review_check_admin_permissions_help in ./security_review.help.inc
security_review_check_comments_help in ./security_review.help.inc
security_review_check_email_passwords_help in ./security_review.help.inc
security_review_check_error_reporting_help in ./security_review.help.inc
security_review_check_failed_logins_help in ./security_review.help.inc

... See full list

File

./security_review.module, line 115
Site security review and reporting Drupal module.

Code

function security_review_get_last_check($namespace, $check_name) {
  $check = db_fetch_array(db_query("SELECT namespace, reviewcheck, result, lastrun, skip, skiptime, skipuid FROM {security_review} WHERE namespace = '%s' AND reviewcheck = '%s'", $namespace, $check_name));
  return !empty($check) ? $check : NULL;
}