From: hickert Date: Wed, 29 Jun 2005 06:05:54 +0000 (+0000) Subject: added vi format line X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de99f5dc23651fd9a5fb48dbe66155c0ee6c7ac0;p=gosa.git added vi format line git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@905 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/macro/main.inc b/plugins/gofon/macro/main.inc index 03f80a8e1..aa55d15c8 100755 --- a/plugins/gofon/macro/main.inc +++ b/plugins/gofon/macro/main.inc @@ -19,36 +19,36 @@ */ 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"), "\"\" ".$_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"), "\"\" ".$_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: ?>