From f4f2d1b0f451f240c31d9e56bb82004dea5c53cf Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 10 Apr 2017 20:32:11 +0200 Subject: [PATCH] Get rid of most variable definitions in variables.inc.php variables.inc.php is an old hack to save having to declare variables before using them in pages. Lots of the variables there are unused (leftovers from the old create-*.php or edit-*.php scripts) or properly initialized in the file using them, so there's no need to keep them in variables.inc.php. The remaining variables in this file should also be dropped after further investigation. --- variables.inc.php | 42 ++---------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/variables.inc.php b/variables.inc.php index 592a626a..8107e5a8 100644 --- a/variables.inc.php +++ b/variables.inc.php @@ -15,55 +15,17 @@ * Contains varoius pre-defined variables. * * XXX Probably a hack to save having to declare variables before using them in pages. + * + * TODO: get rid of the remaining variables declared here! */ $error = ""; -$quota = ""; -$vacation = ""; -$fActive = ""; -$fAddress = ""; -$fAliases = ""; -$fBackupmx = ""; -$fDelete = ""; -$fDescription = ""; $fDomain = ""; -$fFrom = ""; -$fGoto = ""; -$fHeaders = ""; -$fMail = ""; -$fMailboxes = ""; -$fMaxquota = ""; -$fName = ""; $fPassword = ""; -$fPassword2 = ""; -$fQuota = ""; -$fSearch = ""; -$fTable = ""; -$fTransport = ""; -$fTo = ""; -$fUsername = ""; -$fVacation = ""; $fWhere = ""; -$tActive = ""; -$tActive = ""; -$tAddress = ""; $tAlias = ""; -$tAliases = ""; -$tBody = ""; $tDescription = ""; -$tDomain = ""; -$tDomains = ""; -$tFrom = ""; -$tGoto = ""; -$tLog = ""; $tMailbox = ""; -$tMailboxes = ""; -$tMaxquota = ""; -$tName = ""; -$tQuota = ""; -$tSubject = ""; -$tUsername = ""; -$tTransport = ""; /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?>