|
rozdwojeniejazni Wanderer
Joined: 13 Aug 2011 Posts: 74
|
Posted: Sat Feb 25, 2017 6:08 am
Recognize / differentiate CMUD pro or basic |
Hi,
How can I check if the script is running in CMUD Pro version or the regular CMUD? Based on that I could run a more advanced or simplified version of the script. It surely was mentioned in the forums, but I cannot find it. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Feb 25, 2017 12:50 pm |
I don't know of any specific way. I think there are no features that are scripting exclusive and different between the 2 versions. I think the Pro version may include support for the zMapper plugin capabilities without needing zMapper installed, and the regular version would need zMapper to enable those abilities. The other differences are not script controllable or accessible.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
rozdwojeniejazni Wanderer
Joined: 13 Aug 2011 Posts: 74
|
Posted: Sun Feb 26, 2017 7:27 pm |
Solution:
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<func name="cmudpro" copy="yes">
<value>#if (%null(%url("http://www.google.com"))) {
#return false
} {
#return true
}</value>
</func>
</cmud> |
Example usage:
Code: |
#if (@cmudpro()) {
#echo {This is Cmud Pro}
} {
#echo {This is Cmud Noob}
} |
|
|
|
|
|
|