function acquia_spi_get_super_name in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_get_super_name()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_get_super_name()
Determine if the super user has a weak name.
Return value
bool True or false.
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 1449 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function acquia_spi_get_super_name() {
$result = db_query("SELECT name FROM {users} WHERE uid = 1 AND (name LIKE '%admin%' OR name LIKE '%root%') AND CHAR_LENGTH(name) < 15")
->fetch();
if ($result) {
return TRUE;
}
else {
return FALSE;
}
}