GetSimple Support Forum

Full Version: GetSimple version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the best method for a plugin to find out, if it's running in GetSimple 3.0 or lower?

Maybe the best way, but you need to define a function (and pollute the name space):

Code:
function myplugin_isV3() {
  include(GSADMININCPATH.'configuration.php');
  return substr(GSVERSION,0,1) == '3';
}

$isV3 = myplugin_isV3();

Fast method working only in the front-end:

Code:
$isV3 = function_exists('get_site_version');

Fast method in the back-end?

BTW: in Extend I would like to see a version option "2.03 + 3.0".