/**
* Manage aggregates in a database
*
- * $Id: aggregates.php,v 1.19 2007/04/23 13:44:04 soranzo Exp $
+ * $Id: aggregates.php,v 1.20 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'aggrname' => array(
'title' => $lang['strname'],
'field' => 'proname',
+ 'url' => "redirect.php?subject=aggregate&action=properties&{$misc->href}&",
+ 'vars' => array('aggrname' => 'proname', 'aggrtype' => 'proargtypes'),
),
'aggrtype' => array(
'title' => $lang['strtype'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=aggregate&action=properties&{$misc->href}&",
- 'vars' => array('aggrname' => 'proname', 'aggrtype' => 'proargtypes'),
- ),
'alter' => array(
'title' => $lang['stralter'],
'url' => "{$PHP_SELF}?action=alter&{$misc->href}&",
/**
* Manage databases within a server
*
- * $Id: all_db.php,v 1.50 2007/04/23 13:53:39 soranzo Exp $
+ * $Id: all_db.php,v 1.51 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'database' => array(
'title' => $lang['strdatabase'],
'field' => 'datname',
+ 'url' => "redirect.php?subject=database&{$misc->href}&",
+ 'vars' => array('database' => 'datname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=database&{$misc->href}&",
- 'vars' => array('database' => 'datname'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "{$PHP_SELF}?action=confirm_drop&subject=database&{$misc->href}&",
/**
* Class to hold various commonly used functions
*
- * $Id: Misc.php,v 1.148 2007/05/02 16:12:07 ioguix Exp $
+ * $Id: Misc.php,v 1.149 2007/05/03 17:01:04 ioguix Exp $
*/
class Misc {
'icon' => 'Databases',
)
);
- if ($data->hasRoles()) {
+ /*if ($data->hasRoles()) {
$tmp = array_merge($tmp, array(
'roles' => array (
'title' => $lang['strroles'],
)
));
}
- else {
+ else {*/
$tmp = array_merge($tmp, array(
'users' => array (
'title' => $lang['strusers'],
'icon' => 'UserGroups',
)
));
- }
+ //}
$tmp = array_merge($tmp, array(
'account' => array (
unset($columns['comment']);
}
- // Apply the 'properties' action to the first column
- // and remove it from the action list.
- // (Remove this section to keep the 'Properties' button instead of links)
- if (isset($actions['properties'])) {
- reset($columns);
- list($first_column) = each($columns);
- $columns[$first_column]['url'] = $actions['properties']['url'];
- $columns[$first_column]['vars'] = $actions['properties']['vars'];
- unset($actions['properties']);
- }
-
if (isset($columns['comment'])) {
// Uncomment this for clipped comments.
// TODO: This should be a user option.
/**
* Manage domains in a database
*
- * $Id: domains.php,v 1.27 2007/04/23 14:23:24 soranzo Exp $
+ * $Id: domains.php,v 1.28 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'domain' => array(
'title' => $lang['strdomain'],
'field' => 'domname',
+ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
+ 'vars' => array('domain' => 'domname'),
),
'type' => array(
'title' => $lang['strtype'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
- 'vars' => array('domain' => 'domname'),
- ),
'alter' => array(
'title' => $lang['stralter'],
'url' => "{$PHP_SELF}?action=alter&{$misc->href}&",
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.62 2007/04/23 18:48:06 soranzo Exp $
+ * $Id: functions.php,v 1.63 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'title' => $lang['strfunction'],
'field' => 'proproto',
'type' => 'verbatim',
+ 'url' => "redirect.php?subject=function&action=properties&{$misc->href}&",
+ 'vars' => array('function' => 'proproto', 'function_oid' => 'prooid'),
),
'returns' => array(
'title' => $lang['strreturns'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=function&action=properties&{$misc->href}&",
- 'vars' => array('function' => 'proproto', 'function_oid' => 'prooid'),
- ),
'alter' => array(
'title' => $lang['stralter'],
'url' => "{$PHP_SELF}?action=edit&{$misc->href}&",
/**
* Manage groups in a database cluster
*
- * $Id: groups.php,v 1.22 2007/01/15 15:48:17 soranzo Exp $
+ * $Id: groups.php,v 1.23 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'group' => array(
'title' => $lang['strgroup'],
'field' => 'groname',
+ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
+ 'vars' => array('group' => 'groname'),
),
'actions' => array(
'title' => $lang['stractions'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
- 'vars' => array('group' => 'groname'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&",
/**
* Manage operators in a database
*
- * $Id: operators.php,v 1.24 2007/04/23 18:48:06 soranzo Exp $
+ * $Id: operators.php,v 1.25 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'operator' => array(
'title' => $lang['stroperator'],
'field' => 'oprname',
+ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
+ 'vars' => array('operator' => 'oprname', 'operator_oid' => 'oid'),
),
'leftarg' => array(
'title' => $lang['strleftarg'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
- 'vars' => array('operator' => 'oprname', 'operator_oid' => 'oid'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&",
/**
* Slony database tab plugin
*
- * $Id: plugin_slony.php,v 1.17 2007/04/23 18:48:06 soranzo Exp $
+ * $Id: plugin_slony.php,v 1.18 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'no_name' => array(
'title' => $lang['strcluster'],
'field' => 'cluster'
+ 'url' => "plugin_slony.php?{$misc->href}&action=cluster_properties&",
+ 'vars' => array('slony_cluster' => 'cluster')
),
'actions' => array(
'title' => $lang['stractions'],
);
$actions = array (
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "plugin_slony.php?{$misc->href}&action=cluster_properties&",
- 'vars' => array('slony_cluster' => 'cluster')
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_cluster&",
'no_name' => array(
'title' => $lang['strname'],
'field' => 'no_comment'
+ 'url' => "plugin_slony.php?{$misc->href}&action=node_properties&subject=slony_node&",
+ 'vars' => array('no_id' => 'no_id', 'no_name' => 'no_comment')
),
'no_status' => array(
'title' => $lang['strstatus'],
);
$actions = array (
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "plugin_slony.php?{$misc->href}&action=node_properties&subject=slony_node&",
- 'vars' => array('no_id' => 'no_id', 'no_name' => 'no_comment')
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_node&subject=slony_node&",
'no_name' => array(
'title' => $lang['strname'],
'field' => 'no_comment'
+ 'url' => "plugin_slony.php?{$misc->href}&action=path_properties&",
+ 'vars' => array('no_id' => 'pa_client', 'path_id' => 'no_id')
),
'actions' => array(
'title' => $lang['stractions'],
);
$actions = array (
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "plugin_slony.php?{$misc->href}&action=path_properties&",
- 'vars' => array('no_id' => 'pa_client', 'path_id' => 'no_id')
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_path&",
'no_name' => array(
'title' => $lang['strname'],
'field' => 'no_comment'
+ 'url' => "plugin_slony.php?{$misc->href}&action=listen_properties&",
+ 'vars' => array('no_id' => 'li_receiver', 'listen_id' => 'no_id', 'origin_id' => 'li_origin')
),
'actions' => array(
'title' => $lang['stractions'],
);
$actions = array (
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "plugin_slony.php?{$misc->href}&action=listen_properties&",
- 'vars' => array('no_id' => 'li_receiver', 'listen_id' => 'no_id', 'origin_id' => 'li_origin')
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_listen&",
'set_name' => array(
'title' => $lang['strname'],
'field' => 'set_comment'
+ 'url' => "plugin_slony.php?{$misc->href}&action=set_properties&",
+ 'vars' => array('set_id' => 'set_id')
),
'actions' => array(
'title' => $lang['stractions'],
);
$actions = array (
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "plugin_slony.php?{$misc->href}&action=set_properties&",
- 'vars' => array('set_id' => 'set_id')
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_set&",
'table' => array(
'title' => $lang['strtable'],
'field' => 'qualname',
+ 'url' => "redirect.php?subject=table&{$misc->href}&",
+ 'vars' => array('table' => 'relname', 'schema' => 'nspname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=table&{$misc->href}&",
- 'vars' => array('table' => 'relname', 'schema' => 'nspname'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_table&set_id={$_REQUEST['set_id']}&",
'sequence' => array(
'title' => $lang['strsequence'],
'field' => 'qualname',
+ 'url' => "sequences.php?action=properties&{$misc->href}&",
+ 'vars' => array('sequence' => 'seqname', 'schema' => 'nspname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "sequences.php?action=properties&{$misc->href}&",
- 'vars' => array('sequence' => 'seqname', 'schema' => 'nspname'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "plugin_slony.php?{$misc->href}&action=confirm_drop_sequence&set_id={$_REQUEST['set_id']}&",
'no_name' => array(
'title' => $lang['strname'],
'field' => 'no_comment'
+ 'url' => "plugin_slony.php?{$misc->href}&action=subscription_properties&",
+ 'vars' => array('set_id' => 'sub_set', 'no_id' => 'no_id')
),
-/* 'actions' => array(
- 'title' => $lang['stractions'],
- ),*/
'no_comment' => array(
'title' => $lang['strcomment'],
'field' => 'no_comment'
)
);
- $actions = array (
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "plugin_slony.php?{$misc->href}&action=subscription_properties&",
- 'vars' => array('set_id' => 'sub_set', 'no_id' => 'no_id')
- )
- );
+ $actions = array ();
$misc->printTable($subscriptions, $columns, $actions, $lang['strnosubscriptions']);
}
/**
* List reports in a database
*
- * $Id: reports.php,v 1.27 2007/04/24 15:31:29 soranzo Exp $
+ * $Id: reports.php,v 1.28 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'report' => array(
'title' => $lang['strreport'],
'field' => 'report_name',
+ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
+ 'vars' => array('report_id' => 'report_id'),
),
'database' => array(
'title' => $lang['strdatabase'],
$return_url = urlencode("{$PHP_SELF}?{$misc->href}");
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
- 'vars' => array('report_id' => 'report_id'),
- ),
'run' => array(
'title' => $lang['strexecute'],
'url' => "sql.php?subject=report&{$misc->href}&return_url={$return_url}&return_desc=".urlencode($lang['strback'])."&",
/**
* Manage roles in a database cluster
*
- * $Id: roles.php,v 1.5 2007/04/23 15:10:30 soranzo Exp $
+ * $Id: roles.php,v 1.6 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'role' => array(
'title' => $lang['strrole'],
'field' => 'rolname',
+ 'url' => "redirect.php?subject=role&action=properties&{$misc->href}&",
+ 'vars' => array('rolename' => 'rolname'),
),
'superuser' => array(
'title' => $lang['strsuper'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=role&action=properties&{$misc->href}&",
- 'vars' => array('rolename' => 'rolname'),
- ),
'alter' => array(
'title' => $lang['stralter'],
'url' => "{$PHP_SELF}?action=alter&{$misc->href}&",
/**
* Manage schemas in a database
*
- * $Id: schemas.php,v 1.13 2007/04/23 18:48:06 soranzo Exp $
+ * $Id: schemas.php,v 1.14 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'schema' => array(
'title' => $lang['strschema'],
'field' => 'nspname',
+ 'url' => "redirect.php?subject=schema&{$misc->href}&",
+ 'vars' => array('schema' => 'nspname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=schema&{$misc->href}&",
- 'vars' => array('schema' => 'nspname'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "{$PHP_SELF}?action=drop&{$misc->href}&",
/**
* Manage sequences in a database
*
- * $Id: sequences.php,v 1.38 2007/04/24 10:31:52 soranzo Exp $
+ * $Id: sequences.php,v 1.39 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'sequence' => array(
'title' => $lang['strsequence'],
'field' => 'seqname',
+ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
+ 'vars' => array('sequence' => 'seqname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
- 'vars' => array('sequence' => 'seqname'),
- ),
'alter' => array(
'title' => $lang['stralter'],
'url' => "sequences.php?action=confirm_alter&{$misc->href}&subject=sequence&",
/**
* Manage servers
*
- * $Id: servers.php,v 1.6 2007/01/10 01:25:12 soranzo Exp $
+ * $Id: servers.php,v 1.7 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'server' => array(
'title' => $lang['strserver'],
'field' => 'desc',
+ 'url' => "redirect.php?subject=server&",
+ 'vars' => array('server' => 'id'),
),
'host' => array(
'title' => $lang['strhost'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=server&",
- 'vars' => array('server' => 'id'),
- ),
'logout' => array(
'title' => $lang['strlogout'],
'url' => "{$PHP_SELF}?action=logout&",
/**
* List tables in a database
*
- * $Id: tables.php,v 1.94 2007/05/02 16:12:07 ioguix Exp $
+ * $Id: tables.php,v 1.95 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'table' => array(
'title' => $lang['strtable'],
'field' => 'relname',
+ 'url' => "redirect.php?subject=table&{$misc->href}&",
+ 'vars' => array('table' => 'relname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=table&{$misc->href}&",
- 'vars' => array('table' => 'relname'),
- ),
'browse' => array(
'title' => $lang['strbrowse'],
'url' => "display.php?{$misc->href}&subject=table&return_url=".urlencode("tables.php?{$misc->href}")."&return_desc=".urlencode($lang['strback'])."&",
/**
* List tables in a database
*
- * $Id: tblproperties.php,v 1.77 2007/04/24 14:49:00 soranzo Exp $
+ * $Id: tblproperties.php,v 1.78 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'column' => array(
'title' => $lang['strcolumn'],
'field' => 'attname',
+ 'url' => "colproperties.php?subject=column&{$misc->href}&table=".urlencode($_REQUEST['table'])."&",
+ 'vars' => array('column' => 'attname'),
),
'type' => array(
'title' => $lang['strtype'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "colproperties.php?subject=column&{$misc->href}&table=".urlencode($_REQUEST['table'])."&",
- 'vars' => array('column' => 'attname'),
- ),
'alter' => array(
'title' => $lang['stralter'],
'url' => "{$PHP_SELF}?action=properties&{$misc->href}&table=".urlencode($_REQUEST['table'])."&",
/**
* Manage types in a database
*
- * $Id: types.php,v 1.34 2007/04/23 15:28:42 soranzo Exp $
+ * $Id: types.php,v 1.35 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'type' => array(
'title' => $lang['strtype'],
'field' => 'typname',
+ 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
+ 'vars' => array('type' => 'basename'),
),
'owner' => array(
'title' => $lang['strowner'],
if (!isset($types->fields['typtype'])) unset($columns['flavour']);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "{$PHP_SELF}?action=properties&{$misc->href}&",
- 'vars' => array('type' => 'basename'),
- ),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&",
/**
* Manage views in a database
*
- * $Id: views.php,v 1.68 2007/05/02 16:12:07 ioguix Exp $
+ * $Id: views.php,v 1.69 2007/05/03 17:01:03 ioguix Exp $
*/
// Include application functions
'view' => array(
'title' => $lang['strview'],
'field' => 'relname',
+ 'url' => "redirect.php?subject=view&{$misc->href}&",
+ 'vars' => array('view' => 'relname'),
),
'owner' => array(
'title' => $lang['strowner'],
);
$actions = array(
- 'properties' => array(
- 'title' => $lang['strproperties'],
- 'url' => "redirect.php?subject=view&{$misc->href}&",
- 'vars' => array('view' => 'relname'),
- ),
'browse' => array(
'title' => $lang['strbrowse'],
'url' => "display.php?{$misc->href}&subject=view&return_url=".urlencode("views.php?{$misc->href}")."&return_desc=".urlencode($lang['strback'])."&",