summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3fa759a)
raw | patch | inline | side by side (parent: 3fa759a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Aug 2005 09:14:50 +0000 (09:14 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Aug 2005 09:14:50 +0000 (09:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1185 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history | |
plugins/gofon/phoneaccount/main.inc | patch | blob | history |
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 2f6e553056686013dbd7f58b58555f2f2359c180..dfb346ca3866b5d0b7a5ac7685d9f99774405017 100644 (file)
}
- /* Prepare templating */
- $smarty= get_smarty();
-
-
/* Perform search, to get Macro Parameters,Name,Dn,Displayname etc*/
$ldap->search("(objectClass=goFonMacro)", array("*"));
}
-
-
// Generate MySQL Syntax
function generate_mysql_entension_entries($save = false){
}
-
-
-
-
-
-
-
-
-
-
-
-
function execute()
{
+ /* Do we represent a valid account? */
+ if (!$this->is_account && $this->parent == NULL){
+ $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
+ _("This account has no phone extensions.")."</b>";
+ $display.= back_to_main();
+ return ($display);
+ }
/* force postmodify event, to restart phones */
+ if ($this->parent != NULL){
+ $this->parent->by_object['user']->is_modified=TRUE;
+ $this->is_modified= TRUE;
- $this->parent->by_object['user']->is_modified=TRUE;
- $this->is_modified=TRUE;
-
- $this->uid = $this->parent->by_object['user']->uid;
- $this->cn = $this->parent->by_object['user']->cn;
-
+ $this->uid = $this->parent->by_object['user']->uid;
+ $this->cn = $this->parent->by_object['user']->cn;
+ }
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
/* tell user that the pluging selected is no longer available*/
if((!$this->macrostillavailable)&&($this->macro!="none")){
- print_red(_("The macro you selected in the past, is no longer available for you, please choose another one."));
+ print_red(_("The macro you selected, is no longer available for you, please choose another one."));
}
/* Prepare templating */
index a25c5b9df5ef2ff54ea283447779f2b29c6575ff..19bc2be7840516f0061a911a32099af0fd76b101 100644 (file)
$display.= "<input type=\"hidden\" name=\"ignore\">\n";
}
$display.= "</p>\n";
+ $display.= "<input type=\"hidden\" name=\"ignore\">\n";
}
/* Page header*/