From 39953d029df7525d244f8f10efb4fe814e297c9a Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 2 Dec 2007 13:59:33 +0000 Subject: [PATCH] rename templates to .php instead of .tpl git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@250 a1433add-5e2c-0410-b055-b7f2511e0802 --- backup.php | 8 ++++---- broadcast-message.php | 16 ++++++++-------- create-admin.php | 10 +++++----- create-alias.php | 10 +++++----- create-domain.php | 10 +++++----- create-mailbox.php | 8 ++++---- delete.php | 10 +++++----- edit-active-admin.php | 10 +++++----- edit-active-domain.php | 10 +++++----- edit-active.php | 10 +++++----- edit-admin.php | 10 +++++----- edit-alias.php | 10 +++++----- edit-domain.php | 10 +++++----- edit-mailbox.php | 10 +++++----- edit-vacation.php | 10 +++++----- fetchmail.php | 8 ++++---- list-admin.php | 10 +++++----- list-domain.php | 12 ++++++------ list-virtual.php | 10 +++++----- login.php | 14 +++++++------- main.php | 10 +++++----- password.php | 18 +++++++++--------- search.php | 10 +++++----- sendmail.php | 10 +++++----- setup.php | 2 +- ...create-admin.tpl => admin_create-admin.php} | 0 ...eate-domain.tpl => admin_create-domain.php} | 0 ...min_edit-admin.tpl => admin_edit-admin.php} | 0 ...n_edit-domain.tpl => admin_edit-domain.php} | 0 ...min_list-admin.tpl => admin_list-admin.php} | 0 ...n_list-domain.tpl => admin_list-domain.php} | 0 .../{admin_search.tpl => admin_search.php} | 0 ...dcast-message.tpl => broadcast-message.php} | 0 .../{create-alias.tpl => create-alias.php} | 0 .../{create-mailbox.tpl => create-mailbox.php} | 0 templates/{edit-alias.tpl => edit-alias.php} | 0 .../{edit-mailbox.tpl => edit-mailbox.php} | 0 .../{edit-vacation.tpl => edit-vacation.php} | 0 templates/{fetchmail.tpl => fetchmail.php} | 0 templates/{footer.tpl => footer.php} | 0 templates/{header.tpl => header.php} | 0 .../{list-virtual.tpl => list-virtual.php} | 0 templates/{login.tpl => login.php} | 0 templates/{main.tpl => main.php} | 0 templates/{menu.tpl => menu.php} | 0 templates/{message.tpl => message.php} | 0 .../{overview-get.tpl => overview-get.php} | 0 templates/{password.tpl => password.php} | 0 templates/{search.tpl => search.php} | 0 templates/{sendmail.tpl => sendmail.php} | 0 ...ers_edit-alias.tpl => users_edit-alias.php} | 0 templates/{users_login.tpl => users_login.php} | 0 templates/{users_main.tpl => users_main.php} | 0 templates/{users_menu.tpl => users_menu.php} | 0 .../{users_password.tpl => users_password.php} | 0 .../{users_vacation.tpl => users_vacation.php} | 0 templates/{viewlog.tpl => viewlog.php} | 0 users/edit-alias.php | 18 +++++++++--------- users/login.php | 14 +++++++------- users/main.php | 18 +++++++++--------- users/password.php | 10 +++++----- users/vacation.php | 10 +++++----- viewlog.php | 10 +++++----- 63 files changed, 168 insertions(+), 168 deletions(-) rename templates/{admin_create-admin.tpl => admin_create-admin.php} (100%) rename templates/{admin_create-domain.tpl => admin_create-domain.php} (100%) rename templates/{admin_edit-admin.tpl => admin_edit-admin.php} (100%) rename templates/{admin_edit-domain.tpl => admin_edit-domain.php} (100%) rename templates/{admin_list-admin.tpl => admin_list-admin.php} (100%) rename templates/{admin_list-domain.tpl => admin_list-domain.php} (100%) rename templates/{admin_search.tpl => admin_search.php} (100%) rename templates/{broadcast-message.tpl => broadcast-message.php} (100%) rename templates/{create-alias.tpl => create-alias.php} (100%) rename templates/{create-mailbox.tpl => create-mailbox.php} (100%) rename templates/{edit-alias.tpl => edit-alias.php} (100%) rename templates/{edit-mailbox.tpl => edit-mailbox.php} (100%) rename templates/{edit-vacation.tpl => edit-vacation.php} (100%) rename templates/{fetchmail.tpl => fetchmail.php} (100%) rename templates/{footer.tpl => footer.php} (100%) rename templates/{header.tpl => header.php} (100%) rename templates/{list-virtual.tpl => list-virtual.php} (100%) rename templates/{login.tpl => login.php} (100%) rename templates/{main.tpl => main.php} (100%) rename templates/{menu.tpl => menu.php} (100%) rename templates/{message.tpl => message.php} (100%) rename templates/{overview-get.tpl => overview-get.php} (100%) rename templates/{password.tpl => password.php} (100%) rename templates/{search.tpl => search.php} (100%) rename templates/{sendmail.tpl => sendmail.php} (100%) rename templates/{users_edit-alias.tpl => users_edit-alias.php} (100%) rename templates/{users_login.tpl => users_login.php} (100%) rename templates/{users_main.tpl => users_main.php} (100%) rename templates/{users_menu.tpl => users_menu.php} (100%) rename templates/{users_password.tpl => users_password.php} (100%) rename templates/{users_vacation.tpl => users_vacation.php} (100%) rename templates/{viewlog.tpl => viewlog.php} (100%) 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 = "
Cannot open file ($backup)
"; - 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"); } else { diff --git a/broadcast-message.php b/broadcast-message.php index 754f8693..8c965e96 100644 --- a/broadcast-message.php +++ b/broadcast-message.php @@ -15,7 +15,7 @@ * File: broadcast-message.php * Used to send a message to _ALL_ users with mailboxes on this server. * - * Template File: broadcast-message.tpl + * Template File: broadcast-message.php * * Template Variables: -none- * @@ -78,19 +78,19 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } } - include ("templates/header.tpl"); - include ("templates/menu.tpl"); + include ("templates/header.php"); + include ("templates/menu.php"); echo '

'.$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'); ?>
diff --git a/templates/admin_create-admin.tpl b/templates/admin_create-admin.php similarity index 100% rename from templates/admin_create-admin.tpl rename to templates/admin_create-admin.php diff --git a/templates/admin_create-domain.tpl b/templates/admin_create-domain.php similarity index 100% rename from templates/admin_create-domain.tpl rename to templates/admin_create-domain.php diff --git a/templates/admin_edit-admin.tpl b/templates/admin_edit-admin.php similarity index 100% rename from templates/admin_edit-admin.tpl rename to templates/admin_edit-admin.php diff --git a/templates/admin_edit-domain.tpl b/templates/admin_edit-domain.php similarity index 100% rename from templates/admin_edit-domain.tpl rename to templates/admin_edit-domain.php diff --git a/templates/admin_list-admin.tpl b/templates/admin_list-admin.php similarity index 100% rename from templates/admin_list-admin.tpl rename to templates/admin_list-admin.php diff --git a/templates/admin_list-domain.tpl b/templates/admin_list-domain.php similarity index 100% rename from templates/admin_list-domain.tpl rename to templates/admin_list-domain.php diff --git a/templates/admin_search.tpl b/templates/admin_search.php similarity index 100% rename from templates/admin_search.tpl rename to templates/admin_search.php diff --git a/templates/broadcast-message.tpl b/templates/broadcast-message.php similarity index 100% rename from templates/broadcast-message.tpl rename to templates/broadcast-message.php diff --git a/templates/create-alias.tpl b/templates/create-alias.php similarity index 100% rename from templates/create-alias.tpl rename to templates/create-alias.php diff --git a/templates/create-mailbox.tpl b/templates/create-mailbox.php similarity index 100% rename from templates/create-mailbox.tpl rename to templates/create-mailbox.php diff --git a/templates/edit-alias.tpl b/templates/edit-alias.php similarity index 100% rename from templates/edit-alias.tpl rename to templates/edit-alias.php diff --git a/templates/edit-mailbox.tpl b/templates/edit-mailbox.php similarity index 100% rename from templates/edit-mailbox.tpl rename to templates/edit-mailbox.php diff --git a/templates/edit-vacation.tpl b/templates/edit-vacation.php similarity index 100% rename from templates/edit-vacation.tpl rename to templates/edit-vacation.php diff --git a/templates/fetchmail.tpl b/templates/fetchmail.php similarity index 100% rename from templates/fetchmail.tpl rename to templates/fetchmail.php diff --git a/templates/footer.tpl b/templates/footer.php similarity index 100% rename from templates/footer.tpl rename to templates/footer.php diff --git a/templates/header.tpl b/templates/header.php similarity index 100% rename from templates/header.tpl rename to templates/header.php diff --git a/templates/list-virtual.tpl b/templates/list-virtual.php similarity index 100% rename from templates/list-virtual.tpl rename to templates/list-virtual.php diff --git a/templates/login.tpl b/templates/login.php similarity index 100% rename from templates/login.tpl rename to templates/login.php diff --git a/templates/main.tpl b/templates/main.php similarity index 100% rename from templates/main.tpl rename to templates/main.php diff --git a/templates/menu.tpl b/templates/menu.php similarity index 100% rename from templates/menu.tpl rename to templates/menu.php diff --git a/templates/message.tpl b/templates/message.php similarity index 100% rename from templates/message.tpl rename to templates/message.php diff --git a/templates/overview-get.tpl b/templates/overview-get.php similarity index 100% rename from templates/overview-get.tpl rename to templates/overview-get.php diff --git a/templates/password.tpl b/templates/password.php similarity index 100% rename from templates/password.tpl rename to templates/password.php diff --git a/templates/search.tpl b/templates/search.php similarity index 100% rename from templates/search.tpl rename to templates/search.php diff --git a/templates/sendmail.tpl b/templates/sendmail.php similarity index 100% rename from templates/sendmail.tpl rename to templates/sendmail.php diff --git a/templates/users_edit-alias.tpl b/templates/users_edit-alias.php similarity index 100% rename from templates/users_edit-alias.tpl rename to templates/users_edit-alias.php diff --git a/templates/users_login.tpl b/templates/users_login.php similarity index 100% rename from templates/users_login.tpl rename to templates/users_login.php diff --git a/templates/users_main.tpl b/templates/users_main.php similarity index 100% rename from templates/users_main.tpl rename to templates/users_main.php diff --git a/templates/users_menu.tpl b/templates/users_menu.php similarity index 100% rename from templates/users_menu.tpl rename to templates/users_menu.php diff --git a/templates/users_password.tpl b/templates/users_password.php similarity index 100% rename from templates/users_password.tpl rename to templates/users_password.php diff --git a/templates/users_vacation.tpl b/templates/users_vacation.php similarity index 100% rename from templates/users_vacation.tpl rename to templates/users_vacation.php diff --git a/templates/viewlog.tpl b/templates/viewlog.php similarity index 100% rename from templates/viewlog.tpl rename to templates/viewlog.php diff --git a/users/edit-alias.php b/users/edit-alias.php index 4ec96741..cb3236d6 100644 --- a/users/edit-alias.php +++ b/users/edit-alias.php @@ -15,7 +15,7 @@ * File: edit-alias.php * Users can use this to set forwards etc for their mailbox. * - * Template File: users_edit-alias.tpl + * Template File: users_edit-alias.php * * Template Variables: * @@ -55,10 +55,10 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") $tMessage = $PALANG['pEdit_alias_address_error']; } - include ("../templates/header.tpl"); - include ("../templates/users_menu.tpl"); - include ("../templates/users_edit-alias.tpl"); - include ("../templates/footer.tpl"); + include ("../templates/header.php"); + include ("../templates/users_menu.php"); + include ("../templates/users_edit-alias.php"); + include ("../templates/footer.php"); } if ($_SERVER['REQUEST_METHOD'] == "POST") @@ -130,9 +130,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } - include ("../templates/header.tpl"); - include ("../templates/users_menu.tpl"); - include ("../templates/users_edit-alias.tpl"); - include ("../templates/footer.tpl"); + include ("../templates/header.php"); + include ("../templates/users_menu.php"); + include ("../templates/users_edit-alias.php"); + include ("../templates/footer.php"); } ?> diff --git a/users/login.php b/users/login.php index b22091e2..4b23b4f2 100644 --- a/users/login.php +++ b/users/login.php @@ -14,7 +14,7 @@ * * File: login.php * Used to authenticate want-to-be users. - * Template File: login.tpl + * Template File: login.php * * Template Variables: * @@ -32,9 +32,9 @@ require_once("../common.php"); if ($_SERVER['REQUEST_METHOD'] == "GET") { - include ("../templates/header.tpl"); - include ("../templates/users_login.tpl"); - include ("../templates/footer.tpl"); + include ("../templates/header.php"); + include ("../templates/users_login.php"); + include ("../templates/footer.php"); } if ($_SERVER['REQUEST_METHOD'] == "POST") @@ -78,9 +78,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") exit; } - include ("../templates/header.tpl"); - include ("../templates/users_login.tpl"); - include ("../templates/footer.tpl"); + include ("../templates/header.php"); + include ("../templates/users_login.php"); + include ("../templates/footer.php"); } /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> diff --git a/users/main.php b/users/main.php index 1cd1ae3a..38ed5cc9 100644 --- a/users/main.php +++ b/users/main.php @@ -14,7 +14,7 @@ * * File: main.php * 'Home page' for logged in users. - * Template File: main.tpl + * Template File: main.php * * Template Variables: * @@ -40,17 +40,17 @@ else if ($_SERVER["REQUEST_METHOD"] == "GET") { - include ("../templates/header.tpl"); - include ("../templates/users_menu.tpl"); - include ("../templates/users_main.tpl"); - include ("../templates/footer.tpl"); + include ("../templates/header.php"); + include ("../templates/users_menu.php"); + include ("../templates/users_main.php"); + include ("../templates/footer.php"); } if ($_SERVER["REQUEST_METHOD"] == "POST") { - include ("../templates/header.tpl"); - include ("../templates/users_menu.tpl"); - include ("../templates/users_main.tpl"); - include ("../templates/footer.tpl"); + include ("../templates/header.php"); + include ("../templates/users_menu.php"); + include ("../templates/users_main.php"); + include ("../templates/footer.php"); } ?> diff --git a/users/password.php b/users/password.php index 69276b17..d550fbbe 100644 --- a/users/password.php +++ b/users/password.php @@ -14,7 +14,7 @@ * * File: password.php * Used by users to change their mailbox (and login) password. - * Template File: users_password.tpl + * Template File: users_password.php * * Template Variables: * @@ -91,10 +91,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("../templates/header.tpl"); -include ("../templates/users_menu.tpl"); -include ("../templates/users_password.tpl"); -include ("../templates/footer.tpl"); +include ("../templates/header.php"); +include ("../templates/users_menu.php"); +include ("../templates/users_password.php"); +include ("../templates/footer.php"); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?> diff --git a/users/vacation.php b/users/vacation.php index 2ef2cb39..f73e9875 100644 --- a/users/vacation.php +++ b/users/vacation.php @@ -15,7 +15,7 @@ * File: vacation.php * Used by users to set/change their vacation settings. * - * Template File: users_vacation.tpl + * Template File: users_vacation.php * * Template Variables: * @@ -182,10 +182,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") } } -include ("../templates/header.tpl"); -include ("../templates/users_menu.tpl"); -include ("../templates/users_vacation.tpl"); -include ("../templates/footer.tpl"); +include ("../templates/header.php"); +include ("../templates/users_menu.php"); +include ("../templates/users_vacation.php"); +include ("../templates/footer.php"); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?> diff --git a/viewlog.php b/viewlog.php index d7766dde..f85494bd 100644 --- a/viewlog.php +++ b/viewlog.php @@ -15,7 +15,7 @@ * File: viewlog.php * Shows entries from the log table to users. * - * Template File: viewlog.tpl + * Template File: viewlog.php * * Template Variables: * @@ -74,10 +74,10 @@ if ($error != 1) } } -include ("templates/header.tpl"); -include ("templates/menu.tpl"); -include ("templates/viewlog.tpl"); -include ("templates/footer.tpl"); +include ("templates/header.php"); +include ("templates/menu.php"); +include ("templates/viewlog.php"); +include ("templates/footer.php"); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?>