egroupware/admin/deleteapplication.php

51 lines
1.8 KiB
PHP
Raw Normal View History

2000-08-19 21:48:29 +02:00
<?php
/**************************************************************************\
* phpGroupWare - administration *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
2000-11-25 22:51:19 +01:00
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "admin");
2000-08-19 21:48:29 +02:00
if (! $app_name)
Header("Location: " . $phpgw->link("applications.php"));
include("../header.inc.php");
if ($confirm) {
$phpgw->db->query("delete from applications where app_name='$app_name'");
Header("Location: " . $phpgw->link("applications.php"));
$phpgw->common->phpgw_exit();
2000-08-19 21:48:29 +02:00
}
$phpgw->common->phpgw_header();
echo parse_navbar();
2000-08-19 21:48:29 +02:00
?>
<center>
<table border=0 with=65%>
<tr colspan=2>
<td align=center>
2000-09-07 22:49:55 +02:00
<?php echo lang("Are you sure you want to delete this application ?"); ?>
2000-08-19 21:48:29 +02:00
<td>
</tr>
<tr>
<td>
2000-09-07 22:49:55 +02:00
<a href="<?php echo $phpgw->link("applications.php") . "\">" . lang("No") . "</a>"; ?>
2000-08-19 21:48:29 +02:00
</td>
<td>
2000-09-07 22:49:55 +02:00
<a href="<?php echo $phpgw->link("deleteapplication.php","app_name=" . urlencode($app_name) . "&confirm=True") . "\">" . lang("Yes") . "</a>"; ?>
2000-08-19 21:48:29 +02:00
</td>
</tr>
</table>
</center>
2000-09-25 23:13:52 +02:00
<?php
$phpgw->common->phpgw_footer();
2000-09-25 23:13:52 +02:00
?>