*/
/**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
*/
-define('SM_PATH','../');
+require('../include/init.php');
/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/imap_general.php');
require_once(SM_PATH . 'functions/folder_manip.php');
-require_once(SM_PATH . 'functions/plugin.php');
-require_once(SM_PATH . 'functions/html.php');
require_once(SM_PATH . 'functions/forms.php');
displayPageHeader($color, 'None');
if ( $server_type == 'courier' ) {
/**
* If we use courier, we should hide system trash folder
- * FIXME: (tokul) Who says that courier does not allow storing folders in
- * INBOX.Trash or inbox.trash? Can't reproduce it 3.0.8. This entry is
- * useless, because in_array() check is case sensitive and INBOX is in
+ * FIXME: (tokul) Who says that courier does not allow storing folders in
+ * INBOX.Trash or inbox.trash? Can't reproduce it 3.0.8. This entry is
+ * useless, because in_array() check is case sensitive and INBOX is in
* upper case.
*/
array_push($skip_folders, 'inbox.trash');
if (isSpecialMailbox($aBoxData['unformatted']) &&
! in_array($aBoxData['unformatted'],$skip_folders)) {
$skip_folders[] = $aBoxData['unformatted'];
- }
+ }
}
/**
* Retrieve list of folders when special folders are excluded. Special folders
* should be unavailable in rename/delete/unsubscribe. Theoretically user can
- * modify form and perform these operations with special folders, but if user
- * manages to delete/rename/unsubscribe special folder by hacking form...
+ * modify form and perform these operations with special folders, but if user
+ * manages to delete/rename/unsubscribe special folder by hacking form...
*
* If script or program depends on special folder, they should not assume that
* folder is available.
</table>
</td></tr>
</table>
-</body></html>
\ No newline at end of file
+<?php
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file