You are here

function acquia_spi_get_super_name in Acquia Connector 6.2

Same name and namespace in other branches
  1. 7.3 acquia_spi/acquia_spi.module \acquia_spi_get_super_name()
  2. 7.2 acquia_spi/acquia_spi.module \acquia_spi_get_super_name()

Determine if the super user has a weak name

Return value

boolean

1 call to acquia_spi_get_super_name()
acquia_spi_get in acquia_spi/acquia_spi.module
Gather site profile information about this site.

File

acquia_spi/acquia_spi.module, line 1200
Send site profile information (NSPI) and system data to Acquia Insight.

Code

function acquia_spi_get_super_name() {
  $sql = "SELECT name from {users} WHERE uid = 1 AND (name LIKE '%admin%' OR name LIKE '%root%')";
  $result = db_result(db_query_range($sql, 0, 1));
  if ($result) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}