diff --git a/backup.php b/backup.php index b59dc3a2..d1bfcd08 100644 --- a/backup.php +++ b/backup.php @@ -63,10 +63,10 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") if (!$fh = fopen ($backup, 'w')) { $tMessage = "
'.$PALANG['pBroadcast_success'].'
'; - include ("templates/footer.tpl"); + include ("templates/footer.php"); } } if ($_SERVER['REQUEST_METHOD'] == "GET" || $error == 1) { - include ("templates/header.tpl"); - include ("templates/menu.tpl"); - include ("templates/broadcast-message.tpl"); - include ("templates/footer.tpl"); + include ("templates/header.php"); + include ("templates/menu.php"); + include ("templates/broadcast-message.php"); + include ("templates/footer.php"); } /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ diff --git a/create-admin.php b/create-admin.php index 692b0725..37163b8b 100644 --- a/create-admin.php +++ b/create-admin.php @@ -14,7 +14,7 @@ * * File: create-admin.php * Used to create new administrators. - * Template File: admin_create-admin.tpl + * Template File: admin_create-admin.php * * * Template Variables: @@ -60,10 +60,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/admin_create-admin.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/admin_create-admin.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/create-alias.php b/create-alias.php index 64d890e4..41328dec 100644 --- a/create-alias.php +++ b/create-alias.php @@ -11,7 +11,7 @@ * http://www.postfixadmin.com or http://postfixadmin.sf.net * * File: create-alias.php - * Template File: create-alias.tpl + * Template File: create-alias.php * Responsible for allowing for the creation of mail aliases. * * @version $Id$ @@ -152,8 +152,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/create-alias.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/create-alias.php"); +include ("templates/footer.php"); ?> diff --git a/create-domain.php b/create-domain.php index 1d3b54a0..865df9fb 100644 --- a/create-domain.php +++ b/create-domain.php @@ -14,7 +14,7 @@ * * File: create-domain.php * Allows administrators to create new domains. - * Template File: admin_create-domain.tpl + * Template File: admin_create-domain.php * * Template Variables: * @@ -120,10 +120,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/admin_create-domain.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/admin_create-domain.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/create-mailbox.php b/create-mailbox.php index ebf0d8d5..089b93dc 100644 --- a/create-mailbox.php +++ b/create-mailbox.php @@ -330,10 +330,10 @@ TODO: this is the end of /create-mailbox.php code segment } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/create-mailbox.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/create-mailbox.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/delete.php b/delete.php index b9504056..ccb7b6d3 100644 --- a/delete.php +++ b/delete.php @@ -17,7 +17,7 @@ * Note: if a domain is deleted, all mailboxes and aliases belonging * to the domain are also removed. * - * Template File: message.tpl + * Template File: message.php * * Template Variables: * @@ -164,10 +164,10 @@ else } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/message.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/message.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-active-admin.php b/edit-active-admin.php index fe474f42..bf3938ec 100644 --- a/edit-active-admin.php +++ b/edit-active-admin.php @@ -15,7 +15,7 @@ * File: edit-active-admin.php * Edit an active administrator. This is used as a 'toggle' page from list-admin. * - * Template File: message.tpl + * Template File: message.php * * Template Variables: * @@ -51,10 +51,10 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/message.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/message.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ diff --git a/edit-active-domain.php b/edit-active-domain.php index 41e2d8f4..01db6546 100644 --- a/edit-active-domain.php +++ b/edit-active-domain.php @@ -14,7 +14,7 @@ * * File: edit-active-domain.php * Responsible for toggling the status of a domain - * Template File: message.tpl + * Template File: message.php * * Template Variables: * @@ -50,10 +50,10 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/message.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/message.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-active.php b/edit-active.php index 519b6cdb..8df48878 100644 --- a/edit-active.php +++ b/edit-active.php @@ -15,7 +15,7 @@ * File: edit-active.php * Responsible for toggling the active status of a mailbox. * - * Template File: message.tpl + * Template File: message.php * * Template Variables: * @@ -91,9 +91,9 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/message.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/message.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-admin.php b/edit-admin.php index dc9dd452..a05515b8 100644 --- a/edit-admin.php +++ b/edit-admin.php @@ -15,7 +15,7 @@ * File: edit-admin.php * Edits a normal administrator's details. * - * Template File: admin_edit-admin.tpl + * Template File: admin_edit-admin.php * * Template Variables: * @@ -150,10 +150,10 @@ if ($result['rows'] >= 1) { } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/admin_edit-admin.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/admin_edit-admin.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-alias.php b/edit-alias.php index a9061c14..e6ab984d 100644 --- a/edit-alias.php +++ b/edit-alias.php @@ -15,7 +15,7 @@ * File: edit-alias.php * Used to update an alias. * - * Template File: edit-alias.tpl + * Template File: edit-alias.php * * Template Variables: * @@ -127,10 +127,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/edit-alias.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/edit-alias.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-domain.php b/edit-domain.php index 44c001ba..c24a6011 100644 --- a/edit-domain.php +++ b/edit-domain.php @@ -14,7 +14,7 @@ * * File: edit-domain.php * Updates the properties of a domain. - * Template File: admin_edit-domain.tpl + * Template File: admin_edit-domain.php * * Template Variables: * @@ -104,10 +104,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/admin_edit-domain.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/admin_edit-domain.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-mailbox.php b/edit-mailbox.php index f6dfd44d..14e0a2db 100644 --- a/edit-mailbox.php +++ b/edit-mailbox.php @@ -14,7 +14,7 @@ * * File: edit-mailbox.php * Used to update an existing mailboxes settings. - * Template File: edit-mailbox.tpl + * Template File: edit-mailbox.php * * Template Variables: * @@ -157,9 +157,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/edit-mailbox.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/edit-mailbox.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/edit-vacation.php b/edit-vacation.php index 42419594..d42dcb29 100644 --- a/edit-vacation.php +++ b/edit-vacation.php @@ -15,7 +15,7 @@ * File: edit-vacation.php * Responsible for allowing users to update their vacation status. * - * Template File: edit-vacation.tpl + * Template File: edit-vacation.php * * Template Variables: * @@ -191,9 +191,9 @@ else { $tMessage = $PALANG['pVacation_result_error']; } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/edit-vacation.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/edit-vacation.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/fetchmail.php b/fetchmail.php index 5104856b..ff4e7fd5 100644 --- a/fetchmail.php +++ b/fetchmail.php @@ -250,10 +250,10 @@ function _inp_password($val){ return base64_encode($val); } -include ("./templates/header.tpl"); -include ("./templates/menu.tpl"); -include ("./templates/fetchmail.tpl"); -include ("./templates/footer.tpl"); +include ("./templates/header.php"); +include ("./templates/menu.php"); +include ("./templates/fetchmail.php"); +include ("./templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/list-admin.php b/list-admin.php index 093d4749..7d63ad7a 100644 --- a/list-admin.php +++ b/list-admin.php @@ -14,7 +14,7 @@ * * File: list-admin.php * Lists all administrators - * Template File: list-admin.tpl + * Template File: list-admin.php * * Template Variables: -none- * @@ -32,9 +32,9 @@ if ((is_array ($list_admins) and sizeof ($list_admins) > 0)) { } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/admin_list-admin.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/admin_list-admin.php"); +include ("templates/footer.php"); ?> diff --git a/list-domain.php b/list-domain.php index 74762be2..edbf53ac 100644 --- a/list-domain.php +++ b/list-domain.php @@ -14,7 +14,7 @@ * * File: list-domain.php * List all domains as a quick overview. - * Template File: admin_list-domain.tpl + * Template File: admin_list-domain.php * * Template Variables: * @@ -59,15 +59,15 @@ if (isset($admin_properties) && $admin_properties['domain_count'] == 'ALL') { # } #} -include ("templates/header.tpl"); -include ("templates/menu.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); if ($is_superadmin) { - include ("templates/admin_list-domain.tpl"); + include ("templates/admin_list-domain.php"); } else { - include ("templates/overview-get.tpl"); + include ("templates/overview-get.php"); } -include ("templates/footer.tpl"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/list-virtual.php b/list-virtual.php index 39cf93f6..c49ba994 100644 --- a/list-virtual.php +++ b/list-virtual.php @@ -15,7 +15,7 @@ * File: list-virtual.php * List virtual users for a domain. * - * Template File: list-virtual.tpl + * Template File: list-virtual.php * * Template Variables: * @@ -165,10 +165,10 @@ if (isset ($limit)) { } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/list-virtual.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/list-virtual.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/login.php b/login.php index 2406c902..8b175831 100644 --- a/login.php +++ b/login.php @@ -14,7 +14,7 @@ * * File: login.php * Authenticates a user, and populates their $_SESSION as appropriate. - * Template File: login.tpl + * Template File: login.php * * Template Variables: * @@ -43,9 +43,9 @@ if (file_exists (realpath ("./setup.php"))) { if ($_SERVER['REQUEST_METHOD'] == "GET") { - include ("./templates/header.tpl"); - include ("./templates/login.tpl"); - include ("./templates/footer.tpl"); + include ("./templates/header.php"); + include ("./templates/login.php"); + include ("./templates/footer.php"); } if ($_SERVER['REQUEST_METHOD'] == "POST") @@ -94,8 +94,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") exit(0); } - include ("./templates/header.tpl"); - include ("./templates/login.tpl"); - include ("./templates/footer.tpl"); + include ("./templates/header.php"); + include ("./templates/login.php"); + include ("./templates/footer.php"); } ?> diff --git a/main.php b/main.php index a364fd13..ccb46fb5 100644 --- a/main.php +++ b/main.php @@ -14,7 +14,7 @@ * * File: main.php * Displays a menu/home page. - * Template File: main.tpl + * Template File: main.php * * Template Variables: -none- * @@ -27,8 +27,8 @@ $SESSID_USERNAME = authentication_get_username(); authentication_require_role('admin'); -include ("./templates/header.tpl"); -include ("./templates/menu.tpl"); -include ("./templates/main.tpl"); -include ("./templates/footer.tpl"); +include ("./templates/header.php"); +include ("./templates/menu.php"); +include ("./templates/main.php"); +include ("./templates/footer.php"); ?> diff --git a/password.php b/password.php index 013197f6..e7e5d631 100644 --- a/password.php +++ b/password.php @@ -14,7 +14,7 @@ * * File: password.php * Allows admins to change their own password. - * Template File: password.tpl + * Template File: password.php * * Template Variables: * @@ -35,10 +35,10 @@ $SESSID_USERNAME = authentication_get_username(); if ($_SERVER['REQUEST_METHOD'] == "GET") { - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/password.tpl"); - include ("./templates/footer.tpl"); + include ("./templates/header.php"); + include ("./templates/menu.php"); + include ("./templates/password.php"); + include ("./templates/footer.php"); } if ($_SERVER['REQUEST_METHOD'] == "POST") @@ -88,9 +88,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/password.tpl"); - include ("./templates/footer.tpl"); + include ("./templates/header.php"); + include ("./templates/menu.php"); + include ("./templates/password.php"); + include ("./templates/footer.php"); } ?> diff --git a/search.php b/search.php index cd094c60..f1e431d3 100644 --- a/search.php +++ b/search.php @@ -14,7 +14,7 @@ * * File: search.php * Provides a method for searching for a user/mailbox - * Template File: search.tpl + * Template File: search.php * * Template Variables: * @@ -116,9 +116,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/search.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/search.php"); +include ("templates/footer.php"); ?> diff --git a/sendmail.php b/sendmail.php index 170e62cb..80e868b5 100644 --- a/sendmail.php +++ b/sendmail.php @@ -14,7 +14,7 @@ * * File: sendmail.php * Used to send an email to a user. - * Template File: sendmail.tpl + * Template File: sendmail.php * * Template Variables: * @@ -74,10 +74,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("./templates/header.tpl"); -include ("./templates/menu.tpl"); -include ("./templates/sendmail.tpl"); -include ("./templates/footer.tpl"); +include ("./templates/header.php"); +include ("./templates/menu.php"); +include ("./templates/sendmail.php"); +include ("./templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/setup.php b/setup.php index 766d9dfb..8916d168 100644 --- a/setup.php +++ b/setup.php @@ -27,7 +27,7 @@ require_once("languages/en.lang"); require_once("functions.inc.php"); $CONF['show_header_text'] = 'NO'; -require('templates/header.tpl'); +require('templates/header.php'); ?>