Code

added vi format line
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Jun 2005 06:05:54 +0000 (06:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Jun 2005 06:05:54 +0000 (06:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@905 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/macro/main.inc

index 03f80a8e18ee71e1a32b6d882245ace347dc8750..aa55d15c802c07bc723d407dcfcd8f5de338b5be 100755 (executable)
  */
 
 if ($remove_lock){
-       if(isset($_SESSION['macroManagement'])){
-               $macroManagment= $_SESSION['macroManagment'];
-               $macroManagment->remove_lock();
-               del_lock ($ui->dn);
-               sess_del ('macroManagment');
-       }
+  if(isset($_SESSION['macroManagement'])){
+    $macroManagment= $_SESSION['macroManagment'];
+    $macroManagment->remove_lock();
+    del_lock ($ui->dn);
+    sess_del ('macroManagment');
+  }
 } else {
-       /* Create macroManagment object on demand */
-       if (!isset($_SESSION['macroManagment']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
-               $_SESSION['macroManagment']= new goFonMacro ($config, $_SESSION['ui']);
-       }
-       $macroManagment= $_SESSION['macroManagment'];
-       $output= $macroManagment->execute();
-
-       /* Page header*/
-       if (isset($_SESSION['objectinfo'])){
-               $display= print_header(get_template_path('images/macros.png'), _("Phone macro management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\"> ".$_SESSION['objectinfo']);
-       } else {
-               $display= print_header(get_template_path('images/macros.png'), _("Phone macro management"));
-       }
-
-       /* Reset requested? */
-       if (isset($_GET['reset']) && $_GET['reset'] == 1){
-               del_lock ($ui->dn);
-               sess_del ('macroManagment');
-       }
-
-       /* Show and save dialog */
-       $display.= $output;
-       $_SESSION['macroManagment']= $macroManagment;
+  /* Create macroManagment object on demand */
+  if (!isset($_SESSION['macroManagment']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
+    $_SESSION['macroManagment']= new goFonMacro ($config, $_SESSION['ui']);
+  }
+  $macroManagment= $_SESSION['macroManagment'];
+  $output= $macroManagment->execute();
+
+  /* Page header*/
+  if (isset($_SESSION['objectinfo'])){
+    $display= print_header(get_template_path('images/macros.png'), _("Phone macro management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\"> ".$_SESSION['objectinfo']);
+  } else {
+    $display= print_header(get_template_path('images/macros.png'), _("Phone macro management"));
+  }
+
+  /* Reset requested? */
+  if (isset($_GET['reset']) && $_GET['reset'] == 1){
+    del_lock ($ui->dn);
+    sess_del ('macroManagment');
+  }
+
+  /* Show and save dialog */
+  $display.= $output;
+  $_SESSION['macroManagment']= $macroManagment;
 }
-
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>