more tries
authorchriskl <chriskl>
Thu, 19 May 2005 15:35:49 +0000 (15:35 +0000)
committerchriskl <chriskl>
Thu, 19 May 2005 15:35:49 +0000 (15:35 +0000)
database.php

index 870100b85943ee5b85d5a04d0b1289916c710532..1251f3ff140520df9ecee9ea18791c51fe17de61 100755 (executable)
@@ -3,7 +3,7 @@
        /**
         * Manage schemas within a database
         *
-        * $Id: database.php,v 1.66.2.1 2005/05/15 14:27:16 chriskl Exp $
+        * $Id: database.php,v 1.66.2.2 2005/05/19 15:35:49 chriskl Exp $
         */
 
        // Include application functions
                                                                'action'  => 'subtree',
                                                                'schema'  => field('nspname')
                                                        )
-                                               )
+                                               ),
+                       'nofoot' => true
                );
-               
+
                $misc->printTreeXML($schemas, $attrs);
+               
+               $tabs = array();
+               $tabs['slony'] = array (
+                                                               'title' => 'Slony',
+                                                               'url'   => 'plugin_slony.php',
+                                                               'urlvars' => array('subject' => 'slony'),
+                                                               'hide'  => (!$slony->isEnabled()),
+                                                               'help'  => ''
+                                                       );
+
+               $items =& new ArrayRecordSet($tabs);
+
+               $attrs = array(
+                       'text'   => noEscape(field('title')),
+                       'icon'   => field('icon', 'folder'),
+                       'action' => url(field('url'),
+                                                       $reqvars,
+                                                       field('urlvars', array())
+                                               ),
+                       'branch' => url(field('url'),
+                                                       $reqvars,
+                                                       field('urlvars'),
+                                                       array('action' => 'tree')
+                                               ),
+                       'nohead' => true
+               );
+               
+               $misc->printTreeXML($items, $attrs);
+               
                exit;
        }