From 02195254d77e19b9ec32df5fae3f10954aad0beb Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 2 Dec 2007 19:23:08 +0000 Subject: [PATCH] common.php - define('POSTFIXADMIN', 1) templates/*.php - check if POSTFIXADMIN is defined to prevent direct access to the template files git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@256 a1433add-5e2c-0410-b055-b7f2511e0802 --- common.php | 3 +++ templates/admin_create-admin.php | 1 + templates/admin_create-domain.php | 1 + templates/admin_edit-admin.php | 1 + templates/admin_edit-domain.php | 1 + templates/admin_list-admin.php | 1 + templates/admin_list-domain.php | 1 + templates/admin_search.php | 1 + templates/broadcast-message.php | 1 + templates/create-alias.php | 1 + templates/create-mailbox.php | 1 + templates/edit-alias.php | 1 + templates/edit-mailbox.php | 1 + templates/edit-vacation.php | 1 + templates/fetchmail.php | 1 + templates/footer.php | 1 + templates/header.php | 1 + templates/index.php | 1 + templates/list-virtual.php | 1 + templates/login.php | 1 + templates/main.php | 1 + templates/menu.php | 1 + templates/message.php | 1 + templates/overview-get.php | 1 + templates/password.php | 1 + templates/search.php | 1 + templates/sendmail.php | 1 + templates/users_edit-alias.php | 1 + templates/users_login.php | 1 + templates/users_main.php | 1 + templates/users_menu.php | 1 + templates/users_password.php | 1 + templates/users_vacation.php | 1 + templates/viewlog.php | 1 + 34 files changed, 36 insertions(+) diff --git a/common.php b/common.php index 3b7d91c3..627ea33f 100644 --- a/common.php +++ b/common.php @@ -16,6 +16,9 @@ * All pages should include this file - which itself sets up the necessary * environment and ensures other functions are loaded. */ + +define('POSTFIXADMIN', 1); # checked in included files + $incpath = dirname(__FILE__); (ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1'); (ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1'); diff --git a/templates/admin_create-admin.php b/templates/admin_create-admin.php index ebadebbd..12386da6 100644 --- a/templates/admin_create-admin.php +++ b/templates/admin_create-admin.php @@ -1,3 +1,4 @@ +
diff --git a/templates/admin_create-domain.php b/templates/admin_create-domain.php index cda06a39..9e753509 100644 --- a/templates/admin_create-domain.php +++ b/templates/admin_create-domain.php @@ -1,3 +1,4 @@ +
diff --git a/templates/admin_edit-admin.php b/templates/admin_edit-admin.php index 992601ce..5cfabd96 100644 --- a/templates/admin_edit-admin.php +++ b/templates/admin_edit-admin.php @@ -1,3 +1,4 @@ +
diff --git a/templates/admin_edit-domain.php b/templates/admin_edit-domain.php index db5267ef..05b3aff1 100644 --- a/templates/admin_edit-domain.php +++ b/templates/admin_edit-domain.php @@ -1,3 +1,4 @@ +
diff --git a/templates/admin_list-admin.php b/templates/admin_list-admin.php index 755c163b..39198fd1 100644 --- a/templates/admin_list-admin.php +++ b/templates/admin_list-admin.php @@ -1,3 +1,4 @@ + 0) { diff --git a/templates/admin_list-domain.php b/templates/admin_list-domain.php index f7b1c57c..db60aea7 100644 --- a/templates/admin_list-domain.php +++ b/templates/admin_list-domain.php @@ -1,3 +1,4 @@ +
diff --git a/templates/create-alias.php b/templates/create-alias.php index 6682b136..0f29d9e9 100644 --- a/templates/create-alias.php +++ b/templates/create-alias.php @@ -1,3 +1,4 @@ +
diff --git a/templates/create-mailbox.php b/templates/create-mailbox.php index 0105cb72..ea208297 100644 --- a/templates/create-mailbox.php +++ b/templates/create-mailbox.php @@ -1,3 +1,4 @@ +
diff --git a/templates/edit-alias.php b/templates/edit-alias.php index 8de6a5a6..6c5376b8 100644 --- a/templates/edit-alias.php +++ b/templates/edit-alias.php @@ -1,3 +1,4 @@ +
diff --git a/templates/edit-mailbox.php b/templates/edit-mailbox.php index 4394f6a1..8ed3a166 100644 --- a/templates/edit-mailbox.php +++ b/templates/edit-mailbox.php @@ -1,3 +1,4 @@ +
diff --git a/templates/edit-vacation.php b/templates/edit-vacation.php index 8a9fe214..3fd349a7 100644 --- a/templates/edit-vacation.php +++ b/templates/edit-vacation.php @@ -1,3 +1,4 @@ +