* A class that implements the DB interface for Postgres\r
* Note: This class uses ADODB and returns RecordSets.\r
*\r
- * $Id: Postgres.php,v 1.14 2002/09/27 04:02:54 xzilla Exp $\r
+ * $Id: Postgres.php,v 1.15 2002/09/27 14:15:47 xzilla Exp $\r
*/\r
\r
// @@@ THOUGHT: What about inherits? ie. use of ONLY???\r
* Drops a given sequence\r
* @return 0 success\r
*/\r
- function &dropSeqeuce($sequence) {\r
+ function &dropSequence($sequence) {\r
$this->clean($sequence);\r
$sql = "DROP SEQUENCE {$sequence} ";\r
return $this->execute($sql);\r
* FILENAME: sequence.php
* AUTHOR: Ray Hunter <rhunter@venticon.com>
*
- * $Id: sequences.php,v 1.5 2002/09/27 04:02:55 xzilla Exp $
+ * $Id: sequences.php,v 1.6 2002/09/27 14:15:49 xzilla Exp $
*/
include_once( '../conf/config.inc.php' );
echo "<td class=\"data{$id}\">";
echo "<a href=\"$PHP_SELF?action=properties&database=", htmlspecialchars($_REQUEST['database']), "&sequence=", htmlspecialchars( $sequences->f[$data->sqFields['seqname']]), "\">Properties</a></td>\n";
echo "<td class=\"data{$id}\">";
- echo "<a href=\"$PHP_SELF?action=drop&database=", htmlspecialchars($_REQUEST['database']), "&sequence=", htmlspecialchars( $sequences->f[$data->sqFields['seqname']]), "\">Drop</td>\n";
+ echo "<a href=\"$PHP_SELF?action=confirm_drop&database=", htmlspecialchars($_REQUEST['database']), "&sequence=", htmlspecialchars( $sequences->f[$data->sqFields['seqname']]), "\">Drop</td>\n";
echo "<td class=\"data{$id}\">";
echo "<a href=\"$PHP_SELF?action=priviledges&database=", htmlspecialchars($_REQUEST['database']), "&sequence=", htmlspecialchars( $sequences->f[$data->sqFields['seqname']]), "\">Privileges</td></tr>\n";
}
- function doDrop($strfirm)
+ function doDrop($confirm)
{
global $localData, $database;
- global $PHP_SELF;
+ global $PHP_SELF, $strSequences, $strDropped, $strDrop, $strFailed;
if ($confirm) {
echo "<h2>", htmlspecialchars($_REQUEST['database']), ": $strSequences : ", htmlspecialchars($_REQUEST['sequence']), ": Drop</h2>\n";
doProperties();
break;
case 'drop':
- doDrop();
- break;
+ if ($_POST['choice'] == 'Yes') doDrop(false);
+ else doDefault();
+ break;
+ case 'confirm_drop':
+ doDrop(true);
+ break;
case 'privileges':
doPrivileges();
break;