battisti
Retired Forum Member-
Posts
21 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by battisti
-
the patch basicaly is a verify of access rights. if ( !isset($_SESSION["uid"]) && !isset($_SESSION['adminid']) ) { header("Location: ../../../clientarea.php"); exit; } $GATEWAY = array(); But in many cases the we send for our client the link to open direclty the boleto, in this case use only $GATEWAY = array(); these will prevent the auto load variable Its the real problem, auto load variable.
-
i try many time but NOT recive the PASSWORD! someone have an e-mail please?
-
after the update to the new version 4.2 this function break and now the update client api not works!
-
Very confuse this part of the software! The error " Department Not Found. Exiting." no help anything!
-
The same problem but the url open the logo corretly http://financeiro.sitekit.com.br/images/logo.jpg but when i try to generate an invoice TCPDF ERROR: [image] No such file or directory in /home/jms/public_html/financeiro/images/logo.jpg Error! some idea?
-
when i use the client area works but using the php API the creation of the cpanel account didn't works someone can help?
-
thx for the help webhost but the problem is when i use the whmcs php API. Whe i create the site using the whmcs client front end the cpanel account is create correctly but when i create it using the api the order is created and activated but the cpanel account wasn't created Someone alredy use the addOrder in a cPanel host?
-
I have exctly the same problem, when i create a account using the API the order are cretaed and i accept then with the API but the account in whm wasn't create! Some idea?
-
i see in the source of the api and its not possible to insert others sources of client, a pity!
-
i think its natual of foruns, in many times we find the soluction feal moments after post the question in the forum, give the answers is a comunity beneficie help me ! thx
-
I use the php api and i creat an order and accept and order, works fine but the whmcs wan not creating the cPanel account to this order. If i by the produtc using the shopt cart of whmcs the cPanel account is create normaly. I note who in Products/Services the field Username and Password was blank when i create the order with the API. OBS: using the api the status of order was change to acept, the only problem is the no creation of the cpanel account Someone has the same problem? or any idea?
-
"billingcycle" of addOrder API has no effect! Please advise! Thanks!
battisti replied to cmdr_gabe_e's topic in Using WHMCS
probabily you are using the wrong name for the billingcicle, see the correct name in manual, OR in the configuration product the cicle you are using was with - value, its menas then the cicle was no enablet to the progect. -
Problem with API function addorder to add a domain order
battisti replied to ipaddress's topic in Using WHMCS
you need to set the values of registration domain in setup / domain pricing -
unfortunly you can't set the groupid of a client with the api, the only fields you can use are there in the manual, if up need this i suggest you create you own function and update this field after the return of the native api!
-
The API are basic and many fetures need to be implemented manualy, now i'm creating my own API, To start creat i suggest <? $silent = 'true'; include '../dbconnect.php'; include 'functions.php'; $query = ' SELECT * FROM tbladmins WHERE username=\'' . $_POST['username'] . '\' AND password=\'' . $_POST['password'] . '\' AND roleid=\'1\''; $result = mysql_query ($query); $data = mysql_fetch_array ($result); $adminid = $data['id']; if (!$adminid) { echo 'result=error;message=Authentication Failed'; exit (); } switch ($_POST['action']){ case 'youtfunction':
-
Im using the whmcs API to insert a client. The sample in the documentation is: $postfields["action"] = "addclient"; $postfields["firstname"] = "Cliente da Alkantara"; $postfields["lastname"] = "User"; $postfields["companyname"] = "WHMCS"; $postfields["email"] = "alkata@whmcs.cons"; $postfields["address1"] = "123 Demo Street"; $postfields["city"] = "Demo"; $postfields["state"] = "Florida"; $postfields["postcode"] = "AB123"; $postfields["country"] = "US"; $postfields["phonenumber"] = "123456789"; $postfields["password2"] = "demo"; $postfields["currency"] = "1"; BUT i need to insert to a client and put then in a group! ithe na of the fild in the database is groupid. i try put it in the vector but no work. $postfields["groupid"] = "2"; The groupid 2 existis in database but the API didn't insert this value on the field. Some idea?
-
Finaly i found, the problem is in documentation, in the link http://wiki.whmcs.com/API:About is write When adding an API admin user, the user only needs access to the API. You must also setup the IP(s) you will be connecting from in General Settings > Other. Failure to do this will result in an error Invalid IP BUT TO CONFIGURE THE IP IS IN THE TAB SECURITY
-
I'm using whcms 4.1 version and i don't found this configuration, whem i put the ip number?
