summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 835d5ee)
raw | patch | inline | side by side (parent: 835d5ee)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 May 2007 09:26:57 +0000 (09:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 May 2007 09:26:57 +0000 (09:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6433 594d385d-05f5-0310-b6e9-bd551577e9d8
37 files changed:
diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index 22d218511eb64d3c5dc4a4faca52681d058779b0..ef4308c47d3e9985679c0913d443adc6f7adc93e 100644 (file)
var $attributes= array("cn", "description");
var $objectclasses= array("top", "device", "ipHost", "ieee802Device");
var $netConfigDNS;
+ var $view_logged = FALSE;
function componentgeneric ($config, $dn= NULL, $parent= NULL)
{
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses, true);
/* Save dn for later references */
$this->orig_dn= $this->dn;
-
- if($this->is_account){
- @log::log("view","component/".get_class($this),$this->dn);
- }
}
+
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","component/".get_class($this),$this->dn);
+ }
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){
diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc
index 937323083d3a6aa346e565916c11ffd54955e831..03e5712dbbc2b2cdeda4bb43aada367d526e93ca 100644 (file)
var $renameTypeDialog = false;
var $renameOSDialog = false;
var $select_type ;
+ var $view_logged = FALSE;
/* Not necessary, cause we use mysql databse */
var $objectclasses= array("whatever");
$this->name = $this->dn;
$this->orig_dn = $this->dn;
$this->initially_was_account = $this->is_account;
-
- if($this->is_account){
- @log::log("view","undefined/".get_class($this),$this->dn);
- }
}
function execute()
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","all/".get_class($this),$this->dn);
+ }
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc
index fb8ce7e49ac8acbeb2b17e9e5ccf35c24fa7efa1..dd69e23012037cbca7ad17228d75b1104330ca77 100644 (file)
var $usedAttachments = array(); // Used Attachments
var $usedCartridges = array(); // Used Cartridges
+ var $view_logged = FALSE;
+
/* Contructor
Sets default values and checks if we already have an existing glpi account
*/
$this->name = $this->dn;
$this->orig_dn = $this->dn;
$this->initially_was_account = $this->is_account;
-
- if($this->is_account){
- @log::log("view","printer/".get_class($this),$this->dn);
- }
}
function execute()
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","printer/".get_class($this),$this->dn);
+ }
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
diff --git a/plugins/admin/systems/class_goCupsServer.inc b/plugins/admin/systems/class_goCupsServer.inc
index 62a15a9f3972be266e5b1c9ab6b2384f1de81586..b5d282a01dbd7c853a9b325b651e910788847087 100644 (file)
var $acl;
var $cn = "";
var $goCupsServerStatus = "";
+ var $view_logged =FALSE;
function goCupsServer($config,$dn)
{
function execute()
{
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$smarty = get_smarty();
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc
index f5628c10845a98ca040b181556832ca8489c9a51..c791b6eb8bf1cc45bac8cfdb198aa90ac2a3df23 100644 (file)
var $goFaxPassword = "";
var $goFaxServerStatus = "";
var $cn = "";
+ var $view_logged =FALSE;
function goFaxServer($config,$dn)
{
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* Assign acls */
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $name => $translation ){
diff --git a/plugins/admin/systems/class_goFonServer.inc b/plugins/admin/systems/class_goFonServer.inc
index 37f4b8ac9caa09c09e1ed6239ba1458fb634142b..7457444c8e796beb03b2eaed7a447a50903adaaa 100644 (file)
var $goFonAdmin = "";
var $goFonAreaCode = "";
var $goFonCountryCode = "";
+ var $view_logged =FALSE;
function goFonServer($config,$dn)
function execute()
{
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$smarty = get_smarty();
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc
index 152ed03d33d051f1d641fdbc9df79dea669461c9..ec35b1f24afc2d1d928ccc867a00a0bae0ae707b 100644 (file)
var $goGlpiAdmin ="";
var $goGlpiDatabase ="";
var $goGlpiPassword ="";
+ var $view_logged =FALSE;
function goGlpiServer($config,$dn)
function execute()
{
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$smarty = get_smarty();
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc
index 95d5d87dc3755c73eef15ac6c2f7f51db827366d..d08972ca7c4a5c3375a0444930434217d695c67e 100644 (file)
var $cyrusPop3 = false;
var $cyrusPop3SSL = false;
var $is_account = false;
+ var $view_logged =FALSE;
var $acl;
function execute()
{
$smarty = get_smarty();
-
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* set new status */
if(isset($_POST['ExecAction'])){
if(isset($this->Actions[$_POST['action']])){
diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc
index edcc58f0f7598121ec2fbf113e955b2d0f0e1f2e..51802b1cdca591fcb4b91a5003f416ad26adba3d 100644 (file)
var $goKrbRealm = "";
var $goKrbAdmin = "";
var $goKrbPassword ="";
+ var $view_logged =FALSE;
function goKrbServer($config,$dn)
{
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$tmp = $this->plinfo();
foreach($tmp['plProvidedAcls'] as $name => $translation){
$smarty->assign($name."ACL",$this->getacl($name));
diff --git a/plugins/admin/systems/class_goLdapServer.inc b/plugins/admin/systems/class_goLdapServer.inc
index f4b2dccf23d37d42348f0ef094b71897a7c99395..b8d151ee302d240185354e674cd58d134a6c9a9d 100644 (file)
var $cn = "";
var $goLdapServerStatus = "";
var $goLdapBase = "";
+ var $view_logged =FALSE;
function goLdapServer($config,$dn)
{
function execute()
{
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$smarty = get_smarty();
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc
index 77ac6250c8de2288e911d0dcd2c581636f7160e1..a28990812aa665c3363766540cc121b9b62ccc3c 100644 (file)
var $goLogDBServerStatus = "";
var $goLogAdmin = "";
var $goLogPassword = "";
+ var $view_logged =FALSE;
function goLogDBServer($config,$dn)
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $name => $translation){
$smarty->assign($name."ACL",$this->getacl($name));
diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc
index 0e28173b0aa80ac07cef411d43e74e1a5433e6eb..25d2fd827f0f50fac3b135c5aef5958039d4dd61 100644 (file)
var $Actions = array();
var $cn = "";
var $conflicts = array("goMailServer","kolab");
+ var $view_logged =FALSE;
function goMailServer($config,$dn)
{
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $name => $translation){
$smarty->assign($name."ACL",$this->getacl($name));
diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc
index d64c45d2c69a5d89446ea3e6022bc86630248d76..26434eefba5236985f1b2d056803b40b35c0bb37 100644 (file)
var $goNtpServerStatus= "";
var $acl;
var $cn = "";
+ var $view_logged =FALSE;
function goNtpServer($config,$dn)
{
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* Here we add a new entry */
if(isset($_POST['NewNTPAdd']) && $_POST['NewNTPExport'] != "" && $this->acl_is_writeable("goTimeSource")) {
$this->goTimeSource[$_POST['NewNTPExport']]= $_POST['NewNTPExport'];
index a73ff751e892762570f0c65d18844a3c0f74315d..bf4b63bcb6c9cfd0e010e468ff898100156cac71 100644 (file)
var $dn = NULL;
var $cn = "";
var $DisplayName = "";
+ var $view_logged =FALSE;
/* Construcktion */
{
plugin::plugin($config,$dn);
$this->DisplayName = _("Empty service");
-
- if($this->is_account){
- @log::log("view","server/".get_class($this),$this->dn);
- }
}
/* Create content */
function execute()
{
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$str ="<div style='width:100%; text-align:right;'>".
" <input type='submit' name='SaveService' value='"._("Save")."'> ".
" <input type='submit' name='CancelService' value='"._("Cancel")."'>".
diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc
index 11ed781bac2a98c8a39129cd864a8cd4cf892469..18f9d747bc48228f74cc6a6888d85eda06501651 100644 (file)
var $allow_mounts = false;
var $mounts_to_remove = array();
var $mounts_to_add = array();
+ var $view_logged =FALSE;
function goShareServer($config,$dn)
{
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
if((isset($_POST['DelNfsEnt']))&&(isset($_POST['goExportEntryList'])) && ($this->acl_is_writeable("name"))){
if($this->allow_mounts){
diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc
index a7cb30dce991777a9de423b8bfd09755a0df1f63..55781fbbac9046696acae00253d9bf27a2f26d70 100644 (file)
var $dialog = NULL;
var $ui = NULL;
var $acl = NULL;
+ var $view_logged =FALSE;
function gospamserver($config,$dn, $parent= NULL)
{
$display ="";
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* If displayed, it is ever true*/
$this->is_account =true;
diff --git a/plugins/admin/systems/class_goSpamServerRule.inc b/plugins/admin/systems/class_goSpamServerRule.inc
index 178269534bc3d159d37e6fa2290a0951ce15e588..2adc6886ee1f04ae2eed196a7943fd3f9d487202 100644 (file)
var $rule = "";
var $orig_name = "";
+ var $view_logged =FALSE;
function goSpamServerRule($config,$dn,$name = "",$rule ="")
{
function execute()
{
$smarty = get_smarty();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}
diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc
index 382d594f0b23d736c46809b3588853629ac33d30..4c242a3291b264190c0570b74f864aef14e83038 100644 (file)
var $acl;
var $cn = "";
var $goSyslogServerStatus = "";
+ var $view_logged =FALSE;
function goSyslogServer($config,$dn)
{
function execute()
{
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
+
$smarty = get_smarty();
return($smarty->fetch(get_template_path("goSyslogServer.tpl",TRUE,dirname(__FILE__))));
}
diff --git a/plugins/admin/systems/class_goTerminalServer.inc b/plugins/admin/systems/class_goTerminalServer.inc
index 1b1eeecf5fa72a53953d8e33f155adb93229cd9d..d6afed9fac5f61145f59467c2ce5a1dae7ce3f2e 100644 (file)
var $goTerminalServerStatus = "";
var $goXdmcpIsEnabled = false;
var $goFontPath = "";
+ var $view_logged =FALSE;
function goTerminalServer($config,$dn)
function execute()
{
$smarty = get_smarty();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$tmp = $this->plinfo();
foreach($tmp['plProvidedAcls'] as $name => $translation){
diff --git a/plugins/admin/systems/class_goVirusServer.inc b/plugins/admin/systems/class_goVirusServer.inc
index a469988f8cfde689a48031d4660db6041a38d3c1..287f915d5b0da40d0444d2923a474ce40a8e1839 100644 (file)
var $avUser = "";
var $avHttpProxyURL = "";
var $avDatabaseMirror = "";
+ var $view_logged =FALSE;
function govirusserver($config,$dn, $parent= NULL)
{
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
+
/* Set acls */
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $name => $translation) {
diff --git a/plugins/admin/systems/class_gosaLogServer.inc b/plugins/admin/systems/class_gosaLogServer.inc
index 8bd11cc1b3e148616c4339927deb1b360d15ba61..6bb2b60ced11ac3c7aff90e01c54979e6efd12fc 100644 (file)
var $goLogDBUser = "";
var $goLogDBPassword = "";
var $goLogDB = "";
+ var $view_logged =FALSE;
function gosaLogServer($config,$dn)
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $name => $translation){
$smarty->assign($name."ACL",$this->getacl($name));
diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index 7b55449d99a83782c77be1c85c6586d0da3c75bc..aa78ad9e076c015c953a7a85c7b0077ba36b725e 100644 (file)
var $goFonMSN = "";
var $selected_categorie = 0;
var $netConfigDNS;
+ var $view_logged = FALSE;
/* attribute list for save action */
var $attributes= array("cn", "description",
/* Save dn for later references */
$this->orig_dn= $this->dn;
-
- if($this->is_account){
- @log::log("view","phone/".get_class($this),$this->dn);
- }
}
function set_acl_base($base)
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","phone/".get_class($this),$this->dn);
+ }
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 132e5667b3728b5968dbbe6f24422d5a546dab5d..52ae6e3457764e92966855ae11ba0874eff734a8 100644 (file)
var $attributes = array("cn", "description", "l", "labeledURI", "gotoPrinterPPD","gotoUserPrinter", "macAddress",
"gotoUserAdminPrinter","gotoGroupAdminPrinter","gotoUserPrinter","gotoGroupPrinter");
var $objectclasses = array("top", "gotoPrinter");
-
+ var $view_logged = FALSE;
var $parent;
function printgeneric ($config, $dn,$parent_init,$parent)
}
}
}
-
- if($this->is_account){
- @log::log("view","printer/".get_class($this),$this->dn);
- }
}
function set_acl_base($base)
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","printer/".get_class($this),$this->dn);
+ }
+
+
/* If type of printer couldn't be detected (because of missing parent object in construction)
* hide this tab.
*/
index 7796dc7201e2af683643bf61d076254635788d12..5f04fbbf1e71e0f980aae35f5233a1cc8f57f06a 100644 (file)
var $ignore_account= TRUE;
var $attributes= array();
var $objectclasses= array("whatever");
+ var $view_logged = FALSE;
function servdhcp ($config, $dn= NULL, $parent= NULL)
{
plugin::plugin ($config, $dn, $parent);
-
- if($this->is_account){
- @log::log("view","unknown/".get_class($this),$this->dn);
- }
}
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
/* Fill templating stuff */
$smarty= get_smarty();
index c32ac192d20f3fa87a1867d16f2f6005d8779e8f..485eede2bd72ca312814574787f729ac4ad70cef 100644 (file)
var $conflicts = array("servdns");
var $DisplayName = "";
var $StatusFlag = "";
+ var $view_logged = FALSE;
function servdns ($config, $dn= NULL, $parent= NULL)
{
}else{
$this->is_account = true;
}
-
- if($this->is_account){
- @log::log("view","unknown/".get_class($this),$this->dn);
- }
-
$this->initially_was_account = $this->is_account;
}
*/
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* Fill templating stuff
*/
$smarty= get_smarty();
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 4fa00a01a0c9eaf9e36535f48623500ce6e68b10..a9e93f5a59c6686592181e893a259ba81deda838 100644 (file)
"sysinfo" => "sysinfo");
var $fai_activated =FALSE;
+ var $view_logged = FALSE;
function servgeneric ($config, $dn= NULL, $parent= NULL)
{
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
$this->netConfigDNS->set_acl_category("server");
$this->netConfigDNS->set_acl_base($this->base);
-
- if($this->is_account){
- @log::log("view","server/".get_class($this),$this->dn);
- }
/* Save dn for later references */
$this->orig_dn= $this->dn;
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* Do we represent a valid server? */
if (!$this->is_account && $this->parent == NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
index 3b666fd43bbae9848f4ebb8cfcc630909d4d4c81..5941bbc68eeb2515e674eb7448db590b0d17a339 100644 (file)
var $apache_http = "TRUE";
var $kolabHost = array();
var $orig_cn = "";
+ var $view_logged = FALSE;
var $attributes = array("postfix_mydomain", "postfix_mydestination", "proftpd_ftp", "k",
"postfix_mynetworks", "postfix_enable_virus_scan", "postfix_relayhost", "apache_http",
$this->initially_was_account = true;
}
}
-
- if($this->is_account){
- @log::log("view","server/".get_class($this),$this->dn);
- }
}
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/***************
Variable initialisation
***************/
index c7b05c3621f7a1fe0e7aa8781fee7acf93982569..15d15f68b7afc2e75aefa292503a94930e0cbe14 100644 (file)
var $create_mount = false; //save mount entry
var $parent = NULL;
+ var $view_logged = FALSE;
function servnfs ($config, $parent,$entry= false,$mount =false)
{
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
/* Fill templating stuff */
$smarty= get_smarty();
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 740fdf0ea6a668b85825bcf73751db54c7b6ee25..27bb610f73c6c9257e7907199fc1c0a65c59c502 100644 (file)
var $conflicts = array("FAIrepositoryServer");
var $DisplayName = "";
var $StatusFlag = "";
-
+
+ var $view_logged = FALSE;
var $fai_activated = FALSE;
function servrepository ($config, $dn= NULL, $parent= NULL)
$this->repositories[$tmp[2]]=$tmp2;
}
}
-
- if($this->is_account){
- @log::log("view","server/".get_class($this),$this->dn);
- }
}
function execute()
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","server/".get_class($this),$this->dn);
+ }
+
if(!$this->fai_activated){
$str = "<h2>"._("You can't use this plugin until FAI is activated.")."</h2>";
return $str;
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index 51aa620bea0f7b5d36df4a0c146c1b30011d3c3b..312b6f6cd104363367287dc0947d3b948e519e35 100644 (file)
"sysinfo" => "sysinfo");
var $fai_activated = FALSE;
+ var $view_logged = FALSE;
function termgeneric ($config, $dn= NULL, $parent= NULL)
{
}
$this->orig_dn= $this->dn;
-
- if($this->is_account){
- @log::log("view","terminal/".get_class($this),$this->dn);
- }
}
function set_acl_base($base)
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","terminal/".get_class($this),$this->dn);
+ }
+
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
$this->is_account= !$this->is_account;
diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc
index 984c456ad6454676d7a5fb77f1024d506c1ecf85..ae731aec9caa3fee035a0df5911d0820ba65d03d 100644 (file)
/* Needed values and lists */
var $base= "";
var $cn= "";
+ var $view_logged = FALSE;
/* attribute list for save action */
var $ignore_account= TRUE;
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","terminal/".get_class($this),$this->dn);
+ }
+
/* Do we represent a valid terminal? */
if (!$this->is_account && $this->parent == NULL){
echo "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index 2be95df7957e78c00dc78fec861bde405badcf05..25751532b6ccb8a95a52c6d3efd25172b72d80e9 100644 (file)
var $goFonHardware= "automatic";
var $AutoSync = false;
+ var $view_logged = FALSE;
/* Needed values and lists */
var $ignore_account= TRUE;
$this->gotoXHsync = preg_replace("/\+/","-",$this->gotoXHsync);
$this->gotoXVsync = preg_replace("/\+/","-",$this->gotoXVsync);
}
-
- if($this->is_account){
- @log::log("view","terminal/".get_class($this),$this->dn);
- }
}
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","terminal/".get_class($this),$this->dn);
+ }
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index dfae3014777783a594ef3e81bd8ba5dee3f04ce4..7c45334801baa1334479abddafb4320caf1f8001 100644 (file)
/* attribute list for save action */
var $attributes= array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters","gotoModules");
var $objectclasses= array("GOhard");
+ var $view_logged = FALSE;
/* Helper */
var $customParameters= "";
}
}
}
-
- if($this->is_account){
- @log::log("view","terminal/".get_class($this),$this->dn);
- }
}
function execute()
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","terminal/".get_class($this),$this->dn);
+ }
+
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
$this->is_account= !$this->is_account;
diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index fef7254f884fe0089f0e5b1a02255c339ec94fd5..020256dd24d77db22a6959b519a9d336d2ae9af6 100644 (file)
"sambaNTPassword","sambaPwdLastSet","sambaAcctFlags");
var $objectclasses= array("posixAccount","person","organizationalPerson","inetOrgPerson","gosaAccount","shadowAccount","sambaSamAccount","top");
+ var $view_logged = FALSE;
function wingeneric ($config, $dn= NULL, $parent= NULL)
{
$this->orig_dn= $this->dn;
$this->cn= preg_replace("/\\\$\$/","",$this->cn);
-
- if($this->is_account){
- @log::log("view","winworkstation/".get_class($this),$this->dn);
- }
}
function execute()
{
- /* Call parent execute */
- plugin::execute();
+ /* Call parent execute */
+ plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","winworkstation/".get_class($this),$this->dn);
+ }
+
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index 4604c98a77c16c7965795458e083127982d3c129..d28d106bc26e309334efcc9d97dad67db422831f 100644 (file)
var $FAIscript= "";
var $didAction= FALSE;
var $FAIstate= "";
+ var $view_logged = FALSE;
/* Needed values and lists */
var $base= "";
$this->gotoSyslogServers[$server] = $visible;
}
- if($this->is_account){
- @log::log("view","workstation/".get_class($this),$this->dn);
- }
-
/* Save 'dn' for later referal */
$this->orig_dn= $this->dn;
}
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","workstation/".get_class($this),$this->dn);
+ }
+
/* Do we need to flip is_account state? */
if(isset($_POST['modify_state'])){
if($this->is_account && $this->acl_is_removeable()){
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
index 1eed7b90681e43171b52786b2e915a6f5300652d..370253fbe66bc39092295d892b797849a8dc2c05 100644 (file)
var $gotoScannerClients= "";
var $gotoScannerBackend= "";
var $goFonHardware= "automatic";
+ var $view_logged = FALSE;
/* Needed values and lists */
var $ignore_account= TRUE;
$this->MouseTypes= array('AUTO' => _("inherited"));
$this->MousePorts= array('AUTO' => _("inherited"));
}
-
- if($this->is_account){
- @log::log("view","workstation/".get_class($this),$this->dn);
- }
}
function execute()
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","workstation/".get_class($this),$this->dn);
+ }
+
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
$this->is_account= !$this->is_account;
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 2fbda70488236f0ae6e09bed98af62f0c586c684..4ce45768e3d2617db56bcf23390eeb6bac7d8b23 100644 (file)
var $FAIdebianMirror = "auto";
var $unresolved_classes = array();
-
+ var $view_logged = FALSE;
/* FAI class selection */
var $InheritedFAIclass = array();
if (!isset($this->gotoBootKernels['default-inherited']) && $this->gotoBootKernel == "default-inherited"){
$this->gotoBootKernel= "default";
}
-
- if($this->is_account){
- @log::log("view","workstation/".get_class($this),$this->dn);
- }
}
/* Call parent execute */
plugin::execute();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","workstation/".get_class($this),$this->dn);
+ }
+
/* Do we need to flip is_account state? */
if(isset($_POST['modify_state'])){
if($this->is_account && $this->acl_is_removeable()){