webERP Forum

Full Version: $AllowCompanySelectionBox = FALSE in login.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all:

If we set $AllowCompanySelectionBox = FALSE, it means we don't want the user to be able to select the company database they need to connect. Most probably because there's only 1 company database.

Then, why do we still show the name of the database to the final user? Do we want to give our database name to suppliers and customers (if we allow them to login)?

Should we comment out line 56 on login.php?

Code:
echo '<input type="text" name="CompanyNameField" value="' . $DefaultCompany . '" />';

In some shared hosting environments, database names are defined by the hosting company, so it does not even have to be the same as the company name. Example: hostgator names DB's as "username_databasename".