function acquia_spi_get_super_name in Acquia Connector 7.2
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_get_super_name()
- 7.3 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 1293 - 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%')")
->fetch();
if ($result) {
return TRUE;
}
else {
return FALSE;
}
}