summaryrefslogtreecommitdiff
path: root/classes/Misc.php
diff options
context:
space:
mode:
authorLeonardo Sapiras2011-10-17 10:00:59 +0000
committerJehan-Guillaume (ioguix) de Rorthais2012-08-22 10:23:50 +0000
commita524be779bcb7881dada321e4f1e8c1088ba1cc2 (patch)
tree9585f66b5d80441ba656e4877482cdd3f2019e14 /classes/Misc.php
parentd5ee93d9318e5c4b253a08ea0ccbbd6224218ec5 (diff)
Remove old plugin architecture.
Patch by Leonardo Sapiras, remerged by ioguix. * remove old plugin architecture * remove plugin Slony
Diffstat (limited to 'classes/Misc.php')
-rw-r--r--classes/Misc.php89
1 files changed, 1 insertions, 88 deletions
diff --git a/classes/Misc.php b/classes/Misc.php
index fd756ed8..d8e94790 100644
--- a/classes/Misc.php
+++ b/classes/Misc.php
@@ -374,18 +374,6 @@
}
}
break;
- case 'slonystatus':
- switch ($str) {
- case 'insync':
- $out = $lang['strhealthy'];
- break;
- case 'outofsync':
- $out = $lang['stroutofsync'];
- break;
- default:
- $out = $lang['strunknown'];
- }
- break;
default:
// If the string contains at least one instance of >1 space in a row, a tab
// character, a space at the start of a line, or a space at the start of
@@ -671,7 +659,7 @@
* @param $section The name of the tab bar.
*/
function getNavTabs($section) {
- global $data, $lang, $conf, $slony;
+ global $data, $lang, $conf;
$hide_advanced = ($conf['show_advanced'] === false);
@@ -849,14 +837,6 @@
'help' => 'pg.cast',
'icon' => 'Casts',
),
- 'slony' => array (
- 'title' => 'Slony',
- 'url' => 'plugin_slony.php',
- 'urlvars' => array('subject' => 'database', 'action' => 'clusters_properties'),
- 'hide' => !isset($slony),
- 'help' => '',
- 'icon' => 'Replication',
- ),
'export' => array (
'title' => $lang['strexport'],
'url' => 'database.php',
@@ -1159,46 +1139,6 @@
),
);
- case 'slony_cluster':
- return array (
- 'properties' => array (
- 'title' => $lang['strproperties'],
- 'url' => 'plugin_slony.php',
- 'urlvars' => array(
- 'subject' => 'slony_cluster',
- 'action' => 'cluster_properties',
- 'slony_cluster' => field('slony_cluster')
- ),
- 'help' => '',
- 'tree' => false,
- 'icon' => 'Cluster',
- ),
- 'nodes' => array (
- 'title' => $lang['strnodes'],
- 'url' => 'plugin_slony.php',
- 'urlvars' => array(
- 'subject' => 'slony_cluster',
- 'action' => 'nodes_properties',
- 'slony_cluster' => field('slony_cluster')
- ),
- 'branch' => 'nodes',
- 'help' => '',
- 'icon' => 'Nodes',
- ),
- 'sets' => array (
- 'title' => $lang['strrepsets'],
- 'url' => 'plugin_slony.php',
- 'urlvars' => array(
- 'subject' => 'slony_cluster',
- 'action' => 'sets_properties',
- 'slony_cluster' => field('slony_cluster')
- ),
- 'branch' => 'sets',
- 'help' => '',
- 'icon' => 'ReplicationSets',
- ),
- );
-
case 'column':
return array(
'properties' => array (
@@ -1453,17 +1393,6 @@
}
if ($subject == 'schema') $done = true;
- if (isset($_REQUEST['slony_cluster']) && !$done) {
- $trail['slony_cluster'] = array(
- 'title' => 'Slony Cluster',
- 'text' => $_REQUEST['slony_cluster'],
- 'url' => $this->getHREFSubject('slony_cluster'),
- 'help' => 'sl.cluster',
- 'icon' => 'Cluster'
- );
- }
- if ($subject == 'slony_cluster') $done = true;
-
if (isset($_REQUEST['table']) && !$done) {
$trail['table'] = array(
'title' => $lang['strtable'],
@@ -1511,22 +1440,6 @@
'icon' => 'Aggregate'
);
break;
- case 'slony_node':
- $trail[$subject] = array(
- 'title' => 'Slony Node',
- 'text' => $_REQUEST['no_name'],
- 'help' => 'sl.'.$subject,
- 'icon' => 'Node'
- );
- break;
- case 'slony_set':
- $trail[$subject] = array(
- 'title' => $lang['str'.$subject],
- 'text' => $_REQUEST[$subject],
- 'help' => 'sl.'.$subject,
- 'icon' => 'AvailableReplicationSet'
- );
- break;
case 'column':
$trail['column'] = array (
'title' => $lang['strcolumn'],