SF.net SVN: postfixadmin: [107] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2007-09-30 15:53:54
|
Revision: 107 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=107&view=rev Author: GingerDog Date: 2007-09-30 08:53:54 -0700 (Sun, 30 Sep 2007) Log Message: ----------- update license headers Modified Paths: -------------- trunk/admin/backup.php trunk/admin/broadcast-message.php trunk/admin/create-admin.php trunk/admin/create-alias.php trunk/admin/create-domain.php trunk/admin/create-mailbox.php trunk/admin/delete.php trunk/admin/edit-active-admin.php trunk/admin/edit-active-domain.php trunk/admin/edit-active.php trunk/admin/edit-admin.php trunk/admin/edit-alias.php trunk/admin/edit-domain.php trunk/admin/edit-mailbox.php trunk/admin/edit-vacation.php trunk/admin/index.php trunk/admin/list-admin.php trunk/admin/list-domain.php trunk/admin/list-virtual.php trunk/admin/main.php trunk/admin/search.php trunk/admin/viewlog.php trunk/common.php trunk/config.inc.php.sample trunk/create-alias.php trunk/create-mailbox.php trunk/delete.php trunk/edit-active.php trunk/edit-alias.php trunk/edit-mailbox.php trunk/edit-vacation.php trunk/functions.inc.php trunk/index.php trunk/login.php trunk/logout.php trunk/main.php trunk/overview.php trunk/password.php trunk/search.php trunk/sendmail.php trunk/setup.php trunk/users/edit-alias.php trunk/users/index.php trunk/users/login.php trunk/users/logout.php trunk/users/main.php trunk/users/password.php trunk/users/vacation.php trunk/variables.inc.php trunk/viewlog.php Modified: trunk/admin/backup.php =================================================================== --- trunk/admin/backup.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/backup.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,25 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: backup.php -// -// Template File: -none- -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: backup.php + * Used to save all settings - but only works for MySQL databases. + * Template File: -none- + * + * Template Variables: -none- + * + * Form POST \ GET Variables: -none- + */ require_once('../common.php'); Modified: trunk/admin/broadcast-message.php =================================================================== --- trunk/admin/broadcast-message.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/broadcast-message.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,30 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: broadcast-message.php -// -// Template File: broadcast-message.tpl -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// name -// subject -// message -// -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: broadcast-message.php + * Used to send a message to _ALL_ users with mailboxes on this server. + * + * Template File: broadcast-message.tpl + * + * Template Variables: -none- + * + * Form POST \ GET Variables: + * + * name + * subject + * message + */ require_once('../common.php'); Modified: trunk/admin/create-admin.php =================================================================== --- trunk/admin/create-admin.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/create-admin.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,28 +1,35 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: create-admin.php -// -// Template File: admin_create-admin.tpl -// -// -// Template Variables: -// -// tMessage -// tUsername -// tDomains -// -// Form POST \ GET Variables: -// -// fUsername -// fPassword -// fPassword2 -// fDomains -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: create-admin.php + * Used to create new administrators. + * Template File: admin_create-admin.tpl + * + * + * Template Variables: + * + * tMessage + * tUsername + * tDomains + * + * Form POST \ GET Variables: + * + * fUsername + * fPassword + * fPassword2 + * fDomains + */ require_once('../common.php'); Modified: trunk/admin/create-alias.php =================================================================== --- trunk/admin/create-alias.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/create-alias.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,28 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: create-alias.php -// -// Template File: create-alias.tpl -// -// Template Variables: -// -// tMessage -// tAddress -// tGoto -// tDomain -// -// Form POST \ GET Variables: -// -// fAddress -// fGoto -// fDomain -// - require ("../create-alias.php"); - ?> Modified: trunk/admin/create-domain.php =================================================================== --- trunk/admin/create-domain.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/create-domain.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,33 +1,40 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: create-domain.php -// -// Template File: admin_create-domain.tpl -// -// Template Variables: -// -// tMessage -// tDomain -// tDescription -// tAliases -// tMailboxes -// tMaxquota -// tDefaultaliases -// -// Form POST \ GET Variables: -// -// fDomain -// fDescription -// fAliases -// fMailboxes -// fMaxquota -// fDefaultaliases -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: create-domain.php + * Allows administrators to create new domains. + * Template File: admin_create-domain.tpl + * + * Template Variables: + * + * tMessage + * tDomain + * tDescription + * tAliases + * tMailboxes + * tMaxquota + * tDefaultaliases + * + * Form POST \ GET Variables: + * + * fDomain + * fDescription + * fAliases + * fMailboxes + * fMaxquota + * fDefaultaliases + */ require_once('../common.php'); Modified: trunk/admin/create-mailbox.php =================================================================== --- trunk/admin/create-mailbox.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/create-mailbox.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,35 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: create-mailbox.php -// -// Template File: create-mailbox.tpl -// -// Template Variables: -// -// tMessage -// tUsername -// tName -// tQuota -// tDomain -// -// Form POST \ GET Variables: -// -// fUsername -// fPassword -// fPassword2 -// fName -// fQuota -// fDomain -// fActive -// fMail -// - require ("../create-mailbox.php"); - -/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> Modified: trunk/admin/delete.php =================================================================== --- trunk/admin/delete.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/delete.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,33 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: delete.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fTable -// fWhere -// fDelete -// fDomain -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: delete.php + * Used to delete a domain, mailbox or alias. + * + * Template File: message.tpl + * + * Template Variables: + * + * tMessage + * + * Form POST \ GET Variables: + * + * fTable + * fWhere + * fDelete + * fDomain + */ require_once('../common.php'); Modified: trunk/admin/edit-active-admin.php =================================================================== --- trunk/admin/edit-active-admin.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-active-admin.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,30 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fUsername -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-active-admin.php + * Edit an active administrator. This is used as a 'toggle' page from list-admin. + * + * Template File: message.tpl + * + * Template Variables: + * + * tMessage + * + * Form POST \ GET Variables: + * + * fUsername + */ require_once('../common.php'); Modified: trunk/admin/edit-active-domain.php =================================================================== --- trunk/admin/edit-active-domain.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-active-domain.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,29 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fDomain -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-active-domain.php + * Responsible for toggling the status of a domain + * Template File: message.tpl + * + * Template Variables: + * + * tMessage + * + * Form POST \ GET Variables: + * + * fDomain + */ require_once('../common.php'); Modified: trunk/admin/edit-active.php =================================================================== --- trunk/admin/edit-active.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-active.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// - require("../edit-active.php"); - -/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> Modified: trunk/admin/edit-admin.php =================================================================== --- trunk/admin/edit-admin.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-admin.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,29 +1,37 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-admin.php -// -// Template File: admin_edit-admin.tpl -// -// Template Variables: -// -// tAllDomains -// tDomains -// tActive -// tSadmin -// -// Form POST \ GET Variables: -// -// fDescription -// fAliases -// fMailboxes -// fMaxquota -// fActive -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-admin.php + * Edits a normal administrator's details. + * + * Template File: admin_edit-admin.tpl + * + * Template Variables: + * + * tAllDomains + * tDomains + * tActive + * tSadmin + * + * Form POST \ GET Variables: + * + * fDescription + * fAliases + * fMailboxes + * fMaxquota + * fActive + */ require_once('../common.php'); Modified: trunk/admin/edit-alias.php =================================================================== --- trunk/admin/edit-alias.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-alias.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,26 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-alias.php -// -// Template File: edit-alias.tpl -// -// Template Variables: -// -// tMessage -// tGoto -// -// Form POST \ GET Variables: -// -// fAddress -// fDomain -// fGoto -// - require("../edit-alias.php"); - ?> Modified: trunk/admin/edit-domain.php =================================================================== --- trunk/admin/edit-domain.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-domain.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,30 +1,37 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-domain.php -// -// Template File: admin_edit-domain.tpl -// -// Template Variables: -// -// tDescription -// tAliases -// tMailboxes -// tMaxquota -// tActive -// -// Form POST \ GET Variables: -// -// fDescription -// fAliases -// fMailboxes -// fMaxquota -// fActive -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-domain.php + * Updates the properties of a domain. + * Template File: admin_edit-domain.tpl + * + * Template Variables: + * + * tDescription + * tAliases + * tMailboxes + * tMaxquota + * tActive + * + * Form POST \ GET Variables: + * + * fDescription + * fAliases + * fMailboxes + * fMaxquota + * fActive + */ require_once('../common.php'); Modified: trunk/admin/edit-mailbox.php =================================================================== --- trunk/admin/edit-mailbox.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-mailbox.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,32 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-mailbox.php -// -// Template File: edit-mailbox.tpl -// -// Template Variables: -// -// tMessage -// tName -// tQuota -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// fPassword -// fPassword2 -// fName -// fQuota -// fActive -// - require("../edit-mailbox.php"); - -/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> Modified: trunk/admin/edit-vacation.php =================================================================== --- trunk/admin/edit-vacation.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/edit-vacation.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,32 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2007 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-vacation.php -// -// Template File: edit-vacation.tpl -// -// Template Variables: -// -// tMessage -// tSubject -// tBody -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// fCanceltarget -// fChange -// fBack -// fQuota -// fActive -// -// - require ("../edit-vacation.php"); - ?> Modified: trunk/admin/index.php =================================================================== --- trunk/admin/index.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/index.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,4 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: index.php -// -// Template File: -none- -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// header ("Location: list-admin.php"); exit(0); ?> Modified: trunk/admin/list-admin.php =================================================================== --- trunk/admin/list-admin.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/list-admin.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,25 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: list-admin.php -// -// Template File: list-admin.tpl -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: list-admin.php + * Lists all administrators + * Template File: list-admin.tpl + * + * Template Variables: -none- + * + * Form POST \ GET Variables: -none- + */ require_once("../common.php"); Modified: trunk/admin/list-domain.php =================================================================== --- trunk/admin/list-domain.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/list-domain.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,29 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: list-domain.php -// -// Template File: admin_list-domain.tpl -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// fUsername -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: list-domain.php + * List all domains as a quick overview. + * Template File: admin_list-domain.tpl + * + * Template Variables: + * + * -none- + * + * Form POST \ GET Variables: + * + * fUsername + */ require_once('../common.php'); Modified: trunk/admin/list-virtual.php =================================================================== --- trunk/admin/list-virtual.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/list-virtual.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,33 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: list-virtual.php -// -// Template File: admin_list-virtual.tpl -// -// Template Variables: -// -// tMessage -// tAlias -// tMailbox -// -// Form POST \ GET Variables: -// -// fDomain -// fDisplay -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: list-virtual.php + * List virtual users for a domain. + * + * Template File: admin_list-virtual.tpl + * + * Template Variables: + * + * tMessage + * tAlias + * tMailbox + * + * Form POST \ GET Variables: + * + * fDomain + * fDisplay + */ require_once('../common.php'); Modified: trunk/admin/main.php =================================================================== --- trunk/admin/main.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/main.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,4 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: main.php -// -// Template File: -none- -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// header ("Location: list-admin.php"); exit; ?> Modified: trunk/admin/search.php =================================================================== --- trunk/admin/search.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/search.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,32 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: search.php -// -// Template File: search.tpl -// -// Template Variables: -// -// tAlias -// tMailbox -// -// Form POST \ GET Variables: -// -// search -// fDomain -// fGo -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: search.php + * Allows for search by e.g. name, mailbox name etc. + * Template File: search.tpl + * + * Template Variables: + * + * tAlias + * tMailbox + * + * Form POST \ GET Variables: + * + * search + * fDomain + * fGo + */ require_once('../common.php'); Modified: trunk/admin/viewlog.php =================================================================== --- trunk/admin/viewlog.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/admin/viewlog.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,3 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: viewlog.php -// -// Template File: viewlog.tpl -// -// Template Variables: -// -// tMessage -// tLog -// -// Form POST \ GET Variables: -// -// fDomain -// - require("../viewlog.php"); - -/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> Modified: trunk/common.php =================================================================== --- trunk/common.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/common.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,18 +1,21 @@ <?php -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: common.php.php -// -// Template File: -none- -// -// Template Variables: -none- -// -// Form POST \ GET Variables: -none- -// - +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: common.php + * All pages should include this file - which itself sets up the necessary + * environment and ensures other functions are loaded. + */ $incpath = dirname(__FILE__); (ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1'); (ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1'); Modified: trunk/config.inc.php.sample =================================================================== --- trunk/config.inc.php.sample 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/config.inc.php.sample 2007-09-30 15:53:54 UTC (rev 107) @@ -1,12 +1,21 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: config.inc.php -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: config.inc.php + * Contains configuration options. + */ + if (ereg ("config.inc.php", $_SERVER['PHP_SELF'])) { header ("Location: login.php"); Modified: trunk/create-alias.php =================================================================== --- trunk/create-alias.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/create-alias.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,27 +1,36 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: create-alias.php -// -// Template File: create-alias.tpl -// -// Template Variables: -// -// tMessage -// tAddress -// tGoto -// tDomain -// -// Form POST \ GET Variables: -// -// fAddress -// fGoto -// fDomain -// +/** + * Postfix Admin + * + * LICENSE + * + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * File: create-alias.php + * Template File: create-alias.tpl + * Responsible for allowing for the creation of mail aliases. + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * Template Variables: + * + * tMessage + * tAddress + * tGoto + * tDomain + * + * Form POST \ GET Variables: + * + * fAddress + * fGoto + * fDomain + * + */ require_once('common.php'); @@ -39,110 +48,116 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") { - - if (isset ($_GET['domain'])) $tDomain = escape_string ($_GET['domain']); - + if (isset ($_GET['domain'])) { + $tDomain = escape_string ($_GET['domain']); + } } if ($_SERVER['REQUEST_METHOD'] == "POST") { + if (isset ($_POST['fAddress']) && isset ($_POST['fDomain'])) { + $fAddress = escape_string($_POST['fAddress']) . "@" . escape_string ($_POST['fDomain']); + $fAddress = strtolower ($fAddress); + } - if (isset ($_POST['fAddress']) && isset ($_POST['fDomain'])) $fAddress = escape_string ($_POST['fAddress']) . "@" . escape_string ($_POST['fDomain']); - $fAddress = strtolower ($fAddress); - if (isset ($_POST['fGoto'])) $fGoto = escape_string ($_POST['fGoto']); - $fGoto = strtolower ($fGoto); - isset ($_POST['fActive']) ? $fActive = escape_string ($_POST['fActive']) : $fActive = "1"; - if (isset ($_POST['fDomain'])) $fDomain = escape_string ($_POST['fDomain']); + if (isset ($_POST['fGoto'])) { + $fGoto = escape_string ($_POST['fGoto']); + $fGoto = strtolower ($fGoto); + } + if(isset($_POST['fActive'])) { + $fActive = escape_string ($_POST['fActive']) + } + else { + $fActive = "1"; + } - if (!preg_match ('/@/',$fGoto)) - { - $fGoto = $fGoto . "@" . escape_string ($_POST['fDomain']); - } - - if (! (authentication_has_role('global-admin') || check_owner ($SESSID_USERNAME, $fDomain) )) - { - $error = 1; - $tAddress = escape_string ($_POST['fAddress']); - $tGoto = $fGoto; - $tDomain = $fDomain; - $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error1']; - } + if(isset($_POST['fDomain'])) { + $fDomain = escape_string ($_POST['fDomain']); + } - if (!check_alias ($fDomain)) - { - $error = 1; - $tAddress = escape_string ($_POST['fAddress']); - $tGoto = $fGoto; - $tDomain = $fDomain; - $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error3']; - } - - if (empty ($fAddress) or !check_email ($fAddress)) - { - $error = 1; - $tAddress = escape_string ($_POST['fAddress']); - $tGoto = $fGoto; - $tDomain = $fDomain; - $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error1']; - } + if(!preg_match ('/@/',$fGoto)) { + $fGoto = $fGoto . "@" . escape_string ($_POST['fDomain']); + } - if (empty ($fGoto) or !check_email ($fGoto)) - { - $error = 1; - $tAddress = escape_string ($_POST['fAddress']); - $tGoto = $fGoto; - $tDomain = $fDomain; - $pCreate_alias_goto_text = $PALANG['pCreate_alias_goto_text_error']; - } + if(!(authentication_has_role('global-admin') || + check_owner ($SESSID_USERNAME, $fDomain) )) + { + $error = 1; + $tAddress = escape_string ($_POST['fAddress']); + $tGoto = $fGoto; + $tDomain = $fDomain; + $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error1']; + } - if (escape_string ($_POST['fAddress']) == "*") $fAddress = "@" . escape_string ($_POST['fDomain']); + if(!check_alias($fDomain)) { + $error = 1; + $tAddress = escape_string ($_POST['fAddress']); + $tGoto = $fGoto; + $tDomain = $fDomain; + $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error3']; + } - $result = db_query ("SELECT * FROM $table_alias WHERE address='$fAddress'"); - if ($result['rows'] == 1) - { - $error = 1; - $tAddress = escape_string ($_POST['fAddress']); - $tGoto = $fGoto; - $tDomain = $fDomain; - $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error2']; - } + if(empty ($fAddress) || !check_email ($fAddress)) { + $error = 1; + $tAddress = escape_string ($_POST['fAddress']); + $tGoto = $fGoto; + $tDomain = $fDomain; + $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error1']; + } - if ($fActive == "on") - { - $sqlActive = db_get_boolean(True); - } - else - { - $sqlActive = db_get_boolean(False); - } + if (empty($fGoto) || !check_email ($fGoto)) { + $error = 1; + $tAddress = escape_string ($_POST['fAddress']); + $tGoto = $fGoto; + $tDomain = $fDomain; + $pCreate_alias_goto_text = $PALANG['pCreate_alias_goto_text_error']; + } - if ($error != 1) - { - if (preg_match ('/^\*@(.*)$/', $fGoto, $match)) $fGoto = "@" . $match[1]; - - $result = db_query ("INSERT INTO $table_alias (address,goto,domain,created,modified,active) VALUES ('$fAddress','$fGoto','$fDomain',NOW(),NOW(),'$sqlActive')"); - if ($result['rows'] != 1) - { - $tDomain = $fDomain; - $tMessage = $PALANG['pCreate_alias_result_error'] . "<br />($fAddress -> $fGoto)<br />\n"; - } - else - { - db_log ($SESSID_USERNAME, $fDomain, 'create_alias', "$fAddress -> $fGoto"); + if (escape_string($_POST['fAddress']) == "*") { + $fAddress = "@" . escape_string ($_POST['fDomain']); + } - $tDomain = $fDomain; - $tMessage = $PALANG['pCreate_alias_result_success'] . "<br />($fAddress -> $fGoto)<br />\n"; - } - } + $result = db_query ("SELECT * FROM $table_alias WHERE address='$fAddress'"); + if ($result['rows'] == 1) { + $error = 1; + $tAddress = escape_string ($_POST['fAddress']); + $tGoto = $fGoto; + $tDomain = $fDomain; + $pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error2']; + } + if ($fActive == "on") { + $sqlActive = db_get_boolean(True); + } + else { + $sqlActive = db_get_boolean(False); + } + + if ($error != 1) { + if (preg_match('/^\*@(.*)$/', $fGoto, $match)) { + $fGoto = "@" . $match[1]; + } + + $result = db_query ("INSERT INTO $table_alias (address,goto,domain,created,modified,active) VALUES ('$fAddress','$fGoto','$fDomain',NOW(),NOW(),'$sqlActive')"); + if ($result['rows'] != 1) { + $tDomain = $fDomain; + $tMessage = $PALANG['pCreate_alias_result_error'] . "<br />($fAddress -> $fGoto)<br />\n"; + } + else { + db_log ($SESSID_USERNAME, $fDomain, 'create_alias', "$fAddress -> $fGoto"); + + $tDomain = $fDomain; + $tMessage = $PALANG['pCreate_alias_result_success'] . "<br />($fAddress -> $fGoto)<br />\n"; + } + } } include ("$incpath/templates/header.tpl"); if (authentication_has_role('global-admin')) { - include ("$incpath/templates/admin_menu.tpl"); + include ("$incpath/templates/admin_menu.tpl"); } else { - include ("$incpath/templates/menu.tpl"); + include ("$incpath/templates/menu.tpl"); } include ("$incpath/templates/create-alias.tpl"); Modified: trunk/create-mailbox.php =================================================================== --- trunk/create-mailbox.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/create-mailbox.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,33 +1,42 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: create-mailbox.php -// -// Template File: create-mailbox.tpl -// -// Template Variables: -// -// tMessage -// tUsername -// tName -// tQuota -// tDomain -// -// Form POST \ GET Variables: -// -// fUsername -// fPassword -// fPassword2 -// fName -// fQuota -// fDomain -// fActive -// fMail -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: create-mailbox.php + * Responsible for allowing for the creation of mail boxes + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * Template Variables: + * + * tMessage + * tUsername + * tName + * tQuota + * tDomain + * + * Form POST \ GET Variables: + * + * fUsername + * fPassword + * fPassword2 + * fName + * fQuota + * fDomain + * fActive + * fMail + */ require_once('common.php'); Modified: trunk/delete.php =================================================================== --- trunk/delete.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/delete.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,23 +1,38 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: delete.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fDelete -// fDomain -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: delete.php + * Responsible for allowing for the deletion of domains; note if + * a domain is deleted, all mailboxes and aliases belonging to the + * domain are also removed. + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * Template Variables: + * + * Template File: message.tpl + * + * Template Variables: + * + * tMessage + * + * Form POST \ GET Variables: + * + * fDelete + * fDomain + */ require_once('common.php'); Modified: trunk/edit-active.php =================================================================== --- trunk/edit-active.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/edit-active.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,32 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-active.php -// -// Template File: message.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// fReturn -// - +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-active.php + * Responsible for toggling the active status of a mailbox. + * + * Template File: message.tpl + * + * Template Variables: + * + * tMessage + * + * Form POST \ GET Variables: + * + * fUsername + * fDomain + * fReturn + */ require_once('common.php'); authentication_require_role('admin'); Modified: trunk/edit-alias.php =================================================================== --- trunk/edit-alias.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/edit-alias.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,25 +1,33 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-alias.php -// -// Template File: edit-alias.tpl -// -// Template Variables: -// -// tMessage -// tGoto -// -// Form POST \ GET Variables: -// -// fAddress -// fDomain -// fGoto -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-alias.php + * Used to update an alias. + * + * Template File: edit-alias.tpl + * + * Template Variables: + * + * tMessage + * tGoto + * + * Form POST \ GET Variables: + * + * fAddress + * fDomain + * fGoto + */ require_once('common.php'); Modified: trunk/edit-mailbox.php =================================================================== --- trunk/edit-mailbox.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/edit-mailbox.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,30 +1,37 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-mailbox.php -// -// Template File: edit-mailbox.tpl -// -// Template Variables: -// -// tMessage -// tName -// tQuota -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// fPassword -// fPassword2 -// fName -// fQuota -// fActive -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-mailbox.php + * Used to update an existing mailboxes settings. + * Template File: edit-mailbox.tpl + * + * Template Variables: + * + * tMessage + * tName + * tQuota + * + * Form POST \ GET Variables: + * + * fUsername + * fDomain + * fPassword + * fPassword2 + * fName + * fQuota + * fActive + */ require_once('common.php'); Modified: trunk/edit-vacation.php =================================================================== --- trunk/edit-vacation.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/edit-vacation.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,33 +1,39 @@ <?php -// XXX TODO - Remove the code duplication between this file (for admins) and users/vacation.php -// - too much of the code is identical for there not to be some refactoring possible. -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2007 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: edit-vacation.php -// -// Template File: edit-vacation.tpl -// -// Template Variables: -// -// tUseremail -// tMessage -// tSubject -// tBody -// -// Form POST \ GET Variables: -// -// fUsername -// fDomain -// fCanceltarget -// fChange -// fBack -// fQuota -// fActive -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: edit-vacation.php + * Responsible for allowing users to update their vacation status. + * + * Template File: edit-vacation.tpl + * + * Template Variables: + * + * tUseremail + * tMessage + * tSubject + * tBody + * + * Form POST \ GET Variables: + * + * fUsername + * fDomain + * fCanceltarget + * fChange + * fBack + * fQuota + * fActive + */ require_once('common.php'); Modified: trunk/functions.inc.php =================================================================== --- trunk/functions.inc.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/functions.inc.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,13 +1,20 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: functions.inc.php -// -//error_reporting (E_NOTICE | E_ERROR | E_WARNING | E_PARSE); +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: functions.inc.php + * Contains re-usable code. + */ if (ereg ("functions.inc.php", $_SERVER['PHP_SELF'])) { Modified: trunk/index.php =================================================================== --- trunk/index.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/index.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,26 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: index.php -// -// Template File: -none- -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: index.php + * Shows a sort-of welcome page. + * Template File: -none- + * + * Template Variables: -none- + * + * Form POST \ GET Variables: -none- + */ + if (!file_exists (realpath ("./setup.php"))) { header ("Location: login.php"); Modified: trunk/login.php =================================================================== --- trunk/login.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/login.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,24 +1,31 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: login.php -// -// Template File: login.tpl -// -// Template Variables: -// -// tMessage -// tUsername -// -// Form POST \ GET Variables: -// -// fUsername -// fPassword -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: login.php + * Authenticates a user, and populates their $_SESSION as appropriate. + * Template File: login.tpl + * + * Template Variables: + * + * tMessage + * tUsername + * + * Form POST \ GET Variables: + * + * fUsername + * fPassword + */ require_once('common.php'); if ($_SERVER['REQUEST_METHOD'] == "GET") Modified: trunk/logout.php =================================================================== --- trunk/logout.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/logout.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,25 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: logout.php -// -// Template File: -none- -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: logout.php + * De-authenticates a user. + * Template File: -none- + * + * Template Variables: -none- + * + * Form POST \ GET Variables: -none- + */ require_once('common.php'); Modified: trunk/main.php =================================================================== --- trunk/main.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/main.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,22 +1,25 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: main.php -// -// Template File: main.tpl -// -// Template Variables: -// -// -none- -// -// Form POST \ GET Variables: -// -// -none- -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: main.php + * Displays a menu/home page. + * Template File: main.tpl + * + * Template Variables: -none- + * + * Form POST \ GET Variables: -none- + */ require_once('common.php'); @@ -24,19 +27,8 @@ authentication_require_role('admin'); -if ($_SERVER["REQUEST_METHOD"] == "GET") -{ - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/main.tpl"); - include ("./templates/footer.tpl"); -} - -if ($_SERVER["REQUEST_METHOD"] == "POST") -{ - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/main.tpl"); - include ("./templates/footer.tpl"); -} +include ("./templates/header.tpl"); +include ("./templates/menu.tpl"); +include ("./templates/main.tpl"); +include ("./templates/footer.tpl"); ?> Modified: trunk/overview.php =================================================================== --- trunk/overview.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/overview.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,28 +1,36 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: overview.php -// -// Template File: overview.tpl -// -// Template Variables: -// -// tAlias -// tDomain -// tMailbox -// tDisplay_back -// tDisplay_next -// -// Form POST \ GET Variables: -// -// domain -// fDomain -// limit -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: overview.php + * Shows an overview for admins. + * + * Template File: overview.tpl + * + * Template Variables: + * + * tAlias + * tDomain + * tMailbox + * tDisplay_back + * tDisplay_next + * + * Form POST \ GET Variables: + * + * domain + * fDomain + * limit + */ require_once('common.php'); Modified: trunk/password.php =================================================================== --- trunk/password.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/password.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,24 +1,31 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: password.php -// -// Template File: password.tpl -// -// Template Variables: -// -// tMessage -// -// Form POST \ GET Variables: -// -// fPassword_current -// fPassword -// fPassword2 -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: password.php + * Allows admins to change their own password. + * Template File: password.tpl + * + * Template Variables: + * + * tMessage + * + * Form POST \ GET Variables: + * + * fPassword_current + * fPassword + * fPassword2 + */ require_once('common.php'); Modified: trunk/search.php =================================================================== --- trunk/search.php 2007-09-28 20:35:43 UTC (rev 106) +++ trunk/search.php 2007-09-30 15:53:54 UTC (rev 107) @@ -1,35 +1,42 @@ <?php -// -// Postfix Admin -// by Mischa Peters <mischa at high5 dot net> -// Copyright (c) 2002 - 2005 High5! -// Licensed under GPL for more info check GPL-LICENSE.TXT -// -// File: search.php -// -// Template File: search.tpl -// -// Template Variables: -// -// tAlias -// tMailbox -// -// Form POST \ GET Variables: -// -// fSearch -// fGo -// fDomain -// +/** + * Postfix Admin + * + * LICENSE + * This source file is subject to the GPL license that is bundled with + * this package in the file LICENSE.TXT. + * + * Further details on the project are available at : + * http://www.postfixadmin.com or http://postfixadmin.sf.net + * + * @version $Id$ + * @license GNU GPL v2 or later. + * + * File: search.php + * Provides a method for searching for a user/mailbox + * Template File: search.tpl + * + * Template Variables: + * + * tAlias + * tMailbox + * + * Form POST \ GET Variables: + * + * fSearch + * fGo + * fDomain + */ require_once('common.php'); authentication_require_role('admin'); $SESSID_USERNAME = authentication_get_username(); if(authentication_has_role('global-admin')) { - $list_domains = list_domains (); + $list_domains = list_domains (); } else { - $list_domains = list_domains_for_admin ($SESSID_USERNAME); + $list_domains = list_domains_for_admin ($SESSID_USERNAME); } @@ -38,140 +45,140 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") { - if (isset ($_GET['search'])) $fSearch = escape_string ($_GET['search']); + if (isset ($_GET['search'])) $fSearch = escape_string ($_GET['search']); - if ($CONF['alias_control_admin'] == "YES") - { - $query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias WHERE $table_alias.address LIKE '%$fSearch%' OR $table_alias.goto LIKE '%$fSearch%' ORDER BY $table_alias.address"; - } - else - { - $query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.address LIKE '%$fSearch%' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address"; - } + if ($CONF['alias_control_admin'] == "YES") + { + $query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias WHERE $table_alias.address LIKE '%$fSearch%' OR $table_alias.goto LIKE '%$fSearch%' ORDER BY $table_alias.address"; + } + else + { + $query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.address LIKE '%$fSearch%' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address"; + } - $result = db_query ($query); - if ($result['rows'] > 0) - { - while ($row = db_array ($result['result'])) - { - if (check_owner ($SESSID_USERNAME, $row['domain'])) - { - if ('pgsql'==$CONF['database_type']) + $result = db_query ($query); + if ($result['rows'] > 0) + { + while ($row = db_array ($result['result'])) + { + if (check_owner ($SESSID_USERNAME, $row['domain'])) { - $row['modified']=gmstrftime('%c %Z',$row['modified']); - $row['active']=('t'==$row['active']) ? 1 : 0; - } - $tAlias[] = $row; - } - } - } + if ('pgsql'==$CONF['database_type']) + { + $row['modified']=gmstrftime('%c %Z',$row['modified']); + $row['active']=('t'==$row['active']) ? 1 : 0; + } + $tAlias[] = $row; + } + } + } - if ($CONF['vacation_control_admin'] == 'YES') - { - $query = ("SELECT $table_mailbox.*, $table_vacation.active AS v_active FROM $table_mailbox LEFT JOIN $table_vacation ON $table_mailbox.username=$table_vacation.email WHERE $table_mailbox.username LIKE '%$fSearch%' OR $table_mailbox.name LIKE '%$fSearch%' ORDER BY $table_mailbox.username"); - } - else - { - $query = "SELECT * FROM $table_mailbox WHERE username LIKE '%$fSearch%' OR name LIKE '%$fSearch%' ORDER BY username"; - } + if ($CONF['vacation_control_admin'] == 'YES') + { + $query = ("SELECT $table_mailbox.*, $table_vacation.active AS v_active FROM $table_mailbox LEFT JOIN $table_vacation ON $table_mailbox.username=$table_vacation.email WHERE $table_mailbox.username LIKE '%$fSearch%' OR $table_mailbox.name LIKE '%$fSearch%' ORDER BY $table_mailbox.username"); + } + else + { + $query = "SELECT * FROM $table_mailbox WHERE username LIKE '%$fSearch%' OR name LIKE '%$fSearch%' ORDER BY username"; + } - $result = db_query ($query); - if ($result['rows'] > 0) - { - while ($row = db_array ($result['result'])) - { - if (check_owner ($SESSID_USERNAME, $row['domain'])) - { - if ('pgsql'==$CONF['database_type']) + $result = db_query ($query); + if ($result['rows'] > 0) + { + while ($row = db_array ($result['result'])) + { + if (check_owner ($SESSID_USERNAME, $row['domain'])) { - $row['modified']=gmstrftime('%c %Z',$row['modified']); - $row['active']=('t'==$row['active']) ? 1 : 0; - } - $tMailbox[] = $row; - } - } - } + if ('pgsql'==$CONF['database_type']) + { + $row['modified']=gmstrftime('%c %Z',$row['modified']); + $row['active']=('t'==$row['active']) ? 1 : 0; + } + $tMailbox[] = $row; + } + } + } - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/search.tpl"); - include ("./templates/footer.tpl"); + include ("./templates/header.tpl"); + include ("./templates/menu.tpl"); + include ("./templates/search.tpl"); + include ("./templates/footer.tpl"); } if ($_SERVER['REQUEST_METHOD'] == "POST") { - if (isset ($_POST['search'])) $fSearch = escape_string ($_POST['search']); - if (isset ($_POST['fGo'])) $fGo = escape_string ($_POST['fGo']); - if (isset ($_POST['fDomain'])) $fDomain = escape_string ($_POST['fDomain']); + if (isset ($_POST['search'])) $fSearch = escape_string ($_POST['search']); + if (isset ($_POST['fGo'])) $fGo = escape_string ($_POST['fGo']); + if (isset ($_POST['fDomain'])) $fDomain = escape_string ($_POST['fDomain']); - if (empty ($fSearch) && !empty ($fGo)) - { - if (authentication_has_role('global-admin')) - { - header("Location: list-virtual.php?domain=" . $fDomain ) && exit; - } - else - { - header("Location: overview.php?domain=" . $fDomain ) && exit; - } - } + if (empty ($fSearch) && !empty ($fGo)) + { + if (authentication_has_role('global-admin')) + { + header("Location: list-virtual.php?domain=" . $fDomain ) && exit; + } + else + { + header("Location: overview.php?domain=" . $fDomain ) && exit; + } + } - if ($CONF['alias_control_admin'] == "YES") - { - $query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias WHERE $table_alias.address LIKE '%$fSearch%' OR $table_alias.goto LIKE '%$fSearch%' ORDER BY $table_alias.address"; - } - else - { - $query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.address LIKE '%$fSearch%' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address"; - } + if ($CONF['alias_control_admin'] == "YES") + { +... [truncated message content] |