diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc
index f050f9faf579f501b5060b974a6e2ff0658534b0..ee70b9fa4b15aeceefc5180869cb059102827f0b 100644 (file)
class phoneConferenceManagment extends plugin
{
/* Definitions */
class phoneConferenceManagment extends plugin
{
/* Definitions */
- var $plHeadline = "Phone conference";
+ var $plHeadline = "Phone conferences";
var $plDescription = "Management";
/* CLI vars */
var $plDescription = "Management";
/* CLI vars */
/* Register conftab to trigger edit dialog */
$this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn);
/* Register conftab to trigger edit dialog */
$this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn);
- $this->conftab->set_acl(array(":all"));
+ $this->conftab->set_acl($this->acl);
$_SESSION['objectinfo']= $this->dn;
}
/* Insert new entry*/
if($s_action == "new"){
$_SESSION['objectinfo']= $this->dn;
}
/* Insert new entry*/
if($s_action == "new"){
+ $this->dn= "new";
+ /* Set up the users ACL's for this 'dn' */
+ $this->acl= get_permissions ($this->dn, $this->ui->subtreeACL);
$this->dn= "new";
$this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn);
$this->dn= "new";
$this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn);
+ $this->acl= get_permissions ($this->conftab->dn, $this->ui->subtreeACL);
+ $this->conftab->set_acl($this->acl);
$this->conftab->set_acl(array(':all'));
$this->conftab->set_acl(array(':all'));
+ $_SESSION['objectinfo']= $this->dn;
}
/* Edit finished, check and save changes */
}
/* Edit finished, check and save changes */
}
$this->conftab->save ();
}
$this->conftab->save ();
+ del_lock ($this->conftab->dn);;
unset ($this->conftab);
$this->conftab= NULL;
unset ($_SESSION['objectinfo']);
} else {
show_errors($message);
}
unset ($this->conftab);
$this->conftab= NULL;
unset ($_SESSION['objectinfo']);
} else {
show_errors($message);
}
+
$this->reload();
}
$this->reload();
}
" <input type='image' src='images/list_root.png' align='middle' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
" <input type='image' align='middle' src='images/list_home.png' title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
" <img src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
" <input type='image' src='images/list_root.png' align='middle' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ".
" <input type='image' align='middle' src='images/list_home.png' title='"._("Go to users department")."' alt='"._("Home")."' name='dep_home'> ".
" <img src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
- " <input type='image' align='middle' src='images/list_new_user.png' title='"._("Create new user")."' alt='"._("New user")."' name='user_new'> ".
+ " <input type='image' align='middle' src='images/list_new_user.png' title='"._("Create new conference")."' alt='"._("New conference")."' name='user_new'> ".
" <img src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
_("Current base")." <select name='depselect' onChange='mainform.submit()'>$options</select>".
" <input type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit"). "'> ".
" <img src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
_("Current base")." <select name='depselect' onChange='mainform.submit()'>$options</select>".
" <input type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit"). "'> ".
$divlist->SetEntriesPerPage(20);
$divlist->SetHeader(array(
array("string" => " "),
$divlist->SetEntriesPerPage(20);
$divlist->SetHeader(array(
array("string" => " "),
- array("string" =>_("Name / nummer")),
+ array("string" =>_("Name - Number")),
array("string" => _("Owner")),
array("string" => _("PIN")),
array("string" =>_("Actions"), "attach" => "style='text-align: right;border:none'")));
array("string" => _("Owner")),
array("string" => _("PIN")),
array("string" =>_("Actions"), "attach" => "style='text-align: right;border:none'")));
foreach($this->conferences as $conferencekey => $conference ){
if((isset($conference['goFonPIN'][0]))&&($this->ui->dn==$conference['goFonConferenceOwner'][0])){
foreach($this->conferences as $conferencekey => $conference ){
if((isset($conference['goFonPIN'][0]))&&($this->ui->dn==$conference['goFonConferenceOwner'][0])){
- $pin = $conference['goFonPIN'][0];
+ $pin = "<img src='images/list_password.png' title='PIN : ".$conference['goFonPIN'][0]."' alt='PIN'>";
}else{
$pin = " ";
}
}else{
$pin = " ";
}
$a_field1 = array("string"=>sprintf($userimg,_("Conference")));
$a_field1 = array("string"=>sprintf($userimg,_("Conference")));
+ $acl= get_permissions ($conference['dn'], $this->ui->subtreeACL);
+ $this->acl = get_module_permission($acl, "goFonConference", $conference['dn']);
if(($this->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->acl,"goFonConferenceOwner")=="")){
$a_field2 = array("string"=>sprintf($editlink,$conferencekey,$conference['cn'][0].$number));
if(($this->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->acl,"goFonConferenceOwner")=="")){
$a_field2 = array("string"=>sprintf($editlink,$conferencekey,$conference['cn'][0].$number));
$a_field3 = array("string"=> $cn);
$a_field4 = array("string"=> $pin);
$a_field3 = array("string"=> $cn);
$a_field4 = array("string"=> $pin);
- $acl= get_permissions ($conference['dn'], $this->ui->subtreeACL);
- $this->acl = get_module_permission($acl, "goFonConference", $conference['dn']);
-
if(($this->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->acl,"goFonConferenceOwner")=="")){
$a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions), "attach" => "style='text-align: right;border:none'");
}elseif(chkacl($this->acl,"goFonConferenceOwner")==""){
if(($this->ui->dn==$conference['goFonConferenceOwner'][0])&&(chkacl($this->acl,"goFonConferenceOwner")=="")){
$a_field5 = array("string"=>preg_replace("/%KEY%/",$conferencekey,$actions), "attach" => "style='text-align: right;border:none'");
}elseif(chkacl($this->acl,"goFonConferenceOwner")==""){
$a_field5 = array("string"=>" ", "attach" => "style='text-align: right;border:none'");
}
$a_field5 = array("string"=>" ", "attach" => "style='text-align: right;border:none'");
}
-
$divlist->AddEntry(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5));
}
$divlist->AddEntry(array($a_field1,$a_field2,$a_field3,$a_field4,$a_field5));
}
function remove_from_parent()
{
function remove_from_parent()
{
+ $cfg = new conference($this->config, $this->dn);
+ $cfg->remove_from_parent();
$ldap= $this->config->get_ldap_link();
$ldap->cd ($this->dn);
$ldap->recursive_remove();
$ldap= $this->config->get_ldap_link();
$ldap->cd ($this->dn);
$ldap->recursive_remove();