Post Reply 
 
Thread Rating:
  • 0 Votes - 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.)
Post: #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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)