Jump to content

OnlineNIC Expiry Date Syncronization Module


Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...
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::roll:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated