From edc7edc8557f877eeec4869d443a17d5ce696d63 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 14:23:15 +0000 Subject: [PATCH] Updated mysql connection and query handling, ensure that strings are save.wq git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19284 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../macro/class_gofonMacroManagement.inc | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc index 90f937337..a75db05ce 100644 --- a/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc +++ b/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc @@ -22,47 +22,47 @@ class goFonMacro extends management { - var $plHeadline = "Phone Macros"; - var $plDescription = "Manage phone macros for setups using the Asterisk VoIP service"; + var $plHeadline = "Phone Macros"; + var $plDescription = "Manage phone macros for setups using the Asterisk VoIP service"; - var $plIcon = "plugins/gofon/images/macros.png"; + var $plIcon = "plugins/gofon/images/macros.png"; - // Tab definition - protected $tabClass = "macrotabs"; - protected $tabType = "MACROTABS"; - protected $aclCategory = "gofonmacro"; - protected $aclPlugin = "macro"; - protected $objectName = "macro"; + // Tab definition + protected $tabClass = "macrotabs"; + protected $tabType = "MACROTABS"; + protected $aclCategory = "gofonmacro"; + protected $aclPlugin = "macro"; + protected $objectName = "macro"; - function __construct($config,$ui) - { - $this->config = $config; - $this->ui = $ui; + function __construct($config,$ui) + { + $this->config = $config; + $this->ui = $ui; - $this->storagePoints = array(get_ou("macro", "phoneMacroRDN")); + $this->storagePoints = array(get_ou("macro", "phoneMacroRDN")); - // Build filter - if (session::global_is_set(get_class($this)."_filter")){ - $filter= session::global_get(get_class($this)."_filter"); - } else { - $filter = new filter(get_template_path("macro-filter.xml", true)); - $filter->setObjectStorage($this->storagePoints); - } - $this->setFilter($filter); + // Build filter + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { + $filter = new filter(get_template_path("macro-filter.xml", true)); + $filter->setObjectStorage($this->storagePoints); + } + $this->setFilter($filter); - // Build headpage - $headpage = new listing(get_template_path("macro-list.xml", true)); - $headpage->setFilter($filter); + // Build headpage + $headpage = new listing(get_template_path("macro-list.xml", true)); + $headpage->setFilter($filter); - // Add copy&paste and snapshot handler. - if ($this->config->boolValueIsTrue("core", "copyPaste")){ - $this->cpHandler = new CopyPasteHandler($this->config); - } - if($this->config->get_cfg_value("core","enableSnapshots") == "true"){ - $this->snapHandler = new SnapshotHandler($this->config); + // Add copy&paste and snapshot handler. + if ($this->config->boolValueIsTrue("core", "copyPaste")){ + $this->cpHandler = new CopyPasteHandler($this->config); + } + if($this->config->get_cfg_value("core","enableSnapshots") == "true"){ + $this->snapHandler = new SnapshotHandler($this->config); + } + parent::__construct($config, $ui, "macros", $headpage); } - parent::__construct($config, $ui, "macros", $headpage); - } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2