Lawrence Posted March 4, 2009 Share Posted March 4, 2009 Hey guys, Here is a beta of the OnlineNIC Expiry Date Sync module that I mentioned this past weekend. Just upload the "onlinenicsync" folder into your WHMCS folder and set up a cron job to call onlinenicsync.php (no special parameters are needed, but you should set cron to e-mail you the output) There is one variable in this file $myonlinenic_syncduedate which controls whether or not the Next Due Date is synced to the Expiry Date. Everything else is pulled from the WHMCS database. Note that domains with unpaid invoices will not be included in the sync, as it may mess up WHMCS until the next time the cron is run. Please leave any feedback or bug reports here. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted April 14, 2009 Share Posted April 14, 2009 We are testing now. Hopefully it will work. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted April 14, 2009 Author Share Posted April 14, 2009 It uses the OnlineNIC API and the variables you set for the "onlinenic" registrar module, so I see no reason it should not work. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted April 15, 2009 Share Posted April 15, 2009 How is it if we are using WHMCS in a sub-folder /clients? We put the 3 files in this folder /clients Shouldn't we edit onlinenicsync.php: // include WHMCS and OnlineNIC base functions require("../dbconnect.php"); require("../includes/functions.php"); require("../init.php"); require("base_functions.php"); // XML composition class include_once("xml.php"); Please advise. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted April 15, 2009 Share Posted April 15, 2009 We are getting this in the cron job: X-Powered-By: PHP/4.4.6 Set-Cookie: PHPSESSID=2ac548c5d18258d65b7a642260d29711; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=iso-8859-7 But the expiration dates are not getting updated. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted April 17, 2009 Author Share Posted April 17, 2009 We are getting this in the cron job: X-Powered-By: PHP/4.4.6 Set-Cookie: PHPSESSID=2ac548c5d18258d65b7a642260d29711; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=iso-8859-7 But the expiration dates are not getting updated. I have attached the one that I am using now and can confirm is indeed working. In the ZIP, there is a folder called "onlinenicsync". Upload that folder to the folder where your WHMCS is installed. From there, just create a cron job to call onlinenicsync.php every few days or so. Also, make sure your firewall allows outgoing connections on port 20001. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted April 25, 2009 Share Posted April 25, 2009 I have attached the one that I am using now and can confirm is indeed working. In the ZIP, there is a folder called "onlinenicsync". Upload that folder to the folder where your WHMCS is installed. From there, just create a cron job to call onlinenicsync.php every few days or so. Also, make sure your firewall allows outgoing connections on port 20001. I just wonder if this script works with php4.x I was not able to make it work yet. :roll: 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted April 25, 2009 Author Share Posted April 25, 2009 I just wonder if this script works with php4.x I was not able to make it work yet. :roll: It is not supported for PHP 4.x. I believe the XML class included requires PHP 5. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted April 30, 2009 Share Posted April 30, 2009 It is not supported for PHP 4.x. I believe the XML class included requires PHP 5. Now my WHMCS is in a server php5+, mysql 5+, apache 2+ and the script is not working yet. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted May 4, 2009 Author Share Posted May 4, 2009 Now my WHMCS is in a server php5+, mysql 5+, apache 2+ and the script is not working yet. Did you follow my original instructions? In the ZIP, there is a folder called "onlinenicsync". Upload that folder to the folder where your WHMCS is installed. From there, just create a cron job to call onlinenicsync.php every few days or so. Also, make sure your server's firewall allows outgoing connections on port 20001. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted May 6, 2009 Share Posted May 6, 2009 Did you follow my original instructions? Yap, as instructed. I will delete everything and re-install, let's see. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted May 7, 2009 Author Share Posted May 7, 2009 Actually, could you post the command for the cron job itself? 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted May 11, 2009 Author Share Posted May 11, 2009 Just discovered this... in onlinenicsync.php, replace this: require("../init.php"); with this: //require("../init.php"); and see if it works then (run it from the command line using ssh). 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted May 12, 2009 Share Posted May 12, 2009 Just discovered this... in onlinenicsync.php, replace this: require("../init.php"); with this: //require("../init.php"); and see if it works then (run it from the command line using ssh). Ok, I will try. 0 Quote Link to comment Share on other sites More sharing options...
cmo Posted May 12, 2009 Share Posted May 12, 2009 Hey good news! It worked. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted May 15, 2009 Author Share Posted May 15, 2009 Thanks for posting back. I will be releasing an updated version in the next few days, along with DistributeIT sync addon. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.