* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.250.2.4 2005/08/10 05:54:35 chriskl Exp $
+ * $Id: Postgres.php,v 1.250.2.5 2005/08/10 19:38:35 xzilla Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
function hasNamedParams() { return false; }
function hasUserAndDbVariables() { return false; }
function hasCompositeTypes() { return false; }
+ function hasFuncPrivs() { return false; }
}
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.140.2.4 2005/07/31 09:18:39 chriskl Exp $
+ * $Id: Postgres73.php,v 1.140.2.5 2005/08/10 19:38:35 xzilla Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
function hasViewColumnRename() { return true; }
function hasUserAndDbVariables() { return true; }
function hasCompositeTypes() { return true; }
+ function hasFuncPrivs() { return true; }
}
?>
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.47 2004/09/18 11:59:40 soranzo Exp $
+ * $Id: functions.php,v 1.47.2.1 2005/08/10 19:38:35 xzilla Exp $
*/
// Include application functions
'url' => "{$PHP_SELF}?action=confirm_drop&{$misc->href}&",
'vars' => array('function' => '+proproto', 'function_oid' => 'prooid'),
),
- 'privileges' => array(
- 'title' => $lang['strprivileges'],
- 'url' => "privileges.php?{$misc->href}&subject=function&",
- 'vars' => array('function' => '+proproto', 'function_oid' => 'prooid'),
+ 'privileges' => array(
+ 'title' => $lang['strprivileges'],
+ 'url' => "privileges.php?{$misc->href}&subject=function&",
+ 'vars' => array('function' => '+proproto', 'function_oid' => 'prooid'),
),
);
+
+ if (!$data->hasFuncPrivs()) {
+ array_pop($actions);
+ }
$misc->printTable($funcs, $columns, $actions, $lang['strnofunctions'], 'fnPre');