tbrehm
2008-06-04 9100936bfe5c1aadd167f9179a2af01882c59c1d
- Modified pages to use a global module aurhentification function
- Changed shell of website linux user to /bin/false
125 files modified
2264 ■■■■■ changed files
interface/lib/classes/auth.inc.php 10 ●●●●● patch | view | raw | blame | history
interface/web/admin/dbsync_del.php 6 ●●●● patch | view | raw | blame | history
interface/web/admin/dbsync_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/dbsync_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/filesync_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/filesync_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/filesync_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/groups_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/groups_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/groups_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/language_add.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/language_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/language_export.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/language_import.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/language_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/server_del.php 103 ●●●● patch | view | raw | blame | history
interface/web/admin/server_edit.php 107 ●●●● patch | view | raw | blame | history
interface/web/admin/server_ip_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/server_ip_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/server_ip_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/server_list.php 103 ●●●● patch | view | raw | blame | history
interface/web/admin/users_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/users_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/admin/users_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/client/client_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/client/client_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/client/client_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/form_edit.php 305 ●●●● patch | view | raw | blame | history
interface/web/designer/form_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/form_show.php 239 ●●●● patch | view | raw | blame | history
interface/web/designer/module_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_nav_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_nav_edit.php 5 ●●●● patch | view | raw | blame | history
interface/web/designer/module_nav_flip.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_nav_item_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_nav_item_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_nav_item_flip.php 7 ●●●● patch | view | raw | blame | history
interface/web/designer/module_show.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_a_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_a_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_alias_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_cname_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_hinfo_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_mx_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_ns_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_ptr_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_rp_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_rr_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_soa_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_soa_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_soa_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_srv_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_txt_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/help/support_message_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/help/support_message_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/help/support_message_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_alias_del.php 103 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_alias_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_alias_list.php 53 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_blacklist_del.php 103 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_blacklist_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_blacklist_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_content_filter_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_content_filter_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_content_filter_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_catchall_del.php 103 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_catchall_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_catchall_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_forward_del.php 103 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_forward_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_forward_list.php 53 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_get_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_get_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_get_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_spamfilter_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_spamfilter_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_spamfilter_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_transport_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_transport_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_transport_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_user_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_user_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_user_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_user_stats.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_whitelist_del.php 103 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_whitelist_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/mail_whitelist_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_blacklist_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_blacklist_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_blacklist_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_config_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_config_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_config_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_policy_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_policy_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_policy_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_users_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_users_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_users_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_whitelist_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_whitelist_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/mail/spamfilter_whitelist_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/monitor/logview.php 7 ●●●● patch | view | raw | blame | history
interface/web/monitor/system.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/ajax_get_ip.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/ftp_user_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/ftp_user_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/ftp_user_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/shell_user_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/shell_user_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/shell_user_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_aliasdomain_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_aliasdomain_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_aliasdomain_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_domain_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_domain_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_domain_list.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_subdomain_del.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_subdomain_edit.php 7 ●●●● patch | view | raw | blame | history
interface/web/sites/web_subdomain_list.php 7 ●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/auth.inc.php
@@ -90,6 +90,16 @@
            return false;
        }
    }
    public function check_module_permissions($module) {
        // Check if the current user has the permissions to access this module
        if(!stristr($_SESSION["s"]["user"]["modules"],$module)) {
            header("Location: ../index.php");
            exit;
        }
    }
}
?>
interface/web/admin/dbsync_del.php
@@ -39,11 +39,7 @@
* End Form configuration
******************************************/
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
$app->auth->check_module_permissions('admin');
include_once($list_def_file);
interface/web/admin/dbsync_edit.php
@@ -39,11 +39,8 @@
* End Form configuration
******************************************/
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
// Lade Template
$app->uses('tpl,tform');
interface/web/admin/dbsync_list.php
@@ -39,11 +39,8 @@
* End Form configuration
******************************************/
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses('tpl,listform');
interface/web/admin/filesync_del.php
@@ -39,11 +39,8 @@
* End Form configuration
******************************************/
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
include_once($list_def_file);
interface/web/admin/filesync_edit.php
@@ -39,11 +39,8 @@
* End Form configuration
******************************************/
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
// Lade Template
$app->uses('tpl,tform');
interface/web/admin/filesync_list.php
@@ -39,11 +39,8 @@
* End Form configuration
******************************************/
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses('tpl,listform');
interface/web/admin/groups_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/admin/groups_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/admin/groups_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses('listform_actions');
$app->listform_actions->onLoad();
interface/web/admin/language_add.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],'admin')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
//* This is only allowed for administrators
if(!$app->auth->is_admin()) die('only allowed for administrators.');
interface/web/admin/language_edit.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],'admin')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
//* This is only allowed for administrators
if(!$app->auth->is_admin()) die('only allowed for administrators.');
interface/web/admin/language_export.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],'admin')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
//* This is only allowed for administrators
if(!$app->auth->is_admin()) die('only allowed for administrators.');
interface/web/admin/language_import.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],'admin')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
//* This is only allowed for administrators
if(!$app->auth->is_admin()) die('only allowed for administrators.');
interface/web/admin/language_list.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],'admin')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
//* This is only allowed for administrators
if(!$app->auth->is_admin()) die('only allowed for administrators.');
interface/web/admin/server_del.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/server.list.php";
$tform_def_file = "form/server.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"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses("tform_actions");
$app->tform_actions->onDelete();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/server.list.php";
$tform_def_file = "form/server.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
?>
interface/web/admin/server_edit.php
@@ -1,56 +1,53 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$tform_def_file = "form/server.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
// Loading classes
$app->uses('tpl,tform,tform_actions');
// let tform_actions handle the page
$app->tform_actions->onLoad();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$tform_def_file = "form/server.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('admin');
// Loading classes
$app->uses('tpl,tform,tform_actions');
// let tform_actions handle the page
$app->tform_actions->onLoad();
?>
interface/web/admin/server_ip_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'admin')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/admin/server_ip_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'admin')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/admin/server_ip_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'admin')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses('listform_actions');
$app->listform_actions->onLoad();
interface/web/admin/server_list.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
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/server.list.php";
/******************************************
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses('listform_actions');
$app->listform_actions->onLoad();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
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/server.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses('listform_actions');
$app->listform_actions->onLoad();
?>
interface/web/admin/users_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/admin/users_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/admin/users_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->uses('listform_actions');
$app->listform_actions->onLoad();
interface/web/client/client_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('client');
$app->uses('tpl,tform');
$app->load('tform_actions');
interface/web/client/client_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('client');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/client/client_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('client');
$app->uses('listform_actions');
$app->listform_actions->onLoad();
interface/web/designer/form_edit.php
@@ -1,155 +1,152 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
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');
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
// Lade Template
$app->uses('tpl');
$app->tpl->newTemplate("form.tpl.htm");
$app->tpl->setInclude('content_tpl','templates/form_edit.htm');
// Importing variables
$module_name = $_REQUEST["module_name"];
$form_name = $_REQUEST["form_name"];
// Checking imported variables
if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$form_name)) die("form_name contains invalid chars.");
$id = $form_name;
if(count($_POST) > 1) {
    // Bestimme aktion
    if($id != '') {
        $action = 'UPDATE';
    } else {
        $action = 'INSERT';
    }
    if($error == '') {
        $filename = "../".$module_name."/form/".$form_name.".tform.php";
        $form_new = $_POST["form"];
        if(@is_file($filename)) {
            include_once($filename);
            $tabs = $form["tabs"];
            unset($form["tabs"]);
            $form_new["tabs"] = $tabs;
        }
        $file_content = "<?php\r\n".'$form = '.var_export($form_new,true)."\r\n?>";
        die($file_content);
        // writing module.conf
        if (!$handle = fopen($filename, 'w')) {
            print "Cannot open file ($filename)";
            exit;
        }
        if (!fwrite($handle, $file_content)) {
            print "Cannot write to file ($filename)";
            exit;
        }
        fclose($handle);
        // zu Liste springen
        header("Location: form_list.php");
        exit;
    } else {
        $app->tpl->setVar("error","<b>Fehler:</b><br>".$error);
        $app->tpl->setVar($_POST);
    }
}
if($id != '') {
// Datensatz besteht bereits
    // bestehenden Datensatz anzeigen
    if($error == '') {
        // es liegt ein Fehler vor
        include_once("../".$module_name."/form/".$form_name.".tform.php");
        //$tabs = $form["tabs"];
        unset($form["tabs"]);
        $record = $form;
        $record["form_name"] = $form_name;
        $record["module_name"] = $module_name;
        $record["auth_preset_userid"] = $form["auth_preset"]["userid"];
        $record["auth_preset_groupid"] = $form["auth_preset"]["groupid"];
        $record["auth_preset_perm_user"] = $form["auth_preset"]["perm_user"];
        $record["auth_preset_perm_group"] = $form["auth_preset"]["perm_group"];
        $record["auth_preset_perm_other"] = $form["auth_preset"]["perm_other"];
    } else {
        // ein Fehler
        $record = $_POST;
        //$navi = $_POST["nav"];
        unset($_POST["tabs"]);
    }
    $record["readonly"] = 'style="background-color: #EEEEEE;" readonly';
} else {
// neuer datensatz
    if($error == '') {
        // es liegt kein Fehler vor
        // Pewsets
        $record["template"] = "module.tpl.htm";
    } else {
        // ein Fehler
        $record = $_POST;
        unset($_POST["tabs"]);
    }
    $record["readonly"] = '';
}
$record["id"] = $form_name;
$app->tpl->setVar($record);
include_once("lib/lang/".$_SESSION["s"]["language"]."_form_edit.lng");
$app->tpl->setVar($wb);
// Defaultwerte setzen
$app->tpl_defaults();
// Template parsen
$app->tpl->pparse();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
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');
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
$app->tpl->newTemplate("form.tpl.htm");
$app->tpl->setInclude('content_tpl','templates/form_edit.htm');
// Importing variables
$module_name = $_REQUEST["module_name"];
$form_name = $_REQUEST["form_name"];
// Checking imported variables
if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$form_name)) die("form_name contains invalid chars.");
$id = $form_name;
if(count($_POST) > 1) {
    // Bestimme aktion
    if($id != '') {
        $action = 'UPDATE';
    } else {
        $action = 'INSERT';
    }
    if($error == '') {
        $filename = "../".$module_name."/form/".$form_name.".tform.php";
        $form_new = $_POST["form"];
        if(@is_file($filename)) {
            include_once($filename);
            $tabs = $form["tabs"];
            unset($form["tabs"]);
            $form_new["tabs"] = $tabs;
        }
        $file_content = "<?php\r\n".'$form = '.var_export($form_new,true)."\r\n?>";
        die($file_content);
        // writing module.conf
        if (!$handle = fopen($filename, 'w')) {
            print "Cannot open file ($filename)";
            exit;
        }
        if (!fwrite($handle, $file_content)) {
            print "Cannot write to file ($filename)";
            exit;
        }
        fclose($handle);
        // zu Liste springen
        header("Location: form_list.php");
        exit;
    } else {
        $app->tpl->setVar("error","<b>Fehler:</b><br>".$error);
        $app->tpl->setVar($_POST);
    }
}
if($id != '') {
// Datensatz besteht bereits
    // bestehenden Datensatz anzeigen
    if($error == '') {
        // es liegt ein Fehler vor
        include_once("../".$module_name."/form/".$form_name.".tform.php");
        //$tabs = $form["tabs"];
        unset($form["tabs"]);
        $record = $form;
        $record["form_name"] = $form_name;
        $record["module_name"] = $module_name;
        $record["auth_preset_userid"] = $form["auth_preset"]["userid"];
        $record["auth_preset_groupid"] = $form["auth_preset"]["groupid"];
        $record["auth_preset_perm_user"] = $form["auth_preset"]["perm_user"];
        $record["auth_preset_perm_group"] = $form["auth_preset"]["perm_group"];
        $record["auth_preset_perm_other"] = $form["auth_preset"]["perm_other"];
    } else {
        // ein Fehler
        $record = $_POST;
        //$navi = $_POST["nav"];
        unset($_POST["tabs"]);
    }
    $record["readonly"] = 'style="background-color: #EEEEEE;" readonly';
} else {
// neuer datensatz
    if($error == '') {
        // es liegt kein Fehler vor
        // Pewsets
        $record["template"] = "module.tpl.htm";
    } else {
        // ein Fehler
        $record = $_POST;
        unset($_POST["tabs"]);
    }
    $record["readonly"] = '';
}
$record["id"] = $form_name;
$app->tpl->setVar($record);
include_once("lib/lang/".$_SESSION["s"]["language"]."_form_edit.lng");
$app->tpl->setVar($wb);
// Defaultwerte setzen
$app->tpl_defaults();
// Template parsen
$app->tpl->pparse();
?>
interface/web/designer/form_list.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],$_SESSION['s']['module']['name'])) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
$app->uses('tpl');
interface/web/designer/form_show.php
@@ -1,122 +1,119 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
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');
// Checking permissions for the module
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
$app->uses('tpl');
$app->tpl->newTemplate("form.tpl.htm");
$app->tpl->setInclude('content_tpl','templates/form_show.htm');
// TODO: Check ID for malicius chars
$module_name = $_REQUEST["module_name"];
$form_name = $_REQUEST["form_name"];
if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$form_name)) die("form_name contains invalid chars.");
include_once("../".$module_name."/form/".$form_name.".tform.php");
$tabs = $form["tabs"];
unset($form["tabs"]);
$record = $form;
$record["form_name"] = $form_name;
$record["module_name"] = $module_name;
// loading language file
$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_form_show.lng";
include($lng_file);
$app->tpl->setVar($wb);
// baue Tabs navi
$content = "";
$n1 = 0;
$n2 = 0;
if(is_array($tabs)) {
foreach($tabs as $tab_id => $tab) {
    $content .= "<tr>
    <td colspan='2' class='frmText11'>
      <table width='100%'>
          <tr>
          <td class='tblHead'>$tab[title]</td>
          <td class='tblHead' width='220' align='right'>
          <input type=\"button\" name=\"bt1$n2\" value=\"$wb[edit_txt]\" onClick=\"location.href='form_tab_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id'\" class=\"button\" />
          <input type=\"button\" name=\"bt2$n2\" value=\"$wb[delete_txt]\" onClick=\"del_menu('form_tab_del.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id');\" class=\"button\" />
          <input type=\"button\" name=\"bt3$n2\" value=\"$wb[new_txt]\" onClick=\"location.href='form_tab_item_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id'\" class=\"button\" />
          <input type=\"button\" name=\"bt4$n2\" value=\"$wb[up_txt]\" onClick=\"location.href='form_tab_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&dir=up'\" class=\"button\" />
          <input type=\"button\" name=\"bt5$n2\" value=\"$wb[down_txt]\" onClick=\"location.href='form_tab_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&dir=down'\" class=\"button\" />
          </td>
        </tr>";
    //$content .= "<tr><td bgcolor='#EEEEEE' class='frmText11'>Bereich:</td><td class='frmText11' bgcolor='#EEEEEE'><input name=\"module[nav][$n1][title]\" type=\"text\" class=\"text\" value=\"$section[title]\" size=\"30\" maxlength=\"255\"><input name=\"module[nav][$n1][open]\" type=\"hidden\" value=\"$section[open]\"></td></tr>\r\n";
    foreach($tab["fields"] as $field_id => $field) {
        //$content .= "<tr><td class='frmText11'>Titel:</td><td class='frmText11'><input name=\"module[nav][$n1][items][$n2][title]\" type=\"text\" class=\"text\" value=\"$item[title]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n";
        //$content .= "<tr><td class='frmText11'>Ziel:</td><td class='frmText11'>&nbsp; &nbsp; &nbsp; &nbsp;<input name=\"module[nav][$n1][items][$n2][target]\" type=\"text\" class=\"text\" value=\"$item[target]\" size=\"10\" maxlength=\"255\"></td></tr>\r\n";
        //$content .= "<tr><td class='frmText11'>Link:</td><td class='frmText11'>&nbsp; &nbsp; &nbsp; &nbsp;<input name=\"module[nav][$n1][items][$n2][link]\" type=\"text\" class=\"text\" value=\"$item[link]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n";
        $content .= "<tr>
          <td class='frmText11'>$field_id</td>
          <td class='frmText11' width='220' align='right'>
          <input type=\"button\" name=\"bt6$n2\" value=\"$wb[edit_txt]\" onClick=\"location.href='form_field_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id'\" class=\"button\" />
          <input type=\"button\" name=\"bt7$n2\" value=\"$wb[delete_txt]\" onClick=\"del_menuitem('form_field_del.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id');\" class=\"button\" />
          <input type=\"button\" name=\"bt8$n2\" value=\"$wb[up_txt]\" onClick=\"location.href='form_field_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id&dir=up'\" class=\"button\" />
          <input type=\"button\" name=\"bt9$n2\" value=\"$wb[down_txt]\" onClick=\"location.href='form_field_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id&dir=down'\" class=\"button\" />
          </td>
        </tr>";
        $n2++;
    }
    $content .= "<tr><td colspan='2' class='tblFooter'>&nbsp;</td></tr>
      </table>
    </td>
  </tr>";
    $n1++;
}
}
$record["nav"] = $content;
$app->tpl->setVar($record);
$app->tpl->setLoop('records',$modules_list);
$app->tpl_defaults();
$app->tpl->pparse();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
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');
//* Check permissions for module
$app->auth->check_module_permissions('designer');
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
$app->uses('tpl');
$app->tpl->newTemplate("form.tpl.htm");
$app->tpl->setInclude('content_tpl','templates/form_show.htm');
// TODO: Check ID for malicius chars
$module_name = $_REQUEST["module_name"];
$form_name = $_REQUEST["form_name"];
if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars.");
if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$form_name)) die("form_name contains invalid chars.");
include_once("../".$module_name."/form/".$form_name.".tform.php");
$tabs = $form["tabs"];
unset($form["tabs"]);
$record = $form;
$record["form_name"] = $form_name;
$record["module_name"] = $module_name;
// loading language file
$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_form_show.lng";
include($lng_file);
$app->tpl->setVar($wb);
// baue Tabs navi
$content = "";
$n1 = 0;
$n2 = 0;
if(is_array($tabs)) {
foreach($tabs as $tab_id => $tab) {
    $content .= "<tr>
    <td colspan='2' class='frmText11'>
      <table width='100%'>
          <tr>
          <td class='tblHead'>$tab[title]</td>
          <td class='tblHead' width='220' align='right'>
          <input type=\"button\" name=\"bt1$n2\" value=\"$wb[edit_txt]\" onClick=\"location.href='form_tab_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id'\" class=\"button\" />
          <input type=\"button\" name=\"bt2$n2\" value=\"$wb[delete_txt]\" onClick=\"del_menu('form_tab_del.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id');\" class=\"button\" />
          <input type=\"button\" name=\"bt3$n2\" value=\"$wb[new_txt]\" onClick=\"location.href='form_tab_item_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id'\" class=\"button\" />
          <input type=\"button\" name=\"bt4$n2\" value=\"$wb[up_txt]\" onClick=\"location.href='form_tab_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&dir=up'\" class=\"button\" />
          <input type=\"button\" name=\"bt5$n2\" value=\"$wb[down_txt]\" onClick=\"location.href='form_tab_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&dir=down'\" class=\"button\" />
          </td>
        </tr>";
    //$content .= "<tr><td bgcolor='#EEEEEE' class='frmText11'>Bereich:</td><td class='frmText11' bgcolor='#EEEEEE'><input name=\"module[nav][$n1][title]\" type=\"text\" class=\"text\" value=\"$section[title]\" size=\"30\" maxlength=\"255\"><input name=\"module[nav][$n1][open]\" type=\"hidden\" value=\"$section[open]\"></td></tr>\r\n";
    foreach($tab["fields"] as $field_id => $field) {
        //$content .= "<tr><td class='frmText11'>Titel:</td><td class='frmText11'><input name=\"module[nav][$n1][items][$n2][title]\" type=\"text\" class=\"text\" value=\"$item[title]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n";
        //$content .= "<tr><td class='frmText11'>Ziel:</td><td class='frmText11'>&nbsp; &nbsp; &nbsp; &nbsp;<input name=\"module[nav][$n1][items][$n2][target]\" type=\"text\" class=\"text\" value=\"$item[target]\" size=\"10\" maxlength=\"255\"></td></tr>\r\n";
        //$content .= "<tr><td class='frmText11'>Link:</td><td class='frmText11'>&nbsp; &nbsp; &nbsp; &nbsp;<input name=\"module[nav][$n1][items][$n2][link]\" type=\"text\" class=\"text\" value=\"$item[link]\" size=\"30\" maxlength=\"255\"></td></tr>\r\n";
        $content .= "<tr>
          <td class='frmText11'>$field_id</td>
          <td class='frmText11' width='220' align='right'>
          <input type=\"button\" name=\"bt6$n2\" value=\"$wb[edit_txt]\" onClick=\"location.href='form_field_edit.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id'\" class=\"button\" />
          <input type=\"button\" name=\"bt7$n2\" value=\"$wb[delete_txt]\" onClick=\"del_menuitem('form_field_del.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id');\" class=\"button\" />
          <input type=\"button\" name=\"bt8$n2\" value=\"$wb[up_txt]\" onClick=\"location.href='form_field_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id&dir=up'\" class=\"button\" />
          <input type=\"button\" name=\"bt9$n2\" value=\"$wb[down_txt]\" onClick=\"location.href='form_field_flip.php?module_name=$module_name&form_name=$form_name&tab_id=$tab_id&field_id=$field_id&dir=down'\" class=\"button\" />
          </td>
        </tr>";
        $n2++;
    }
    $content .= "<tr><td colspan='2' class='tblFooter'>&nbsp;</td></tr>
      </table>
    </td>
  </tr>";
    $n1++;
}
}
$record["nav"] = $content;
$app->tpl->setVar($record);
$app->tpl->setLoop('records',$modules_list);
$app->tpl_defaults();
$app->tpl->pparse();
?>
interface/web/designer/module_edit.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
interface/web/designer/module_list.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for the module
if(!stristr($_SESSION['s']['user']['modules'],$_SESSION['s']['module']['name'])) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
$app->uses('tpl');
interface/web/designer/module_nav_del.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
interface/web/designer/module_nav_edit.php
@@ -36,10 +36,7 @@
}
//* Check permissions for module
if(!stristr($_SESSION['s']['user']['modules'],$_SESSION['s']['module']['name'])) {
    header('Location: ../index.php');
    exit;
}
$app->auth->check_module_permissions('designer');
//* Load template
$app->uses('tpl');
interface/web/designer/module_nav_flip.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
interface/web/designer/module_nav_item_del.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
interface/web/designer/module_nav_item_edit.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
interface/web/designer/module_nav_item_flip.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
interface/web/designer/module_show.php
@@ -30,11 +30,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking permissions for the module
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('designer');
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
interface/web/dns/dns_a_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_a_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
$app->uses('listform_actions');
$app->listform_actions->SQLExtWhere = "type = 'A'";
interface/web/dns/dns_alias_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_cname_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_hinfo_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_mx_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_ns_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_ptr_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_rp_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_rr_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/dns/dns_soa_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/dns/dns_soa_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_soa_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
$app->uses('listform_actions');
// $app->listform_actions->SQLExtWhere = "access = 'REJECT'";
interface/web/dns/dns_srv_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/dns/dns_txt_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'dns')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('dns');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/help/support_message_del.php
@@ -38,11 +38,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Check module permissions
if(!stristr($_SESSION['s']['user']['modules'], 'help')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('help');
//* Load the form
$app->uses('tform_actions');
interface/web/help/support_message_edit.php
@@ -7,11 +7,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Checking module permissions
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('help');
//* Loading the templating and form classes
$app->uses('tpl,tform,tform_actions');
interface/web/help/support_message_list.php
@@ -5,11 +5,8 @@
//* Path to the list definition file
$list_def_file = "list/support_message.list.php";
//* Check the module permissions
if(!stristr($_SESSION['s']['user']["modules"], 'help')) {
    header('Location: ../index.php');
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('help');
//* Loading the class
$app->uses('listform_actions');
interface/web/mail/mail_alias_del.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_alias.list.php";
$tform_def_file = "form/mail_alias.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"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses("tform_actions");
$app->tform_actions->onDelete();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_alias.list.php";
$tform_def_file = "form/mail_alias.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
?>
interface/web/mail/mail_alias_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_alias_list.php
@@ -1,29 +1,26 @@
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_alias.list.php";
/******************************************
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses('listform_actions');
// Limit the results to alias domains
$app->listform_actions->SQLExtWhere = "type = 'alias'";
$app->listform_actions->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_alias.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
// Limit the results to alias domains
$app->listform_actions->SQLExtWhere = "type = 'alias'";
$app->listform_actions->onLoad();
?>
interface/web/mail/mail_blacklist_del.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_blacklist.list.php";
$tform_def_file = "form/mail_blacklist.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"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses("tform_actions");
$app->tform_actions->onDelete();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_blacklist.list.php";
$tform_def_file = "form/mail_blacklist.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
?>
interface/web/mail/mail_blacklist_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_blacklist_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
$app->listform_actions->SQLExtWhere = "access = 'REJECT'";
interface/web/mail/mail_content_filter_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/mail_content_filter_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
if(!$_SESSION["s"]["user"]["typ"] == 'admin') die('These Filters are only for Admins.');
interface/web/mail/mail_content_filter_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_domain_catchall_del.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_domain_catchall.list.php";
$tform_def_file = "form/mail_domain_catchall.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"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses("tform_actions");
$app->tform_actions->onDelete();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_domain_catchall.list.php";
$tform_def_file = "form/mail_domain_catchall.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
?>
interface/web/mail/mail_domain_catchall_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_domain_catchall_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_domain_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_domain_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_domain_list.php
@@ -13,11 +13,8 @@
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_forward_del.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_forward.list.php";
$tform_def_file = "form/mail_forward.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"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses("tform_actions");
$app->tform_actions->onDelete();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_forward.list.php";
$tform_def_file = "form/mail_forward.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
?>
interface/web/mail/mail_forward_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_forward_list.php
@@ -1,29 +1,26 @@
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_forward.list.php";
/******************************************
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses('listform_actions');
// Limit the results to alias domains
$app->listform_actions->SQLExtWhere = "type = 'forward'";
$app->listform_actions->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_forward.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
// Limit the results to alias domains
$app->listform_actions->SQLExtWhere = "type = 'forward'";
$app->listform_actions->onLoad();
?>
interface/web/mail/mail_get_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/mail_get_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_get_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_spamfilter_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/mail_spamfilter_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_spamfilter_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_transport_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/mail_transport_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
interface/web/mail/mail_transport_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_user_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/mail_user_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_user_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
interface/web/mail/mail_user_stats.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->load('listform_actions');
interface/web/mail/mail_whitelist_del.php
@@ -1,54 +1,51 @@
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_whitelist.list.php";
$tform_def_file = "form/mail_whitelist.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"])) {
    header("Location: ../index.php");
    exit;
}
$app->uses("tform_actions");
$app->tform_actions->onDelete();
<?php
/*
Copyright (c) 2005, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/mail_whitelist.list.php";
$tform_def_file = "form/mail_whitelist.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
?>
interface/web/mail/mail_whitelist_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/mail_whitelist_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
$app->listform_actions->SQLExtWhere = "access = 'OK'";
interface/web/mail/spamfilter_blacklist_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/spamfilter_blacklist_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/spamfilter_blacklist_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
$app->listform_actions->SQLExtWhere = "wb = 'B'";
interface/web/mail/spamfilter_config_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/spamfilter_config_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/spamfilter_config_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'mail')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
//$app->listform_actions->SQLExtWhere = "wb = 'W'";
interface/web/mail/spamfilter_policy_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/spamfilter_policy_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/spamfilter_policy_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
//$app->listform_actions->SQLExtWhere = "wb = 'W'";
interface/web/mail/spamfilter_users_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/spamfilter_users_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/spamfilter_users_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
//$app->listform_actions->SQLExtWhere = "wb = 'W'";
interface/web/mail/spamfilter_whitelist_del.php
@@ -42,11 +42,8 @@
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"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/mail/spamfilter_whitelist_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/mail/spamfilter_whitelist_list.php
@@ -12,11 +12,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('mail');
$app->uses('listform_actions');
$app->listform_actions->SQLExtWhere = "wb = 'W'";
interface/web/monitor/logview.php
@@ -31,11 +31,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'monitor')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('monitor');
// Loading the template
$app->uses('tpl');
interface/web/monitor/system.php
@@ -31,11 +31,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'monitor')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('monitor');
$mod = $_GET["mod"];
$output = '';
interface/web/sites/ajax_get_ip.php
@@ -31,11 +31,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$server_id = intval($_GET["server_id"]);
interface/web/sites/ftp_user_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/sites/ftp_user_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/sites/ftp_user_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses('listform_actions');
interface/web/sites/shell_user_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/sites/shell_user_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/sites/shell_user_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses('listform_actions');
interface/web/sites/web_aliasdomain_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/sites/web_aliasdomain_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/sites/web_aliasdomain_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses('listform_actions');
interface/web/sites/web_domain_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/sites/web_domain_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/sites/web_domain_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses('listform_actions');
interface/web/sites/web_subdomain_del.php
@@ -42,11 +42,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checke Berechtigungen für Modul
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
interface/web/sites/web_subdomain_edit.php
@@ -41,11 +41,8 @@
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
// Loading classes
$app->uses('tpl,tform,tform_actions');
interface/web/sites/web_subdomain_list.php
@@ -41,11 +41,8 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
    header("Location: ../index.php");
    exit;
}
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->uses('listform_actions');
server/plugins-available/apache2_plugin.inc.php
@@ -292,7 +292,7 @@
        
        $username = escapeshellcmd($data["new"]["system_user"]);
        if($data["new"]["system_user"] != '' && !$app->system->is_user($data["new"]["system_user"])) {
            exec("useradd -d ".escapeshellcmd($data["new"]["document_root"])." -g $groupname $username");
            exec("useradd -d ".escapeshellcmd($data["new"]["document_root"])." -g $groupname $username -s /bin/false");
            $app->log("Adding the user: $username",LOGLEVEL_DEBUG);
        }