webERP Forum
$AllowCompanySelectionBox = FALSE in login.php - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Development Discussion & Specification (http://www.weberp.org/forum/forumdisplay.php?fid=10)
+--- Thread: $AllowCompanySelectionBox = FALSE in login.php (/showthread.php?tid=898)



$AllowCompanySelectionBox = FALSE in login.php - PakRicard - 05-17-2013

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".