diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index cb2fe6009045c35ce9bbce9e6d77651d276f5dd3..58895c8eabd0283a5bf7e83a1084ac2220ecde25 100644 (file)
var $gosaApplicationIcon= "";
var $gotoLogonScript ="";
var $iconData;
var $gosaApplicationIcon= "";
var $gotoLogonScript ="";
var $iconData;
- var $Categories = array();
/* Headpage attributes */
var $last_sorting= "invalid";
/* Headpage attributes */
var $last_sorting= "invalid";
{
plugin::plugin ($config, $dn);
{
plugin::plugin ($config, $dn);
- $tmp = new xmlParse();
-
- $this->Categories= array();
- if(!isset($this->config->data['MAIN']['KDE_APPLICATIONS_MENU'])) {
- print_red(_("There is no value for 'KDE_APPLICATIONS_MENU' specified in your gosa.conf."));
- }else{
- $path = $this->config->data['MAIN']['KDE_APPLICATIONS_MENU'];
- if(file_exists($path)){
- if(is_readable($path)){
- $tmp->parseMenu($path);
- $this->Categories = $tmp->GetData();
- }else{
- print_red(sprintf(_("The specified file '%s' for 'KDE_APPLICATIONS_MENU' in your gosa.conf is not accessable."),$path));
- }
- }else{
- print_red(sprintf(_("The specified file '%s' for 'KDE_APPLICATIONS_MENU' in your gosa.conf is not accessable."),$path));
- }
- }
-
/* Load icon */
$ldap= $config->get_ldap_link();
if ($dn != 'new'){
/* Load icon */
$ldap= $config->get_ldap_link();
if ($dn != 'new'){
plugin::execute();
$smarty= get_smarty();
plugin::execute();
$smarty= get_smarty();
- $smarty->assign("categories",array_flip($this->Categories));
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent == NULL){
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent == NULL){
$smarty->assign("rand", rand(0, 10000));
/* Variables */
$smarty->assign("rand", rand(0, 10000));
/* Variables */
- foreach(array("description", "gosaApplicationExecute", "gosaApplicationName") as $val){
+ foreach(array("description", "gosaApplicationExecute", "gosaApplicationName","cn") as $val){
$smarty->assign($val, $this->$val);
$smarty->assign($val."ACL", chkacl($this->acl, $val));
}
/* Checkboxes */
foreach (array("G" => "exec_for_groupmembers", "O" => "overwrite_config",
$smarty->assign($val, $this->$val);
$smarty->assign($val."ACL", chkacl($this->acl, $val));
}
/* Checkboxes */
foreach (array("G" => "exec_for_groupmembers", "O" => "overwrite_config",
+ "L" => "place_on_kicker",
"D" => "place_on_desktop", "M" => "place_in_startmenu") as $key => $val){
if (preg_match("/$key/", $this->gosaApplicationFlags)){
$smarty->assign("$val", "checked");
"D" => "place_on_desktop", "M" => "place_in_startmenu") as $key => $val){
if (preg_match("/$key/", $this->gosaApplicationFlags)){
$smarty->assign("$val", "checked");
if (isset($_POST['place_on_desktop']) && $_POST['place_on_desktop'] == 1){
$flag.= "D";
}
if (isset($_POST['place_on_desktop']) && $_POST['place_on_desktop'] == 1){
$flag.= "D";
}
+ if (isset($_POST['place_on_kicker']) && $_POST['place_on_kicker'] == 1){
+ $flag.= "L";
+ }
if (isset($_POST['place_in_startmenu']) && $_POST['place_in_startmenu'] == 1){
$flag.= "M";
}
if (isset($_POST['place_in_startmenu']) && $_POST['place_in_startmenu'] == 1){
$flag.= "M";
}