Hi,
here is a little - for free - plugin to check the local/online-status.
Example: my ecard plugin it's only a online plugin. In a offline (local) tour, the php interface is not available.
With the isLocal plugin you can check the offline-status (local view) and hide the ecard button or disable it.
Usage:
|
Quellcode
|
1
2
3
4
5
6
|
<plugin name="islocal" url="islocal.swf"
setglobalvar="true"
keep="true"
preload="true"
/>
|
Now you can test the status.
If setglobalvar="true":
|
Quellcode
|
1
|
if (islocal, trace("local view"); );
|
or you get the plugin attribute:
|
Quellcode
|
1
|
if (plugin[islocal].islocal == true, trace("local view"); );
|
Note: preload="true" and keep="true" recommended.
Download:
http://ecardplugin.falkomueller.com/files/islocal_plugin.zip