diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc
index ed5943db31f30d09c2302bdc5f088ffa289933e3..c0690c1cde3cc3bc65be1f3c96ccdb5202141fd3 100644 (file)
var $ignore_account= TRUE;
var $plugin= array();
var $plugin_name= array();
+ var $CopyPasteVars = array("plugin","plugin_name");
+
function connectivity ($config, $dn= NULL)
{
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
$display= "";
/* Prepare templating */
/* Do we represent a valid account? */
if ($this->parent == NULL){
- $enabled= false;
+ $enabled= true;
foreach ($this->plugin_name as $name){
if ($this->plugin[$name]->is_account){
$enabled= true;
}
}
if (!$enabled){
- $display= "<img src=\"images/stop.png\" align=center> <b>".
+ $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no connectivity extensions.")."</b>";
$display.= back_to_main();
return ($display);
/* Execude objects */
$is_first= true;
foreach ($this->plugin_name as $name){
- if (!$this->plugin[$name]->is_account && $this->parent == NULL) continue;
if (!$is_first){
$display.= '<p class="seperator"> </p>';
} else {
function check()
{
- $message= array();
+ $message= plugin::check();
foreach ($this->plugin_name as $name){
$tmp= $this->plugin[$name]->check();
}
}
+ /* Prepare the connectivity obj
+ */
+ function PrepareForCopyPaste($obj)
+ {
+ $tmp = $this->plugin;
+ plugin::PrepareForCopyPaste($obj);
+ $this->plugin = $tmp;
+ foreach($obj->plugin as $key => $plug){
+ $this->plugin[$key]->PrepareForCopyPaste($plug);
+ }
+ }
+
+
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: