Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$AllowCompanySelectionBox = FALSE in login.php
05-17-2013, 11:24 AM, (This post was last modified: 05-17-2013, 11:25 AM by PakRicard.)
#1
$AllowCompanySelectionBox = FALSE in login.php
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".
Regards,
Pak Ricard
Reply


Messages In This Thread
$AllowCompanySelectionBox = FALSE in login.php - by PakRicard - 05-17-2013, 11:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)