summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd48d0d)
raw | patch | inline | side by side (parent: fd48d0d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Sep 2005 08:35:43 +0000 (08:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Sep 2005 08:35:43 +0000 (08:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1356 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/macro/class_gofonMacro.inc | patch | blob | history |
index a44a489959e716df974fedd3f49428a344f7f09f..c4965f1a603f9e2514739d359dffa004d7d2e4f6 100755 (executable)
{
plugin::plugin ($config, $dn);
+ unset($_SESSION['config']->data['SERVERS']['FON']);
+
$ldap= $config->get_ldap_link();
$this->dn = $dn;
$tmp = array();
$number = 0;
+ if(!isset($_SESSION['config']->data['SERVERS']['FON'])){
+ print_red(_("There is currently no asterisk server defined. Possibly you are missing a server that handles the asterisk management (goFonServer). \n Your Settings can't be saved to asterisk Database. "));
+ }
+
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent == NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
// Generate MySQL Syntax
function generate_mysql_entension_entries($save = false,$delete_only=false,$remove_old_macroname=false){
+ if(!isset($_SESSION['config']->data['SERVERS']['FON'])){
+ return(true);
+ }
+
// Get Configuration for Mysql database Server
$a_SETUP = $_SESSION['config']->data['SERVERS']['FON'];