Show warning message someone tries to use root as username for a client database when the database prefixes are removed.
| | |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | | |
| | | if($data["new"]["database_user"] == 'root') { |
| | | $app->log('User root not allowed for Client databases',LOGLEVEL_WARNING); |
| | | return; |
| | | } |
| | | |
| | | //* Connect to the database |
| | | $link = mysql_connect($clientdb_host, $clientdb_user, $clientdb_password); |
| | |
| | | return; |
| | | } |
| | | |
| | | if($data["new"]["database_user"] == 'root') { |
| | | $app->log('User root not allowed for Client databases',LOGLEVEL_WARNING); |
| | | return; |
| | | } |
| | | |
| | | //* Connect to the database |
| | | $link = mysql_connect($clientdb_host, $clientdb_user, $clientdb_password); |
| | | if (!$link) { |