~ubuntu-branches/ubuntu/precise/gosa/precise

« back to all changes in this revision

Viewing changes to include/class_plugin.inc

  • Committer: Bazaar Package Importer
  • Author(s): Emanuele Gentili
  • Date: 2008-05-13 00:18:06 UTC
  • Revision ID: james.westby@ubuntu.com-20080513001806-2e77o207ccmvz6lp
Tags: 2.5.16-1ubuntu1
* Merge from debian unstable, remaining changes: (LP: #229763)
 + debian/control
  - Switch Maintainer to Ubuntu Motu Developers
+ debian/rules
  - Fixed fatal error on Call function get_template_patch() in
   /usr/share/gosa/include

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
 
89
89
  /* Save unit tags */
90
90
  var $gosaUnitTag= "";
 
91
  var $skipTagging= FALSE;
91
92
 
92
93
  /*!
93
94
    \brief Used standard values
546
547
 
547
548
      /* Additional attributes */
548
549
      foreach ($add_attrs as $name => $value){
549
 
        $command= preg_replace("/%$name/", $value, $command);
 
550
        $command= preg_replace("/%$name( |$)/", "$value ", $command);
550
551
      }
551
552
 
552
553
      /* Walk through attribute list */
553
554
      foreach ($this->attributes as $attr){
554
555
        if (!is_array($this->$attr)){
555
 
          $command= preg_replace("/%$attr/", $this->$attr, $command);
 
556
          $command= preg_replace("/%$attr( |$)/", $this->$attr." ", $command);
556
557
        }
557
558
      }
558
 
      $command= preg_replace("/%dn/", $this->dn, $command);
 
559
      $command= preg_replace("/%dn( |$)/", $this->dn." ", $command);
559
560
 
560
561
      if (check_command($command)){
561
562
        @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
581
582
 
582
583
      /* Additional attributes */
583
584
      foreach ($add_attrs as $name => $value){
584
 
        $command= preg_replace("/%$name/", $value, $command);
 
585
        $command= preg_replace("/%$name( |$)/", "$value ", $command);
585
586
      }
586
587
 
587
588
      /* Walk through attribute list */
588
589
      foreach ($this->attributes as $attr){
589
590
        if (!is_array($this->$attr)){
590
 
          $command= preg_replace("/%$attr/", $this->$attr, $command);
 
591
          $command= preg_replace("/%$attr( |$)/", $this->$attr." ", $command);
591
592
        }
592
593
      }
593
 
      $command= preg_replace("/%dn/", $this->dn, $command);
 
594
      $command= preg_replace("/%dn( |$)/", $this->dn." ", $command);
594
595
 
595
596
      if (check_command($command)){
596
597
        @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
616
617
 
617
618
      /* Additional attributes */
618
619
      foreach ($add_attrs as $name => $value){
619
 
        $command= preg_replace("/%$name/", $value, $command);
 
620
        $command= preg_replace("/%$name( |$)/", "$value ", $command);
620
621
      }
621
622
 
622
623
      /* Walk through attribute list */
623
624
      foreach ($this->attributes as $attr){
624
625
        if (!is_array($this->$attr)){
625
 
          $command= preg_replace("/%$attr/", $this->$attr, $command);
 
626
          $command= preg_replace("/%$attr( |$)/", $this->$attr." ", $command);
626
627
        }
627
628
      }
628
 
      $command= preg_replace("/%dn/", $this->dn, $command);
629
 
 
630
 
      /* Additional attributes */
631
 
      foreach ($add_attrs as $name => $value){
632
 
        $command= preg_replace("/%$name/", $value, $command);
633
 
      }
 
629
      $command= preg_replace("/%dn( |$)/", $this->dn." ", $command);
634
630
 
635
631
      if (check_command($command)){
636
632
        @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
902
898
 
903
899
  function tag_attrs($at, $dn= "", $tag= "", $show= false)
904
900
  {
 
901
    /* Skip tagging? 
 
902
       If this is called from departmentGeneric, we have to skip this
 
903
        tagging procedure. 
 
904
     */
 
905
    if($this->skipTagging){
 
906
      return;
 
907
    }
 
908
 
905
909
    /* No dn? Self-operation... */
906
910
    if ($dn == ""){
907
911
      $dn= $this->dn;