bradandersen
Retired Forum Member-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by bradandersen
-
CPanel - Change Password Broken
bradandersen replied to bradandersen's topic in Troubleshooting Issues
However, if I login as the client into WHMCS I can change their password. -
When I try to "Change Password" on a Cpanel account I get the following error no matter what the password is: Server Command Error Passwords must be at least 5 Characters Thanks, Brad
-
Hello, If the username and/or password fields are entered, can WHMCS use those to create the account when I press the "Create" button? Otherwise, there are silly manual steps involved. Thanks, Brad
-
Sooooo..... The reseller account will typically only have one customer account and that customer will purchase all of the domain names that are purchased through WHMCS on your website - correct??? Trying to understand how the StarGate module works and it isn't making much sense. Thanks, Brad
-
Unable to save updated configuration in Admin Panel
bradandersen replied to newgenservices's topic in Using WHMCS
If I use a local ~/php.ini or ~/whmcs/php.ini file and set register_globals=on and run phpinfo() and confirm register_globals is on, I still cannot save data. I've got permissions set as in README.txt. I absolutely must turn it on in the global php.ini file and restart Apache in order to get it to work. I am running phpsuexec() on the server. Would you, for the love of god, please remove the need for register globals! Seriously, how many trouble tickets have you had dealing with this issue alone? How many hours could you have saved yourself and everyone else? And please don't state once again that it is not a poor practice - honestly, you don't have to define variables in C++, but it is a great practice. You don't have to drive with both hands on the wheel, but it is a really good idea. No one would say they codes 100% perfect all of the time - just please follow good practice. Seriously, when you are coding at 2am do you really think security and register globals is the first thing on your mind - probably not. Thanks - it's been a long night, Brad Thanks, Brad -
Ioncube & Register Global Questions
bradandersen replied to bradandersen's question in Pre-Sales Questions
Thus, I have a php.ini file in my whmcs directory (or any directory above it) that looks like this, and now everything works: >cat php.ini register_global=on [Zend] zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.8 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.8 zend_optimizer.version=3.2.8 zend_extension=/usr/local/ioncube/ioncube_loader_lin_4.4.so zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so -
Hello, I'm a bit confused on how "Configurable Option" and "Product Addon" work. I'm used to LPanel where the package details are listed for each client and you can modify them and push them to WHM. For example, if a customer orders extra disk space or bandwidth - how does that customer get that extra disk space? Do I have to create a custom package with their extra disk space and/or bandwidth and then change their package? This could lead to hundreds of different combinations and packages. Can't I modify the different package options for each client? Or, what am I not understanding about Options and Addons? Do I need to make changes in WHM instead? The problem is that WHMCS should be the master record and contain the true account information. And, since creating a new package in WHMCS doesn't create one in WHM - that would be an issue. Thanks, Brad
-
Has there been any movement on the WHM Package Import script? Thanks, Brad
-
State Drop-Down List in Order Form!
bradandersen replied to bradandersen's topic in Third Party Add-ons
<table> {if $taxstatecheck}<tr><td width=100>{$LANG.clientareastate}</td><td> {php} $state_list = array('AL'=>"Alabama", 'AK'=>"Alaska", 'AZ'=>"Arizona", 'AR'=>"Arkansas", 'CA'=>"California", 'CO'=>"Colorado", 'CT'=>"Connecticut", 'DE'=>"Delaware", 'DC'=>"District Of Columbia", 'FL'=>"Florida", 'GA'=>"Georgia", 'HI'=>"Hawaii", 'ID'=>"Idaho", 'IL'=>"Illinois", 'IN'=>"Indiana", 'IA'=>"Iowa", 'KS'=>"Kansas", 'KY'=>"Kentucky", 'LA'=>"Louisiana", 'ME'=>"Maine", 'MD'=>"Maryland", 'MA'=>"Massachusetts", 'MI'=>"Michigan", 'MN'=>"Minnesota", 'MS'=>"Mississippi", 'MO'=>"Missouri", 'MT'=>"Montana", 'NE'=>"Nebraska", 'NV'=>"Nevada", 'NH'=>"New Hampshire", 'NJ'=>"New Jersey", 'NM'=>"New Mexico", 'NY'=>"New York", 'NC'=>"North Carolina", 'ND'=>"North Dakota", 'OH'=>"Ohio", 'OK'=>"Oklahoma", 'OR'=>"Oregon", 'PA'=>"Pennsylvania", 'RI'=>"Rhode Island", 'SC'=>"South Carolina", 'SD'=>"South Dakota", 'TN'=>"Tennessee", 'TX'=>"Texas", 'UT'=>"Utah", 'VT'=>"Vermont", 'VA'=>"Virginia", 'WA'=>"Washington", 'WV'=>"West Virginia", 'WI'=>"Wisconsin", 'WY'=>"Wyoming"); $this->assign('states',$state_list); {/php} {html_options name=state options=$states selected=$state} </td> </tr>{/if} {if $taxcountrycheck}<tr><td>{$LANG.clientareacountry}</td><td>{$clientcountriesdropdown}</td></tr>{/if} </table> -
How do I set a form value to that of a smarty value. For example, there is a smarty variable ($state="TX"), but the form <input type=select name=state> does not maintain the form state. How can I set the form value state to the smarty $state value? e.g. form.state.value=$state. The problem is, each time I go back to orders-stepthree.tpl the state is not maintained. Or, can I create an array inside the template because the .php file is ioncube encoded, e.g.: {html_options name=state selected=$state values=[1,2,3] output=[one,two,three]} My only other painful option is: <select name=state> <option value="TX" {if $state eq "TX"} selected {/if}>Texas</option> <option value="CA" {if $state eq "CA"} selected {/if}>California</option> .... Thanks, Brad
-
Ioncube & Register Global Questions
bradandersen replied to bradandersen's question in Pre-Sales Questions
Hi Adam, Thank you, I'm glad to hear that WHMCS is security minded. However, I am still having problems even after having copied the new loaders to .../billing and .../install: Site error: the file /home/aanetsyn/public_html/billing/install/install.php requires the ionCube PHP Loader ioncube_loader_lin_4.4.so to be installed by the site administrator. Okay, the problem was that I had local copies of php.ini with register_globals=on in the billing and install directories. I modified the global system php.ini and removed the local copies and now it is working just fine. Thanks, Brad -
Hello, I have Ioncube installed and working just fine, but the 3.1.1 install script does not want to believe it: Site error: the file /home/aanetsyn/public_html/billing/install/install.php requires the ionCube PHP Loader ioncube_loader_lin_4.4.so to be installed by the site administrator. But Ioncube is working just fine: # php ioncube-encoded-file.php This file has been successfully decoded. ionCube Loaders are correctly installed An ionCube Loader is already installed and run-time loading is unnecessary. Encoded files should load without problems. Zend is installed and using this config in php.ini: [Zend] zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2_6_2 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2_6_2 zend_optimizer.version=2.6.2 zend_extension=/usr/local/ioncube/ioncube_loader_lin_4.4.so zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so Also, I really hope you understand the security risks of using "Register Globals = On". This is the same VERY POOR security practice that allowed LPanel to be hacked so easily. If you can modify your code to NOT use Register Global, then I would highly recommend it. Thanks, Brad
