summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cfa3785)
raw | patch | inline | side by side (parent: cfa3785)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 May 2007 09:51:59 +0000 (09:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 May 2007 09:51:59 +0000 (09:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6416 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 057401432d6930e29298372110be12abed867c68..50795e6a03d0356356e36d0ecfdbeaf824ee5434 100644 (file)
/* Headpage attributes */
var $last_dep_sorting= "invalid";
var $departments= array();
-
+ var $view_logged = FALSE;
var $dialog ;
/* attribute list for save action */
/* Call parent execute */
plugin::execute();
+ /* Log last action */
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","gofonconference/".get_class($this),$this->dn);
+ }
+
$smarty= get_smarty();
$smarty->assign("bases" ,$this->config->idepartments);
$ldap->cd ($this->dn);
$ldap->recursive_remove();
+ @log::log("remove","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+
/* Optionally execute a command after we're done */
$this->handle_post_events('remove');
}
$ldap->add($this->attrs);
$this->handle_post_events('add');
}
+
+ /* Log last action */
+ if($this->initially_was_account){
+ @log::log("modify","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ }else{
+ @log::log("create","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ }
+
show_ldap_error($ldap->get_error(), sprintf(_("Saving of goFonConference/generic with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
diff --git a/plugins/gofon/fonreports/class_fonreport.inc b/plugins/gofon/fonreports/class_fonreport.inc
index 69abf97f4b9f564dbb716c2c22278be361cda758..7c58872b430eb0a5fd8e17a31a5de6f0a705cf33 100644 (file)
/* attribute list for save action */
var $attributes_SO = array("start","search_for","search_base","range","month","sort_direction","sort","year");
var $objectclasses = array();
-
+ var $view_logged = FALSE;
/* Construct class */
function fonreport ($config, $ui)
/* GVet template engine */
$smarty= get_smarty();
+ /* Log view */
+ if(!$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","gofon/".get_class($this),$this->dn);
+ }
/*****************
Variable Init
index cbcc99951847697a8b1deb00120706badb92f206..213cf62563ab4d989ee1fd0ac45a02ec26530ddb 100755 (executable)
/*! attribute list for save action */
var $attributes = array("cn","base", "description","displayName","goFonMacroContent","goFonMacroVisible");
-
+ var $view_logged = FALSE;
var $orig_cn = "";
/*! Objectclasses that this calls handles */
var $objectclasses = array("top", "goFonMacro");
/* Call parent execute */
plugin::execute();
+ /* Log view */
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","gofonmacro/".get_class($this),$this->dn);
+ }
+
/* Variables */
$vars = "";
$tmp = array();
}
/* Remove phone macro */
- $ldap->rmDir($this->dn);
+ $ldap->rmDir($this->dn);
+ @log::log("remove","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
show_ldap_error($ldap->get_error(), sprintf(_("Removing of goFonMacro/generic account with dn '%s' failed."),$this->dn));
/* Delete references to object groups */
$this->handle_post_events("add");
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving of goFonMacro/generic account with dn '%s' failed."),$this->dn));
+
+ /* Log last action */
+ if($this->initially_was_account){
+ @log::log("modify","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ }else{
+ @log::log("create","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ }
}
}
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index a92672422ac42e8b202f789cd8d7a2a308fe2c15..25e1f2382dd1894ce7d5a1a6da470d408da77b78 100644 (file)
var $uid;
+ var $view_logged = FALSE;
+
function phoneAccount ($config, $dn= NULL, $parent= NULL)
{
plugin::plugin ($config, $dn, $parent);
/* Call parent execute */
plugin::execute();
- $display = "";
+ /* Log view */
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","users/".get_class($this),$this->dn);
+ }
+ $display = "";
$SkipWrite = (!isset($this->parent) || !$this->parent) && !isset($_SESSION['edit']);
-
if(empty($this->macro)&&(!empty($this->goFonMacro))){
/* Go through already saved values, for a parameter */
$this->attrs['telephoneNumber'] =$tmp_numbers;
$ldap->modify ($this->attrs);
+ /* Log last action */
+ if($this->initially_was_account){
+ @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ }else{
+ @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ }
+
show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/phone account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */
$this->cleanup();
$ldap->modify ($this->attrs);
+ @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/phone account with dn '%s' failed."),$this->dn));
/* Optionally execute a command after we're done */