Jump to content

addon module check whmcs version


el_makong

Recommended Posts

how do i check for whmcs version in my addon module?

for example:

if module activated, it check whmcs version at least version 6.0.

if lower than 6.0, module cannot be activated.(my module require pdo functions to work)

if equal or higher, module activated.

 

note:

it do check whmcs version. not module version(like the upgrade function).

Link to comment
Share on other sites

the

$CONFIG['Version']

returns nothing. in my code, for example:

function mymodule_test($vars){
echo $CONFIG['Version'];
}

but if :

function mymodule_test($vars){
echo $vars['version'];
}

it returns the module's version. not whmcs's

 

as the formatting, i could use

version_compare($whmcsversion<$requiredversion)

so no problem there.

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