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
|
|
|
|
2001-01-21 03:05:45 +01:00
|
|
|
if (! $app_name) {
|
2001-03-09 00:32:22 +01:00
|
|
|
Header("Location: " . $phpgw->link("/admin/applications.php"));
|
2001-01-21 03:05:45 +01:00
|
|
|
}
|
2000-08-19 21:48:29 +02:00
|
|
|
include("../header.inc.php");
|
2001-01-21 03:05:45 +01:00
|
|
|
$phpgw->template->set_file(array("body" => "delete_common.tpl"));
|
2000-08-19 21:48:29 +02:00
|
|
|
|
|
|
|
if ($confirm) {
|
2001-02-08 21:11:13 +01:00
|
|
|
$phpgw->db->query("delete from phpgw_applications where app_name='$app_name'",__LINE__,__FILE__);
|
2000-08-19 21:48:29 +02:00
|
|
|
|
2001-03-09 00:32:22 +01:00
|
|
|
Header("Location: " . $phpgw->link("/admin/applications.php"));
|
2000-12-23 23:50:32 +01:00
|
|
|
$phpgw->common->phpgw_exit();
|
2000-08-19 21:48:29 +02:00
|
|
|
}
|
|
|
|
|
2000-09-28 17:01:11 +02:00
|
|
|
$phpgw->common->phpgw_header();
|
2001-01-06 05:11:13 +01:00
|
|
|
echo parse_navbar();
|
2001-01-21 03:05:45 +01:00
|
|
|
|
2001-04-21 14:11:22 +02:00
|
|
|
$phpgw->template->set_var("messages",lang("Are you sure you want to delete this application ?"));
|
2001-03-09 00:32:22 +01:00
|
|
|
$phpgw->template->set_var("no",'<a href="' . $phpgw->link("/admin/applications.php")
|
2001-01-21 03:05:45 +01:00
|
|
|
. '">' . lang("No") . '</a>');
|
2001-03-09 00:32:22 +01:00
|
|
|
$phpgw->template->set_var("yes",'<a href="' . $phpgw->link("/admin/deleteapplication.php","app_name=" . urlencode($app_name) . "&confirm=True") . '">' . lang("Yes") . '</a>');
|
2001-01-21 03:05:45 +01:00
|
|
|
$phpgw->template->pparse("out","body");
|
|
|
|
|
2001-01-07 18:25:25 +01:00
|
|
|
$phpgw->common->phpgw_footer();
|
|
|
|
?>
|