From: cajus Date: Thu, 17 Jan 2008 16:24:36 +0000 (+0000) Subject: Updated gofax X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2e4679f140f8ef0ad8e149ad25be9de1a00acf75;p=gosa.git Updated gofax git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8474 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/systems/services/gofax/class_goFaxServer.inc b/gosa-core/plugins/admin/systems/services/gofax/class_goFaxServer.inc deleted file mode 100644 index 1e5e04976..000000000 --- a/gosa-core/plugins/admin/systems/services/gofax/class_goFaxServer.inc +++ /dev/null @@ -1,103 +0,0 @@ - "Eins ist toll", "zwei" => "Zwei ist noch besser"); - - /* This plugin only writes its objectClass */ - var $objectclasses = array("goFaxServer"); - var $attributes = array("goFaxAdmin", "goFaxPassword"); - var $StatusFlag = "goFaxServerStatus"; - - /* This class can't be assigned twice so it conflicts with itsself */ - var $conflicts = array("goFaxServer"); - - var $DisplayName = ""; - var $dn = NULL; - var $acl; - - var $goFaxAdmin = ""; - var $goFaxPassword = ""; - var $goFaxServerStatus = ""; - var $cn = ""; - var $view_logged =FALSE; - - function goFaxServer(&$config,$dn) - { - goService::goService($config,$dn); - $this->DisplayName = _("FAX database"); - } - - - function execute() - { - $smarty = get_smarty(); - - if($this->is_account && !$this->view_logged){ - $this->view_logged = TRUE; - new log("view","server/".get_class($this),$this->dn); - } - - /* Assign acls */ - $tmp = $this->plInfo(); - foreach($tmp['plProvidedAcls'] as $name => $translation ){ - $smarty->assign($name."ACL",$this->getacl($name)); - } - - foreach($this->attributes as $attr){ - $smarty->assign($attr,$this->$attr); - } - return($smarty->fetch(get_template_path("goFaxServer.tpl",TRUE,dirname(__FILE__)))); - } - - - function getListEntry() - { - $fields = goService::getListEntry(); - $fields['Message'] = _("FAX database configuration"); - $fields['AllowEdit'] = true; - return($fields); - } - - function check() - { - $message = plugin::check(); - if (empty($this->goFaxAdmin)){ - $message[]= _("The attribute user is empty or contains invalid characters."); - } - if (empty($this->goFaxPassword)){ - $message[]= _("The attribute password is empty or contains invalid characters."); - } - return($message); - } - - - function save_object() - { - if(isset($_POST['goFaxServerPosted'])){ - plugin::save_object(); - } - } - - /* Return plugin informations for acl handling */ - static function plInfo() - { - return (array( - "plShortName" => _("Fax database"), - "plDescription" => _("Fax database")." ("._("Services").")", - "plSelfModify" => FALSE, - "plDepends" => array(), - "plPriority" => 99, - "plSection" => array("administration"), - "plCategory" => array("server"), - - "plProvidedAcls"=> array( - "goFaxAdmin" => _("Login name"), - "goFaxPassword" => _("Password")) - )); - } -} -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?> diff --git a/gosa-core/plugins/admin/systems/services/gofax/goFaxServer.tpl b/gosa-core/plugins/admin/systems/services/gofax/goFaxServer.tpl deleted file mode 100644 index 27560b3f3..000000000 --- a/gosa-core/plugins/admin/systems/services/gofax/goFaxServer.tpl +++ /dev/null @@ -1,27 +0,0 @@ -

{t}FAX database information{/t}

- - - - - - - - - -
{t}FAX DB user{/t}{$must} -{render acl=$goFaxAdminACL} - -{/render} -
{t}Password{/t}{$must} -{render acl=$goFaxPasswordACL} - -{/render} -
- -

 

-
- -   - -
-