From: cajus Date: Fri, 9 Jun 2006 07:40:59 +0000 (+0000) Subject: Removed snapshot from ldap class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab1d41660da213f1bdf95d43fcc30c7932accb22;p=gosa.git Removed snapshot from ldap class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3739 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index b289ffe4d..7b82a8b32 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -1130,21 +1130,6 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec return $objectclasses; } - function create_snapshot($dn, $type= "snapshot", $description= "") - { - if ($this->dn_exists($dn) && $dn != ""){ - $data= preg_replace('/^dn:.*\n/', '', $this->gen_ldif($dn)); - $target= array(); - $target['objectClass']= array("top", "gosaObjectSnapshot"); - $target['gosaSnapshotData']= gzcompress($data, 6); - $target['gosaSnapshotType']= $type; - list($usec, $sec)= explode(" ", microtime()); - $target['gosaShapshotTimestamp']= preg_replace("/\./", "", $sec.$usec); - $target['gosaShapshotDN']= $dn; - print_a($target); - } - } - } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: