From 30aa0891b8ef7204b899d90bf3757a5a1881d044 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 01 Nov 2007 16:54:45 -0400
Subject: [PATCH] - Enhanced the installation guides - added a daily cronjob for stats creation in the installer. - Fixed a bug in the spamfilter white / blacklist forms (thanks to satommy for reporting this) - fixed ssl cert path in vhost templates/web_domain_ssl.htm - fixed a bug in the apache plugin which prevented the copying of the standard error and index files.
---
interface/web/admin/users_del.php | 26 ++++++++------------------
1 files changed, 8 insertions(+), 18 deletions(-)
diff --git a/interface/web/admin/users_del.php b/interface/web/admin/users_del.php
index 4fe36df..cd3b279 100644
--- a/interface/web/admin/users_del.php
+++ b/interface/web/admin/users_del.php
@@ -1,6 +1,7 @@
<?php
+
/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
+Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -26,18 +27,20 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/users.list.php";
+$tform_def_file = "form/users.tform.php";
/******************************************
* End Form configuration
******************************************/
+
+require_once('../../lib/config.inc.php');
+require_once('../../lib/app.inc.php');
// Checke Berechtigungen f�r Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
@@ -45,20 +48,7 @@
exit;
}
-include_once($list_def_file);
+$app->uses("tform_actions");
+$app->tform_actions->onDelete();
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if($id > 0) {
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id");
- } else {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id and userid = ".$_SESSION["s"]["user"]["userid"]);
- }
-}
-
-
-header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
-exit;
?>
\ No newline at end of file
--
Gitblit v1.9.1