I am only using two registrars and wanted to get rid of all the other ones in the drop downs when doing a manual registration/transfer of a domain. This also applies to all modules, including payment gateways and such.
Go to your /whmcs/modules directory and make a new directory called registrars_unused
Now move all the registrar folders in [More...]
The index.php in the template directory only protects you if someone enters the root of a particular directory. However if they know the exact file name they are looking for, it is very possible that the contents of the file will be output into the browser. Particularly for Smarty .tpl files.
I only thought about this [More...]
First find the header.tpl file in your templates folder.
Now go down to the clientarealinks paragraph and find the line that looks like :
Code:
<a href=”affiliates.php”><img src=”images/affiliates.gif” border=”0″ hspace=”5″ alt=”" />{$LANG.affiliatestitle}</a>
Now replace that line with the following code
Code:
{* Check for active affiliate *}
{php}
extract($this->_tpl_vars);
$query = ‘SELECT count(*) as count FROM tblaffiliates WHERE clientid = ‘.$clientsdetails['userid'];
$result = mysql_query ($query);
$data [More...]