Code cleanup brigage...
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 2 Dec 2001 09:33:02 +0000 (09:33 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 2 Dec 2001 09:33:02 +0000 (09:33 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1825 7612ce4b-ef26-0410-bec9-ea0150e637f0

69 files changed:
functions/abook_database.php
functions/abook_global_file.php
functions/abook_ldap_server.php
functions/abook_local_file.php
functions/addressbook.php
functions/array.php
functions/attachment_common.php
functions/auth.php
functions/constants.php
functions/date.php
functions/db_prefs.php
functions/display_messages.php
functions/gettext.php
functions/i18n.php
functions/imap.php
functions/imap_general.php
functions/imap_mailbox.php
functions/imap_messages.php
functions/imap_search.php
functions/index.php
functions/mailbox_display.php
functions/mime.php
functions/options.php
functions/page_header.php
functions/plugin.php
functions/prefs.php
functions/smtp.php
functions/strings.php
functions/tree.php
functions/url_parser.php
index.php
src/addrbook_popup.php
src/addrbook_search.php
src/addrbook_search_html.php
src/addressbook.php
src/compose.php
src/delete_message.php
src/download.php
src/draft_actions.php
src/empty_trash.php
src/folders.php
src/folders_create.php
src/folders_delete.php
src/folders_rename_do.php
src/folders_rename_getname.php
src/folders_subscribe.php
src/help.php
src/image.php
src/index.php
src/left_main.php
src/load_prefs.php
src/login.php
src/move_messages.php
src/options.php
src/options_display.php
src/options_folder.php
src/options_identities.php
src/options_order.php
src/options_personal.php
src/printer_friendly_bottom.php
src/printer_friendly_main.php
src/printer_friendly_top.php
src/read_body.php
src/redirect.php
src/retrievalerror.php
src/search.php
src/signout.php
src/validate.php
src/vcard.php

index b5b2e0017aa7267649f02bcc7d36ee88ffdb2772..f7162fac9ba1dca907d6c0a1529269a5a64b01d8 100644 (file)
@@ -1,36 +1,52 @@
 <?php {
    
-   /**
   *   abook_database.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *   Backend for personal addressbook stored in a database,
   *   accessed using the DB-classes in PEAR.
   *
   *   IMPORTANT:  The PEAR modules must be in the include path
   *   for this class to work.
   *
   *   An array with the following elements must be passed to
   *   the class constructor (elements marked ? are optional):
   *
   *      dsn       => database DNS (see PEAR for syntax)
   *      table     => table to store addresses in (must exist)
   *      owner     => current user (owner of address data)
   *    ? writeable => set writeable flag (true/false)
   *
   *  The table used should have the following columns:
   *   owner, nickname, firstname, lastname, email, label
   *  The pair (owner,nickname) should be unique (primary key).
   *
   *   NOTE. This class should not be used directly. Use the
   *         "AddressBook" class instead.
   *
   *  $Id$
   */
+/**
* abook_database.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Backend for personal addressbook stored in a database,
* accessed using the DB-classes in PEAR.
+ *
* IMPORTANT:  The PEAR modules must be in the include path
* for this class to work.
+ *
* An array with the following elements must be passed to
* the class constructor (elements marked ? are optional):
+ *
*    dsn       => database DNS (see PEAR for syntax)
*    table     => table to store addresses in (must exist)
*    owner     => current user (owner of address data)
*  ? writeable => set writeable flag (true/false)
+ *
* The table used should have the following columns:
* owner, nickname, firstname, lastname, email, label
* The pair (owner,nickname) should be unique (primary key).
+ *
*  NOTE. This class should not be used directly. Use the
*        "AddressBook" class instead.
+ *
* $Id$
+ */
    
-   require_once('DB.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('DB.php');
    
    class abook_database extends addressbook_backend {
       var $btype = 'local';
index f18054252f03f4ce5e4024a265e9da0e412baf76..b90f58d3e4f8ee1db28ccbf87173b8b1ffa92325 100644 (file)
@@ -1,27 +1,43 @@
 <?php
 
-   /**
-    *   abook_local_file.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   Backend for addressbook as a pipe separated file
-    *
-    *   An array with the following elements must be passed to
-    *   the class constructor (elements marked ? are optional):
-    *
-    *   NOTE. This class should not be used directly. Use the
-    *         "AddressBook" class instead.
-    *
-    *   Make sure you configure this before using it!
-    *
-    *  $Id$
-    */
-
-   class abook_global_file extends addressbook_backend {
-     var $btype = 'local';
-     var $bname = 'global_file';
+/**
+ * abook_local_file.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Backend for addressbook as a pipe separated file
+ *
+ * An array with the following elements must be passed to
+ * the class constructor (elements marked ? are optional):
+ *
+ * NOTE. This class should not be used directly. Use the
+ *       "AddressBook" class instead.
+ *
+ * Make sure you configure this before using it!
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the class definition below.        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+class abook_global_file extends addressbook_backend {
+    var $btype = 'local';
+    var $bname = 'global_file';
 
      var $filehandle = 0;
 
index 043f7336a8f33711d268c16a4ad667e5d280046c..4198405aebab00e7e01af29b95885533a6cd7c08 100644 (file)
@@ -1,33 +1,49 @@
 <?php
 
-   /**
-    *   abook_ldap_server.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   Address book backend for LDAP server
-    *
-    *   An array with the following elements must be passed to
-    *   the class constructor (elements marked ? are optional):
-    *
-    *      host      => LDAP server hostname/IP-address
-    *      base      => LDAP server root (base dn). Empty string allowed.
-    *    ? port      => LDAP server TCP port number (default: 389)
-    *    ? charset   => LDAP server charset (default: utf-8)
-    *    ? name      => Name for LDAP server (default "LDAP: hostname")
-    *                   Used to tag the result data
-    *    ? maxrows   => Maximum # of rows in search result
-    *    ? timeout   => Timeout for LDAP operations (in seconds, default: 30)
-    *                   Might not work for all LDAP libraries or servers.
-    *
-    *   NOTE. This class should not be used directly. Use the
-    *         "AddressBook" class instead.
-    *
-    *  $Id$
-    */
-
-   class abook_ldap_server extends addressbook_backend {
+/**
+ * abook_ldap_server.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Address book backend for LDAP server
+ *
+ * An array with the following elements must be passed to
+ * the class constructor (elements marked ? are optional):
+ *
+ *    host      => LDAP server hostname/IP-address
+ *    base      => LDAP server root (base dn). Empty string allowed.
+ *  ? port      => LDAP server TCP port number (default: 389)
+ *  ? charset   => LDAP server charset (default: utf-8)
+ *  ? name      => Name for LDAP server (default "LDAP: hostname")
+ *                 Used to tag the result data
+ *  ? maxrows   => Maximum # of rows in search result
+ *  ? timeout   => Timeout for LDAP operations (in seconds, default: 30)
+ *                 Might not work for all LDAP libraries or servers.
+ *
+ * NOTE. This class should not be used directly. Use the
+ *       "AddressBook" class instead.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the class definition below.        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+class abook_ldap_server extends addressbook_backend {
      var $btype = 'remote';
      var $bname = 'ldap_server';
 
index 5dd9394873378966b5dc6c4768c033510a6e6e59..7863fa7c1b62991639842cf1064fe9c3aba708a0 100644 (file)
@@ -1,27 +1,43 @@
 <?php
 
-   /**
-    *   abook_local_file.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   Backend for addressbook as a pipe separated file
-    *
-    *   An array with the following elements must be passed to
-    *   the class constructor (elements marked ? are optional):
-    *
-    *      filename  => path to addressbook file
-    *    ? create    => if true: file is created if it does not exist.
-    *    ? umask     => umask set before opening file.
-    *
-    *   NOTE. This class should not be used directly. Use the
-    *         "AddressBook" class instead.
-    *
-    *  $Id$
-    */
-
-   class abook_local_file extends addressbook_backend {
+/**
+ * abook_local_file.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Backend for addressbook as a pipe separated file
+ *
+ * An array with the following elements must be passed to
+ * the class constructor (elements marked ? are optional):
+ *
+ *    filename  => path to addressbook file
+ *  ? create    => if true: file is created if it does not exist.
+ *  ? umask     => umask set before opening file.
+ *
+ * NOTE. This class should not be used directly. Use the
+ *       "AddressBook" class instead.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the class definition below.        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+class abook_local_file extends addressbook_backend {
      var $btype = 'local';
      var $bname = 'local_file';
 
index a2991d431524835b87728db96a10b1fc90201331..6a45f348f23b886bc1678fdc137b251e13dae15e 100644 (file)
@@ -1,37 +1,50 @@
 <?php
 
-   /**
-    *   addressbook.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   Functions and classes for the addressbook system.
-    *
-    *   $Id$
-    */
-
-
-   // This is the path to the global site-wide addressbook.
-   // It looks and feels just like a user's .abook file
-   // If this is in the data directory, use "$data_dir/global.abook"
-   // If not, specify the path as though it was accessed from the
-   // src/ directory ("../global.abook" -> in main directory)
-   //
-   // If you don't want a global site-wide addressbook, comment these
-   // two lines out.  (They are disabled by default.)
-   //
-   // The global addressbook is unmodifiable by anyone.  You must actually
-   // use a shell script or whatnot to modify the contents.
-   //
-   //global $data_dir;
-   //$address_book_global_filename = "$data_dir/global.abook";
-
-
-
-   // Include backends here.
-   require_once('../functions/abook_local_file.php');
-   require_once('../functions/abook_ldap_server.php');
+/**
+ * addressbook.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Functions and classes for the addressbook system.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+// This is the path to the global site-wide addressbook.
+// It looks and feels just like a user's .abook file
+// If this is in the data directory, use "$data_dir/global.abook"
+// If not, specify the path as though it was accessed from the
+// src/ directory ("../global.abook" -> in main directory)
+//
+// If you don't want a global site-wide addressbook, comment these
+// two lines out.  (They are disabled by default.)
+//
+// The global addressbook is unmodifiable by anyone.  You must actually
+// use a shell script or whatnot to modify the contents.
+//
+//global $data_dir;
+//$address_book_global_filename = "$data_dir/global.abook";
+
+// Include backends here.
+require_once('../functions/abook_local_file.php');
+require_once('../functions/abook_ldap_server.php');
 
    // Use this if you wanna have a global address book
    if (isset($address_book_global_filename))
index f65b8f86cf857dac0680daecb6548496ef91dbae..2ff83b41899b76afa2a2cf653dc88843d935ceac 100644 (file)
@@ -1,19 +1,34 @@
 <?php
 
-   /**
   *  array.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *  This contains functions that work with array manipulation.  They
   *  will help sort, and do other types of things with arrays
   *
   *   $Id$
   */
+/**
* array.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* This contains functions that work with array manipulation.  They
* will help sort, and do other types of things with arrays
+ *
* $Id$
+ */
 
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
 
-   function ary_sort($ary,$col, $dir = 1){
+function ary_sort($ary,$col, $dir = 1){
       // The globals are used because USORT determines what is passed to comp2
       // These should be $this->col and $this->dir in a class
       // Would beat using globals
index b6b1dbf6bd2b0ac0de8bdf6a5314fc5bdb13ac7e..019af14b64e301d511e8e541fc59b37bb248450b 100644 (file)
@@ -1,18 +1,34 @@
 <?php
 
-   /**
-    *  attachment_common.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *  This file provides the handling of often-used attachment types.
-    *
-    *  $Id$
-    */
-
-  global $attachment_common_show_images_list;
-  $attachment_common_show_images_list = array();
+/**
+ * attachment_common.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This file provides the handling of often-used attachment types.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the $attachment_common_show_images_list stuff below. ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+global $attachment_common_show_images_list;
+$attachment_common_show_images_list = array();
 
   global $FileExtensionToMimeType, $attachment_common_types;
   $FileExtensionToMimeType = array('bmp'  => 'image/x-bitmap',
index 47e6c04c4988467ab39aac8cac1dbc0e4d1e9359..61fe9cf188263a9e6c58633e0cac3d9799444a7c 100644 (file)
@@ -1,17 +1,33 @@
 <?php
 
-   /**
-    *  auth.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *  Contains functions used to do authentication.
-    *
-    *  $Id$
-    */
-
-    require_once( '../functions/page_header.php' );
+/**
+ * auth.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Contains functions used to do authentication.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below.                              ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once( '../functions/page_header.php' );
 
     function is_logged_in () {
         global $squirrelmail_language;
index a53c3cb5d8e74cab04b1f2f09f2da517c9560e63..8605078d5fe15e64f774685366d6f740e1c8ce63 100644 (file)
@@ -1,23 +1,39 @@
 <?php
 
-    /**
-     *  constants.php
-     *
-     *  Copyright (c) 1999-2001 The SquirrelMail Development Team
-     *  Licensed under the GNU GPL. For full terms see the file COPYING.
-     *
-     *  Loads constants used by the rest of the Squirrelmail source.
-     *  This file is include by src/login.php, src/redirect.php and
-     *  src/load_prefs.php.
-     *
-     *  $Id$
-     */
-
-    /**************************************************************/
-    /* Set values for constants used by Squirrelmail preferences. */
-    /**************************************************************/
-
-    require_once( '../functions/plugin.php' );      // Required for the hook
+/**
+ * constants.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Loads constants used by the rest of the Squirrelmail source.
+ * This file is include by src/login.php, src/redirect.php and
+ * src/load_prefs.php.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below.                              ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once( '../functions/plugin.php' );      // Required for the hook
+
+/**************************************************************/
+/* Set values for constants used by Squirrelmail preferences. */
+/**************************************************************/
 
     /* Define basic, general purpose preference constants. */
     define('SMPREF_NO', 0);
index 82e2ee659ed9147fc49c27f46eb97e89e6d86395..8fca991c2c9a552ed5d6a32d04e5aef87998aaf6 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
-    *   date.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   Takes a date and parses it into a usable format.  The form that a
-    *   date SHOULD arrive in is:
-    *         <Tue,> 29 Jun 1999 09:52:11 -0500 (EDT)
-    *   (as specified in RFC 822) -- 'Tue' is optional
-    *
-    *   $Id$
-    */
-
-   // corrects a time stamp to be the local time
-   function getGMTSeconds($stamp, $gmt) {
+/**
+ * date.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Takes a date and parses it into a usable format.  The form that a
+ * date SHOULD arrive in is:
+ *       <Tue,> 29 Jun 1999 09:52:11 -0500 (EDT)
+ * (as specified in RFC 822) -- 'Tue' is optional
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+// corrects a time stamp to be the local time
+function getGMTSeconds($stamp, $gmt) {
       global $invert_time;
       if (($gmt == 'Pacific') || ($gmt == 'PST'))
          $gmt = '-0800';
       return ($mtime);
    }
 */
-?>
\ No newline at end of file
+?>
index 5243649f766c5c8785f6e6a74ec301793b3a05e6..442e9d26d4cb293f7b0cbff3fff3eb6638382dcc 100644 (file)
@@ -1,39 +1,55 @@
 <?php
-   /**
-    *   db_prefs.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This contains functions for manipulating user preferences
-    *   stored in a database, accessed though the Pear DB layer.
-    *
-    *   To use this instead of the regular prefs.php, create a
-    *   database as described below, and replace prefs.php
-    *   with this file.
-    *
-    *   Database:
-    *   ---------
-    *
-    *   The preferences table should have tree columns:
-    *      username   char  \  primary
-    *      prefkey    char  /  key
-    *      prefval    blob
-    *
-    *     CREATE TABLE userprefs (user CHAR(32) NOT NULL DEFAULT '',
-    *                             prefkey CHAR(64) NOT NULL DEFAULT '',
-    *                             prefval BLOB NOT NULL DEFAULT '',
-    *                             primary key (user,prefkey));
-    *
-    *   Configuration of databasename, username and password is done
-    *   by changing $DSN below.
-    *
-    *   $Id$
-    */
-
-   require_once('DB.php');
-
-   class dbPrefs {
+/**
+ * db_prefs.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This contains functions for manipulating user preferences
+ * stored in a database, accessed though the Pear DB layer.
+ *
+ * To use this instead of the regular prefs.php, create a
+ * database as described below, and replace prefs.php
+ * with this file.
+ *
+ * Database:
+ * ---------
+ *
+ * The preferences table should have tree columns:
+ *    username   char  \  primary
+ *    prefkey    char  /  key
+ *    prefval    blob
+ *
+ *   CREATE TABLE userprefs (user CHAR(32) NOT NULL DEFAULT '',
+ *                           prefkey CHAR(64) NOT NULL DEFAULT '',
+ *                           prefval BLOB NOT NULL DEFAULT '',
+ *                           primary key (user,prefkey));
+ *
+ * Configuration of databasename, username and password is done
+ * by changing $DSN below.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below.                              ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('DB.php');
+
+class dbPrefs {
       var $DSN   = 'mysql://user@host/database';
       var $table = 'userprefs';
 
index 06e352873e33ff8e0992ea1d0f925baa3e73930c..62d31e3a82a235e9845e6a26beb1ea41e5805506 100644 (file)
@@ -1,20 +1,35 @@
 <?php
 
-   /**
   *   display_messages.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *   This contains all messages, including information, error, and just
   *   about any other message you can think of.
   *
   *  $Id$
   */
+/**
* display_messages.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* This contains all messages, including information, error, and just
* about any other message you can think of.
+ *
* $Id$
+ */
 
-    function error_username_password_incorrect($color) {
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
 
-        echo '<BR>'.
+function error_username_password_incorrect($color) {
+    echo '<BR>'.
                 "<TABLE COLS=1 WIDTH=75% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
                 '<TR>'.
                     "<TD BGCOLOR=\"$color[0]\">".
       echo '   </TD></TR>';
       echo '</TABLE>';
     }
-?>
\ No newline at end of file
+?>
index 6d18d8e54250175724dfffd2fdda88a8fc027010..2bbf221d46c353ce8b584812c203bd7cf9cea27f 100644 (file)
@@ -1,23 +1,39 @@
 <?PHP
 
-   /**
   *   gettext.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *   Alternate to the system's built-in gettext.
   *   relies on .po files (can't read .mo easily).
   *   Uses the session for caching (speed increase)
   *   Possible use in other PHP scripts?  The only SM-specific thing is
   *     $sm_language, I think
   *
   *  $Id$
   */
+/**
* gettext.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Alternate to the system's built-in gettext.
* relies on .po files (can't read .mo easily).
* Uses the session for caching (speed increase)
* Possible use in other PHP scripts?  The only SM-specific thing is
*   $sm_language, I think
+ *
* $Id$
+ */
 
-   global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded,
-      $gettext_php_translateStrings, $gettext_php_loaded_language,
-      $gettext_php_short_circuit;
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the global definition below.                         ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded,
+       $gettext_php_translateStrings, $gettext_php_loaded_language,
+       $gettext_php_short_circuit;
    
    if (! isset($gettext_php_loaded)) {
       $gettext_php_loaded = false;
index 2ce457b1f144020b2dfb771ae0a6f10a29749d50..f205968f0c226d82b279fe25824f508d8b810477 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
-    *  i18n.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *  This file contains variuos functions that are needed to do
-    *  internationalization of SquirrelMail.
-    *
-    *  Internally the output character set is used. Other characters are
-    *  encoded using Unicode entities according to HTML 4.0.
-    *
-    *  $Id$
-    */
-
-   global $squirrelmail_language, $languages;
-   if (! isset($squirrelmail_language)) { $squirrelmail_language = ''; }
+/**
+ * i18n.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This file contains variuos functions that are needed to do
+ * internationalization of SquirrelMail.
+ *
+ * Internally the output character set is used. Other characters are
+ * encoded using Unicode entities according to HTML 4.0.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the global definition below.                         ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+global $squirrelmail_language, $languages;
+if (! isset($squirrelmail_language)) { $squirrelmail_language = ''; }
 
    // This array specifies the available languages.
    $languages['ca']['NAME']    = 'Catalan';
      if ($my_charset) $default_charset=$my_charset;
    }
 
-?>
\ No newline at end of file
+?>
index 7930cf6efcfa8fe2bd833b365c2a4d4fc6d74966..6f0b54dad527408c7172e1fa20cb26e27fa79aaf 100644 (file)
@@ -1,22 +1,22 @@
 <?php
 
-   /**
   *   imap.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *   This just includes the different sections of the imap functions.
   *   They have been organized into these sections for simplicity sake.
   *
   *   $Id$
   */
+/**
* imap.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* This just includes the different sections of the imap functions.
* They have been organized into these sections for simplicity sake.
+ *
* $Id$
+ */
 
-   $imap_backend = 'imap';
+$imap_backend = 'imap';
 
-   require_once('../functions/' . $imap_backend . '_mailbox.php');
-   require_once('../functions/' . $imap_backend . '_messages.php');
-   require_once('../functions/' . $imap_backend . '_general.php');
-   require_once('../functions/' . $imap_backend . '_search.php');
+require_once('../functions/' . $imap_backend . '_mailbox.php');
+require_once('../functions/' . $imap_backend . '_messages.php');
+require_once('../functions/' . $imap_backend . '_general.php');
+require_once('../functions/' . $imap_backend . '_search.php');
 
-?>
\ No newline at end of file
+?>
index 617c2937c889d52149da909e112b46c1d89c7c50..4909543926f948ceb319a3bb67adb24efe963b81 100755 (executable)
@@ -1,24 +1,40 @@
 <?php
 
-   /**
-    *   imap.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This implements all functions that do general imap functions.
-    *
-    *   $Id$
-    */
-
-    /**
-    * Unique SessionId
-    *
-    * Sets an unique session id in order to avoid simultanous sessions crash.
-    *
-    * @return  string  a 4 chars unique string
-    */
-    function sqimap_session_id() {
+/**
+ *   imap.php
+ *
+ *   Copyright (c) 1999-2001 The SquirrelMail Development Team
+ *   Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ *   This implements all functions that do general imap functions.
+ *
+ *   $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the function definition and comments start below.    ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+/**
+ * Unique SessionId
+ *
+ * Sets an unique session id in order to avoid simultanous sessions crash.
+ *
+ * @return     string  a 4 chars unique string
+ */
+function sqimap_session_id() {
 
         global $data_dir, $username;
 
index 031ccc43f498d9bf689dd688c4a4e5c9fc581047..6862e5b47fab2bbc09bac3e793b78b9bf90d4d47 100755 (executable)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
-    *   imap_mailbox.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This impliments all functions that manipulate mailboxes
-    *
-    *   $Id$
-    */
-
-   /******************************************************************************
-    **  Expunges a mailbox 
-    ******************************************************************************/
-   function sqimap_mailbox_expunge ($imap_stream, $mailbox,$handle_errors = true) {
+/**
+ * imap_mailbox.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This impliments all functions that manipulate mailboxes
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the function definition starts below.                ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+/*************************
+ **  Expunges a mailbox **
+ *************************/
+function sqimap_mailbox_expunge ($imap_stream, $mailbox,$handle_errors = true) {
       fputs ($imap_stream, sqimap_session_id() . " EXPUNGE\r\n");
       $read = sqimap_read_data($imap_stream, sqimap_session_id(), $handle_errors, $response, $message);
    }
index d31f627237d36618db6e57d0098370b7a5511271..8b57f5e4bfac3c07136b1e130f3aa0d5feda6d61 100755 (executable)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
-    *   imap_messages.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This implements functions that manipulate messages
-    *
-    *   $Id$
-    */
-
-   /******************************************************************************
-    **  Copies specified messages to specified folder
-    ******************************************************************************/
-   function sqimap_messages_copy ($imap_stream, $start, $end, $mailbox) {
+/**
+ * imap_messages.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This implements functions that manipulate messages
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the function definition starts below.                ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+/****************************************************
+ **  Copies specified messages to specified folder **
+ ****************************************************/
+function sqimap_messages_copy ($imap_stream, $start, $end, $mailbox) {
       fputs ($imap_stream, sqimap_session_id() . " COPY $start:$end \"$mailbox\"\r\n");
       $read = sqimap_read_data ($imap_stream, sqimap_session_id(), true, $response, $message);
    }
index d22f80dcf4ccadb092cb8399c4b72b6f3cab7908..300beaad57617bd3fa4601b5b971ade955e11fd3 100644 (file)
@@ -1,22 +1,37 @@
 <?php
 
-   /**
-    *   imap_search.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   IMAP search routines
-    *
-    *  $Id$
-    */
-
-
-    require_once('../functions/imap.php');
-    require_once('../functions/date.php');
-    require_once('../functions/array.php');
-    require_once('../functions/mailbox_display.php');
-    require_once('../functions/mime.php');
+/**
+ *   imap_search.php
+ *
+ *   Copyright (c) 1999-2001 The Squirrelmail Development Team
+ *   Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ *   IMAP search routines
+ *
+ *  $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below.                              ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../functions/imap.php');
+require_once('../functions/date.php');
+require_once('../functions/array.php');
+require_once('../functions/mailbox_display.php');
+require_once('../functions/mime.php');
 
 
     function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$color) {
         }
     }
 
-?>
\ No newline at end of file
+?>
index 28bb0695079fb60e300c8a634de55d427415318b..bc641e5ff33a61df39e459965cc1797c67a19afb 100644 (file)
@@ -1,21 +1,21 @@
 <?php
 
-   /**
   *  index.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *   This file simply takes any attempt to view source files
   *   and sends those people to the login screen. At this
   *   point no attempt is made to see if the person is logged
   *   or not.
   *
   *   $Id$
   */
+/**
+ *  index.php
+ *
*   Copyright (c) 1999-2001 The SquirrelMail Development Team
+ *   Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ *   This file simply takes any attempt to view source files
+ *   and sends those people to the login screen. At this
+ *   point no attempt is made to see if the person is logged
+ *   or not.
+ *
+ *   $Id$
+ */
 
-    header("Location:../index.php");
+header("Location:../index.php");
 
-    /** pretty impressive huh? **/
+/* pretty impressive huh? */
 
-?>
\ No newline at end of file
+?>
index 8d1e5be39a32add371145f1ce669b646df1b9bb1..20c740c11adc4468994553df93ccd599135e8dda 100644 (file)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
-    *   mailbox_display.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This contains functions that display mailbox information, such as the
-    *   table row that has sender, date, subject, etc...
-    *
-    *   $Id$
-    */
-
-   define('PG_SEL_MAX', 10);  /* Default value for page_selector_max. */
-
-   function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start_msg, $where, $what) {
+/**
+ * mailbox_display.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This contains functions that display mailbox information, such as the
+ * table row that has sender, date, subject, etc...
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+define('PG_SEL_MAX', 10);  /* Default value for page_selector_max. */
+
+function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start_msg, $where, $what) {
       global $checkall;
       global $color, $msgs, $msort;
       global $sent_folder, $draft_folder;
index 05a340ab39466dbe8871edfefd3b66736e67b6f4..e55e4cf21981dff5215bdfa517c1be13bfc034f0 100644 (file)
@@ -1,33 +1,48 @@
 <?php
 
-   /**
-    *  mime.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *  This contains the functions necessary to detect and decode MIME
-    *  messages.
-    *
-    *  $Id$
-    */
-
-   require_once('../functions/imap.php');
-   require_once('../functions/attachment_common.php');
-
-   /** Setting up the objects that have the structure for the message **/
-
-   class msg_header {
-      /** msg_header contains generic variables for values that **/
-      /** could be in a header.                                 **/
-
-      var $type0 = '', $type1 = '', $boundary = '', $charset = '';
-      var $encoding = '', $size = 0, $to = array(), $from = '', $date = '';
-      var $cc = array(), $bcc = array(), $reply_to = '', $subject = '';
-      var $id = 0, $mailbox = '', $description = '', $filename = '';
-      var $entity_id = 0, $message_id = 0, $name = '';
-      // var $priority = "";
-   }
+/**
+ * mime.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This contains the functions necessary to detect and decode MIME
+ * messages.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below.                              ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../functions/imap.php');
+require_once('../functions/attachment_common.php');
+
+/** Setting up the objects that have the structure for the message **/
+class msg_header {
+    /** msg_header contains generic variables for values that **/
+    /** could be in a header.                                 **/
+
+    var $type0 = '', $type1 = '', $boundary = '', $charset = '';
+    var $encoding = '', $size = 0, $to = array(), $from = '', $date = '';
+    var $cc = array(), $bcc = array(), $reply_to = '', $subject = '';
+    var $id = 0, $mailbox = '', $description = '', $filename = '';
+    var $entity_id = 0, $message_id = 0, $name = '';
+    // var $priority = "";
+}
 
    class message {
       /** message is the object that contains messages.  It is a recursive
index 3ee2b62413a7f1e4db0b015ab8c649a4ce3abe0f..005aea7537e178d5ee9e49ee5e30f8d5a1046133 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 
-    /**
    *  options.php
    *
    *  Copyright (c) 1999-2001 The Squirrelmail Development Team
    *  Licensed under the GNU GPL. For full terms see the file COPYING.
    *
    *  Functions needed to display the options pages.
    *
    *  $Id$
    */
+/**
* options.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Functions needed to display the options pages.
+ *
* $Id$
+ */
 
 /**********************************************/
 /* Define constants used in the options code. */
index 189eff2cd9f1fc59a22a841368c1cfc53ca10cda..678c039d59e7dd0345070476414c834b7b05452d 100644 (file)
@@ -1,19 +1,35 @@
 <?php
 
-   /**
-    *   page_header.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   Prints the page header (duh)
-    *
-    *   $Id$
-    */
-
-   // Always set up the language before calling these functions
-
-   function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
+/**
+ * page_header.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Prints the page header (duh)
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+// Always set up the language before calling these functions
+function displayHtmlHeader
+    ($title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
 
         global $theme_css;
 
       // echo "</td></tr></table>";
   }
 
-?>
\ No newline at end of file
+?>
index 59e8d2e9bab024b894e8faef101047454a1d6b90..df8d37098aa6a996703c735c0e99fe5dc9386e95 100644 (file)
@@ -1,21 +1,36 @@
 <?php
 
-   /**
-    *   plugin.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This file provides the framework for a plugin architecture.
-    *
-    *   Documentation on how to write plugins might show up some time.
-    *
-    *   $Id$
-    */
-
-    global $squirrelmail_plugin_hooks;
-
-    $squirrelmail_plugin_hooks = array();
+/**
+ * plugin.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This file provides the framework for a plugin architecture.
+ *
+ * Documentation on how to write plugins might show up some time.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the $squirrelmail_plugin_hooks stuff below.          ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+global $squirrelmail_plugin_hooks;
+squirrelmail_plugin_hooks = array();
 
     // This function adds a plugin
     function use_plugin ($name) {
@@ -58,4 +73,4 @@
         }
     }
 
-?>
\ No newline at end of file
+?>
index 8b0692429b2355e2341c0a6f82461fa9aafa8430..4430a191cd6e8912d5f8684184994831d0cfbccc 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
-    *   prefs.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This contains functions for manipulating user preferences
-    *
-    *   $Id$
-    */
-
-   global $prefs_are_cached, $prefs_cache;
-   if (!session_is_registered('prefs_are_cached')) {
-      $prefs_are_cached = false;
-      $prefs_cache = array();
-   }
+/**
+ * prefs.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This contains functions for manipulating user preferences
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the $prefs_are_cached and $prefs_cache stuff below.  ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+global $prefs_are_cached, $prefs_cache;
+if (!session_is_registered('prefs_are_cached')) {
+    $prefs_are_cached = false;
+    $prefs_cache = array();
+}
 
    function cachePrefValues($data_dir, $username) {
        global $prefs_are_cached, $prefs_cache;
       return $sig;
    }
 
-?>
\ No newline at end of file
+?>
index 78b983cd62933d0084b4de0d4f6dc2a1f44612d9..4ef0c611332539a7dfa514b38379d8a4fedf9a67 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
-    *   smtp.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *  This contains all the functions needed to send messages through
-    *  an smtp server or sendmail.
-    *
-    *  $Id$
-    */
-
-   require_once('../functions/addressbook.php');
-   require_once('../functions/plugin.php');
-
-   global $username, $popuser, $domain;
+/**
+ * smtp.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This contains all the functions needed to send messages through
+ * an smtp server or sendmail.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once and global lines below.             ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../functions/addressbook.php');
+require_once('../functions/plugin.php');
+
+global $username, $popuser, $domain;
 
    // This should most probably go to some initialization...
    if (ereg("^([^@%/]+)[@%/](.+)$", $username, $usernamedata)) {
index 291c52ed2d2fafc17581199a419c6d53d3913f66..fa446feac66670b52ad71c2e0e85b90200baa30a 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
-    *   strings.php
-    *
-    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
-    *   Licensed under the GNU GPL. For full terms see the file COPYING.
-    *
-    *   This code provides various string manipulation functions that are
-    *   used by the rest of the Squirrelmail code.
-    *
-    *   $Id$
-    */
-
-   /**
-    * SquirrelMail version number -- DO NOT CHANGE
-    */
-   global $version;
-   $version = '1.2.0 [cvs]';
+/**
+ * strings.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This code provides various string manipulation functions that are
+ * used by the rest of the Squirrelmail code.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the comment and $version stuff below.                ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+/**
+ * SquirrelMail version number -- DO NOT CHANGE
+ */
+global $version;
+$version = '1.2.0 [cvs]';
 
    /**
     * Count the number of occurances of $needle are in $haystack.
index d785fef713156c57b5513d849471c74aad9908e4..0d2a5f597e993b336f450b910942bee16c2a3975 100644 (file)
@@ -1,26 +1,40 @@
 <?php
 
-   /**
   *   tree.php
   *
   *   Copyright (c) 1999-2001 The Squirrelmail Development Team
   *   Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *   This code provides various string manipulation functions that are
   *   used by the rest of the Squirrelmail code.
   *
   *   $Id$
   */
+/**
* tree.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* This code provides various string manipulation functions that are
* used by the rest of the Squirrelmail code.
+ *
* $Id$
+ */
 
-   require_once('../functions/imap.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below.                              ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
 
-    /**
-    * findParentForChild
-    *
-    * Recursive function to find the correct parent for a new node
   *
-    * @copyright    1999-2001 The Squirrelmail Development Team
   */
+require_once('../functions/imap.php');
+
+/**
+ * findParentForChild
+ *
+ * Recursive function to find the correct parent for a new node
+ */
 
    function findParentForChild($value, $treeIndexToStart, $tree) {
       // is $value in $tree[$treeIndexToStart]['value']
index c9ee48627853ec8ef5a68a920e200da3f6ff45db..df65fcda8ea92789fdefbff922cd81d8fed5a6e2 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
   *  url_parser.php
   *
   *  Copyright (c) 1999-2001 The Squirrelmail Development Team
   *  Licensed under the GNU GPL. For full terms see the file COPYING.
   *
   *  This code provides various string manipulation functions that are
   *  used by the rest of the Squirrelmail code.
   *
   *  $Id$
   */
+/**
* url_parser.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* This code provides various string manipulation functions that are
* used by the rest of the Squirrelmail code.
+ *
* $Id$
+ */
 
-   function replaceBlock (&$in, $replace, $start, $end) {
-      $begin = substr($in,0,$start);
-      $end   = substr($in,$end,strlen($in)-$end);
-      $in    = $begin.$replace.$end;
-   }
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+function replaceBlock (&$in, $replace, $start, $end) {
+    $begin = substr($in,0,$start);
+    $end   = substr($in,$end,strlen($in)-$end);
+    $in    = $begin.$replace.$end;
+}
 
    // Having this defined in just one spot could help when changes need
    // to be made to the pattern
index 0356f058afbfcf543e647a8ae1a1ff31231b3bce..1ece875f6c09d8f297a47d91b1f6ce7898ede7cf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,19 +1,20 @@
 <?php
 
-   /**
   **  index.php -- Displays the main frameset
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Redirects to the login page.
   **
   **  $Id$
   **/
+/**
* index.php -- Displays the main frameset
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Redirects to the login page.
+ *
* $Id$
+ */
 
-   require_once('./functions/strings.php');
+require_once('./functions/strings.php');
 
-   $location = get_location();
-   header("Location: $location/src/login.php\n\n");
-   exit();
-?>
\ No newline at end of file
+$location = get_location();
+header("Location: $location/src/login.php\n\n");
+exit();
+
+?>
index 4c82a6480cc7104989ce7ffb26a67f13f225f312..b5e3ed411f356758a418f4a3639ba02071ab8010 100644 (file)
@@ -1,34 +1,35 @@
 <?php
 
-   /**
   **  addrbook_popup.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Frameset for the JavaScript version of the address book.
   **
   **  $Id$
   **/
+/**
* addrbook_popup.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Frameset for the JavaScript version of the address book.
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/addressbook.php');
+require_once('../src/validate.php');
+require_once('../functions/addressbook.php');
    
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
 
 <HTML>
-<HEAD>
-<TITLE><?php 
-   echo "$org_title: " . _("Address Book"); 
-?></TITLE>
-</HEAD>
-
-<FRAMESET ROWS="60,*" BORDER=0>
- <FRAME NAME="abookmain" MARGINWIDTH=0 SCROLLING=NO
-        SRC="addrbook_search.php?show=form" BORDER=0>
<FRAME NAME="abookres" MARGINWIDTH=0 SRC="addrbook_search.php?show=blank"
-        BORDER=0>
-</FRAMESET>
-
-</HTML>
\ No newline at end of file
+    <HEAD>
+        <TITLE><?php echo "$org_title: " . _("Address Book"); ?></TITLE>
+    </HEAD>
+    <FRAMESET ROWS="60,*" BORDER=0>
+        <FRAME NAME="abookmain"
+               MARGINWIDTH="0"
+               SCROLLING="NO"
+               BORDER="0"
+               SRC="addrbook_search.php?show=form">
       <FRAME NAME="abookres"
+               MARGINWIDTH="0"
+               BORDER="0"
+              SRC="addrbook_search.php?show=blank">
+    </FRAMESET>
+</HTML>
index f9ae4ab853e53d19ce3a3a3df981719fe8e5437a..f347abac3801f62e61055188629bff87aec4c7fc 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
-    **  addrbook_search.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Handle addressbook searching in the popup window.
-    **
-    **  NOTE: A lot of this code is similar to the code in
-    **        addrbook_search_html.html -- If you change one,
-    **        change the other one too!
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
+/**
+ * addrbook_search.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handle addressbook searching in the popup window.
+ *
+ * NOTE: A lot of this code is similar to the code in
+ *       addrbook_search_html.html -- If you change one,
+ *       change the other one too!
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
 
    // Function to include JavaScript code
    function insert_javascript() {
@@ -242,4 +258,4 @@ function bcc_address($addr) {
    
    echo "</BODY></HTML>\n";
    
-?>
\ No newline at end of file
+?>
index 6aa64625caeadb811b2f2714e77ce7273e68f482..c7062491e8a8283153f7550a10c8e06cbc034fad 100644 (file)
@@ -1,28 +1,44 @@
 <?php
 
-   /**
-    **  addrbook_search_html.php
-    **
-    **  Copyright (c) 1999-2000 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Handle addressbook searching with pure html.
-    **
-    **  This file is included from compose.php
-    **
-    **  NOTE: A lot of this code is similar to the code in
-    **        addrbook_search.html -- If you change one, change
-    **        the other one too!
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/date.php');
-   require_once('../functions/smtp.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/addressbook.php');
-   require_once('../functions/plugin.php');
+/**
+ * addrbook_search_html.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handle addressbook searching with pure html.
+ *
+ * This file is included from compose.php
+ *
+ * NOTE: A lot of this code is similar to the code in
+ *       addrbook_search.html -- If you change one, change
+ *       the other one too!
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/date.php');
+require_once('../functions/smtp.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/addressbook.php');
+require_once('../functions/plugin.php');
 
    // Insert hidden data
    function addr_insert_hidden() {
index 4b730e5e15a0ed906f6500d85e845c48f78aacda..9f55e23884cf4a8f41b760e3cd37ee7234dc36d6 100644 (file)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
-    **  addressbook.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Manage personal address book.
-    **
-    **  $Id$
-    **/
-
-    require_once('../src/validate.php');
-    require_once('../functions/array.php');
-    require_once('../functions/display_messages.php');
-    require_once('../functions/addressbook.php');
+/**
+ * addressbook.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Manage personal address book.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/array.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/addressbook.php');
 
     // Sort array by the key "name"
     function alistcmp($a,$b) {
     do_hook('addressbook_bottom');
 ?>
 
-</BODY></HTML>
\ No newline at end of file
+</BODY></HTML>
index 5dc425d63be4903da135422e1ddcaf82efa1cfed..fef3d070c65c89c28c104035f8a4a7963d98470b 100644 (file)
@@ -1,29 +1,45 @@
 <?php
 
-   /**
-    **  compose.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  This code sends a mail.
-    **
-    **  There are 4 modes of operation:
-    **     - Start new mail
-    **     - Add an attachment
-    **     - Send mail
-    **     - Save As Draft
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/date.php');
-   require_once('../functions/mime.php');
-   require_once('../functions/smtp.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/plugin.php');
+/**
+ * compose.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This code sends a mail.
+ *
+ * There are 4 modes of operation:
+ *    - Start new mail
+ *    - Add an attachment
+ *    - Send mail
+ *    - Save As Draft
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/date.php');
+require_once('../functions/mime.php');
+require_once('../functions/smtp.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/plugin.php');
 
    if (!isset($attachments))
    {
index d4c6f86050c18eb4ca7370bd8ff54ea8348a0580..b58f37539b278987faa13b1d2953b85771b8051a 100644 (file)
@@ -1,19 +1,35 @@
 <?php
 
-   /**
   **  delete_message.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Deletes a meesage from the IMAP server 
   **
   **  $Id$
   **/
+/**
* delete_message.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Deletes a meesage from the IMAP server 
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/imap.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/imap.php');
 
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
@@ -30,4 +46,4 @@
       header ("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=".urlencode($mailbox));
 
    sqimap_logout($imapConnection);
-?>
\ No newline at end of file
+?>
index dd0b65aa1363fdecb9056ec68ac7725660dea363..f0a31f58492146e7ec797bd88d4a1c7418752d00 100644 (file)
@@ -1,23 +1,39 @@
 <?php
 
-   /**
-    **  download.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Handles attachment downloads to the users computer.
-    **  Also allows displaying of attachments when possible.
-    **
-    **  $Id$
-    **/
-
-   define('download_php', true);  // Used for preferences
-
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/mime.php');
-   require_once('../functions/date.php');
+/**
+ * download.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handles attachment downloads to the users computer.
+ * Also allows displaying of attachments when possible.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+define('download_php', true);  // Used for preferences
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/mime.php');
+require_once('../functions/date.php');
 
    header("Pragma: ");
    header("Cache-Control: cache");
          }
       }
    }
-?>
\ No newline at end of file
+?>
index 7512e15dc218d0058658508cc58773da92a1525f..e20e3f033c6fdbc27b6c34a812cca67f17b0feb1 100644 (file)
@@ -1,16 +1,31 @@
 <?php
 
-   /**
-    **  draft_actions.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **
-    **  $Id$
-    **/
-
-    require_once ('../src/validate.php');
+/**
+ * draft_actions.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once ('../src/validate.php');
 
    /* Print all the needed RFC822 headers */
    function write822HeaderForDraft ($fp, $t, $c, $b, $subject, $more_headers) {
index ebb178aefdbb3c272b9a2bd383fba3f06b1dc687..1aeffe025aa5c9ecbc7c9509eef9536e148fcec9 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
-    **  empty_trash.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Handles deleting messages from the trash folder without
-    **  deleting subfolders.
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/array.php');
-   require_once('../functions/tree.php');
+/**
+ * empty_trash.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handles deleting messages from the trash folder without
+ * deleting subfolders.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/imap.php');
+require_once('../functions/array.php');
+require_once('../functions/tree.php');
 
    $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
index 24eaa84420bc2d52e67dff2abdfc2844706e9566..950276efb45695f380a8db4f295cf727c965796c 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
-    **  folders.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Handles all interaction between the user and the other folder
-    **  scripts which do most of the work. Also handles the Special
-    **  Folders.
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/array.php');
-   require_once('../functions/plugin.php');
+/**
+ * folders.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Handles all interaction between the user and the other folder
+ * scripts which do most of the work. Also handles the Special
+ * Folders.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/array.php');
+require_once('../functions/plugin.php');
 
    displayPageHeader($color, 'None');
 
    sqimap_logout($imapConnection);
 ?>
 
-</body></html>
\ No newline at end of file
+</body></html>
index ce8d9643feb1769b01438ed32d9d4c75b7759eff..9af11417f13a25ec76be3d91c352f919503d37c4 100644 (file)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
-    **  folders_create.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Creates folders on the IMAP server.
-    **  Called from folders.php
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/display_messages.php');
+/**
+ * folders_create.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Creates folders on the IMAP server.
+ * Called from folders.php
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/display_messages.php');
 
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    global $delimiter;
index b449bc4bfd32545818ebcc7ee39ab2a7271c19ba..c03fa852a6a1d34d1c7c4609ab2ba3063ca6d1d5 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
   **  folders_delete.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Deltes folders from the IMAP server. 
   **  Called from the folders.php
   **
   **  $Id$
   **/
+/**
* folders_delete.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Deltes folders from the IMAP server. 
* Called from the folders.php
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/array.php');
-   require_once('../functions/tree.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/array.php');
+require_once('../functions/tree.php');
 
    /*
    *  Incoming values:
index ed1908ad62ea67d0e01715b3f6be10fbab5b7eb9..d86ba9d488881472a502f80f01902e7ff62b7595 100644 (file)
@@ -1,19 +1,35 @@
 <?php
 
-   /**
   **  folders_rename_do.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Does the actual renaming of files on the IMAP server. 
   **  Called from the folders.php
   **
   **  $Id$
   **/
+/**
* folders_rename_do.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Does the actual renaming of files on the IMAP server. 
* Called from the folders.php
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
 
    if($old_name == $new_name) {
       $location = get_location();
index 2baac04f56bb079b4e273e377ed77ff7c3134ca6..ae2e50bb98593808ee04d39e0f92207036ec7a84 100644 (file)
@@ -1,19 +1,35 @@
 <?php
 
-   /**
   **  folders_rename_getname.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Gets folder names and enables renaming
   **  Called from folders.php
   **
   **  $Id$
   **/
+/**
* folders_rename_getname.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Gets folder names and enables renaming
* Called from folders.php
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
 
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
index 2ae7412acb22b770823ae96479fc676be29ea65d..94e51395af1d87adea6cf90a92e1cb7d4b533b86 100644 (file)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
   **  folders_subscribe.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Subscribe and unsubcribe form folders. 
   **  Called from folders.php
   **
   **  $Id$
   **/
+/**
* folders_subscribe.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Subscribe and unsubcribe form folders. 
* Called from folders.php
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/display_messages.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/display_messages.php');
 
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
index dce8635229be4e68375cca12ec13069415423297..316ecfc14f1195d70b8abf933c1a5f590831088b 100644 (file)
@@ -1,20 +1,36 @@
 <?php
 
-   /**
-    **  help.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Displays help for the user
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/array.php');
+/**
+ * help.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Displays help for the user
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/imap.php');
+require_once('../functions/array.php');
 
 
    displayPageHeader($color, 'None' );
 ?>
 <tr><td bgcolor="<?php echo $color[0] ?>">&nbsp;</td></tr></table>
 <td></tr></table>
-</body></html>
\ No newline at end of file
+</body></html>
index 110938054145f16daaf9b0d05a2a7bc21df3e1cb..7aa89caf486972f939ff1c549f7613a62425c060 100644 (file)
@@ -1,21 +1,36 @@
 <?php
 
-    /**
-    ** image.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    ** This file shows an attached image
-    **
-    ** $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/date.php');
-   require_once('../functions/page_header.php');
-   require_once('../src/load_prefs.php');
+/**
+ * image.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This file shows an attached image
+ *
+ * $Id$
+ */
 
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/date.php');
+require_once('../functions/page_header.php');
+require_once('../src/load_prefs.php');
 
    displayPageHeader($color, 'None');
 
index 3f67ad8480133375e7d2212233bb2eb81b03a601..856b424af9fbafc275f9ff884edd31b41c0d5525 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 
-   /**
   **  index.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  This file simply takes any attempt to view index of files
   **  and sends those people to the login screen. At this
   **  point no attempt is made to see if the person is logged
   **  or not.
   **/
+/**
+ *  index.php
+ *
*  Copyright (c) 1999-2001 The Squirrelmail Development Team
+ *  Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ *  This file simply takes any attempt to view index of files
+ *  and sends those people to the login screen. At this
+ *  point no attempt is made to see if the person is logged
+ *  or not.
+ */
 
-    header("Location:../index.php");
+header("Location:../index.php");
 
-    /** pretty impressive huh? **/
+/* pretty impressive huh? **/
 ?>
index 3416c3142c2ce049dd5f4659ac10cd72070fc171..ba36ec713a1660bd4c6f96412869cf0f3bdc4d00 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
-    **  left_main.php
-    **
-    **  Copyright (c) 1999-2001 The Squirrelmail Development Team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  This is the code for the left bar.  The left bar shows the folders
-    **  available, and has cookie information.
-    **
-    **  $Id$
-    */
-
-    require_once('../src/validate.php');
-    require_once('../functions/array.php');
-    require_once('../functions/imap.php');
-    require_once('../functions/plugin.php');
-    require_once('../functions/page_header.php');
+/**
+ * left_main.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This is the code for the left bar. The left bar shows the folders
+ * available, and has cookie information.
+ *
+ * $Id$
+ /
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/array.php');
+require_once('../functions/imap.php');
+require_once('../functions/plugin.php');
+require_once('../functions/page_header.php');
 
     /* These constants are used for folder stuff. */
     define('SM_BOX_UNCOLLAPSED', 0);
 
     echo "</BODY></HTML>\n";
 
-?>
\ No newline at end of file
+?>
index 4c4f1003730ddecf6f48cdf501ba757a89c513aa..0e411c2bffc8edbe5d4416572957ce8cc47d611e 100644 (file)
@@ -1,24 +1,34 @@
 <?php
 
-    /**
-     **  load_prefs.php
-     **
-     **  Copyright (c) 1999-2001 The SquirrelMail Development Team
-     **  Licensed under the GNU GPL. For full terms see the file COPYING.
-     **
-     **  Loads preferences from the $username.pref file used by almost
-     **  every other script in the source directory and alswhere.
-     **
-     **  $Id$
-     **/
-
-    require_once('../src/validate.php');
-
-    /**************************************************************/
-    /* Following code should be removed in the next foo_once step */
-    if (defined('load_prefs_php')) { return; }
-    define('load_prefs_php', true);
-    /**************************************************************/
+/**
+ * load_prefs.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Loads preferences from the $username.pref file used by almost
+ * every other script in the source directory and alswhere.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
 
     global $theme, $chosen_theme, $color;
     if (! isset($theme)) { $theme = array(); }
index dc1d6662871f78553858ad8409635a7fc49491f9..58971f5f71358c7d4f6b290f0a364485f588248e 100644 (file)
@@ -1,19 +1,35 @@
 <?php
 
-    /**
-     **  login.php -- simple login screen
-     **
-     **  Copyright (c) 1999-2001 The Squirrelmail Development Team
-     **  Licensed under the GNU GPL. For full terms see the file COPYING.
-     **
-     **  This a simple login screen. Some housekeeping is done to clean
-     **  cookies and find language.
-     **
-     **  $Id$
-     **/
-
-    $rcptaddress = '';
-    if (isset($emailaddress)) {
+/**
+ * login.php -- simple login screen
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This a simple login screen. Some housekeeping is done to clean
+ * cookies and find language.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first two lines below look.                      ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+$rcptaddress = '';
+if (isset($emailaddress)) {
         if (stristr($emailaddress, 'mailto:')) {
             $rcptaddress = substr($emailaddress, 7);
         } else {
index b3f28663731ed4074e1e211d5867f869acb1d13a..43e3cc2a7fbe93f2e02e00a2da287424a0cb3969 100644 (file)
@@ -1,19 +1,35 @@
 <?php
 
-   /**
   **  move_messages.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail development team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Enables message moving between folders on the IMAP server.
   **
   **  $Id$
   **/
+/**
* move_messages.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Enables message moving between folders on the IMAP server.
+ *
* $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/imap.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/imap.php');
 
    function putSelectedMessagesIntoString($msg) {
       $j = 0;
index c018186a1ce162e1496fe58829837749d7506418..f9f888e2c3ef45c8eae01f1f6edbf87cf9f379c6 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 
-   /**
   **  options.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail Development Team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Displays the options page. Pulls from proper user preference files
   **  and config.php. Displays preferences as selected and other options.
   **
   **  $Id$
   */
+/**
* options.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Displays the options page. Pulls from proper user preference files
* and config.php. Displays preferences as selected and other options.
+ *
* $Id$
+ */
 
 require_once('../src/validate.php');
 require_once('../functions/display_messages.php');
@@ -453,4 +453,4 @@ if ($optpage == SMOPT_PAGE_MAIN) {
              "</TABLE>\n";
     }
 
-?>
\ No newline at end of file
+?>
index 2e03483ef3cb563331389d4920e4b8caeb592157..c4da9aa21382a3665d14e96e7d65d85402a606c6 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 
-   /**
   **  options_display.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail Development Team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Displays all optinos about display preferences
   **
   **  $Id$
   */
+/**
* options_display.php
+ *
* Copyright (c) 1999-2001 The Squirrelmail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Displays all optinos about display preferences
+ *
* $Id$
+ */
 
 /* Define the group constants for the display options page. */
 define('SMOPT_GRP_GENERAL', 0);
index 32ce25a9e8db60afa2d5260010314b344ce65b56..23b5b0187d3700080abae17c6f2440bb98e9fd4c 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 
-   /**
   **  options_folder.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail Development Team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Displays all options relating to folders
   **
   **  $Id$
   **/
+/**
* options_folder.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Displays all options relating to folders
+ *
* $Id$
+ */
 
 require_once('../functions/imap.php');
 
index 63723f6a28da449b3dee576cd1ee148aac6573b2..51eebb73c1400a4d4b5ba1435d38be124bbfff0c 100644 (file)
@@ -1,18 +1,34 @@
 <?php
 
-   /**
-    **  options_identities.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Display Identities Options
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/display_messages.php');
+/**
+ * options_identities.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Display Identities Options
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.php');
 
    if (isset($return)) {
       SaveUpdateFunction();
@@ -311,4 +327,4 @@ function ShowTableInfo($full_name, $email_address, $reply_to, $post) {
     echo '</td></tr>'.
          '<tr><td colspan="2">&nbsp;</td></tr>';
 }
-?>
\ No newline at end of file
+?>
index 5af142108d7c3b0421879792f94cce5bbf3f92f8..042048a7b495234dadd8e151ced6fc1bdfba4896 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
-    **  options_order.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Displays message highlighting options
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once('../functions/display_messages.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/array.php');
-   require_once('../functions/plugin.php');
+/**
+ * options_order.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Displays message highlighting options
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.php');
+require_once('../functions/imap.php');
+require_once('../functions/array.php');
+require_once('../functions/plugin.php');
 
 
    if (! isset($action)) { $action = ''; }
 
 </td></tr>
 </table>
-</body></html>
\ No newline at end of file
+</body></html>
index 9bfdd5e0c9770177a974d64478ce5d2198c55316..988ccb2c400b0b109d66927adde8f20dbffe311a 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 
-   /**
   **  options_personal.php
   **
   **  Copyright (c) 1999-2001 The SquirrelMail Development Team
   **  Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   **  Displays all options relating to personal information
   **
   **  $Id$
   **/
+/**
* options_personal.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Displays all options relating to personal information
+ *
* $Id$
+ */
 
 require_once('../functions/imap.php');
 require_once('../functions/array.php');
index 8ed86d3c0a50ae0ce808aa34994850a6fd20690b..10ae45c63fbd2a23a527da8170146bd5e4aee233 100644 (file)
@@ -1,26 +1,41 @@
 <?php
 
-  /**
-   **  printer_friendly_bottom.php
-   **
-   **  Copyright (c) 1999-2001 The SquirrelMail development team
-   **  Licensed under the GNU GPL. For full terms see the file COPYING.
-   **
-   **  with javascript on, it is the bottom frame of printer_friendly_main.php
-   **  else, it is alone in a new window
-   **
-   **  - this is the page that does all the work, really.
-   **
-   **  $Id$
-   **/
-
-    require_once('../src/validate.php');
-    require_once('../functions/strings.php');
-    require_once('../config/config.php');
-    require_once('../src/load_prefs.php');
-    require_once('../functions/imap.php');
-    require_once('../functions/page_header.php');
-
+/**
+ * printer_friendly_bottom.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * with javascript on, it is the bottom frame of printer_friendly_main.php
+ * else, it is alone in a new window
+ *
+ * - this is the page that does all the work, really.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/strings.php');
+require_once('../config/config.php');
+require_once('../src/load_prefs.php');
+require_once('../functions/imap.php');
+require_once('../functions/page_header.php');
 
     $pf_cleandisplay = getPref($data_dir, $username, 'pf_cleandisplay');
 
index 95a19c3074a784b4c4aa3d0793003b4a67dc34b9..aae4e169eb8335134071089e58f22926a78a6fde 100644 (file)
@@ -1,16 +1,32 @@
 <?php
 
-  /**
  **  printer_friendly_main.php
  **
  **  Copyright (c) 1999-2001 The SquirrelMail development team
  **  Licensed under the GNU GPL. For full terms see the file COPYING.
  **
  **  $Id$
  **/
+/**
* printer_friendly_main.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* $Id$
+ */
 
-    require_once('../src/validate.php');
-    require_once('../functions/page_header.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/page_header.php');
 
     displayHtmlHeader( _("Printer Friendly"), '', FALSE );
 
index fd9b101a3e70d243ad9ec369841ef163d030a8dd..334f26ae8a40f23928606dce522d5ba4ba13bf2d 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-  /**
  **  printer_friendly_top.php
  **
  **  Copyright (c) 1999-2001 The SquirrelMail development team
  **  Licensed under the GNU GPL. For full terms see the file COPYING.
  **
  **  top frame of printer_friendly_main.php
  **  displays some javascript buttons for printing & closing
  **
  **  $Id$
  **/
+/**
* printer_friendly_top.php
+ *
* Copyright (c) 1999-2001 The SquirrelMail Development Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* top frame of printer_friendly_main.php
* displays some javascript buttons for printing & closing
+ *
* $Id$
+ */
 
-    require_once('../src/validate.php');
-    require_once('../functions/strings.php');
-    require_once('../config/config.php');
-    require_once('../src/load_prefs.php');
-    require_once('../functions/page_header.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/strings.php');
+require_once('../config/config.php');
+require_once('../src/load_prefs.php');
+require_once('../functions/page_header.php');
 
     displayHtmlHeader( _("Printer Friendly"),
                  "<script language=\"javascript\">\n".
@@ -41,4 +57,4 @@
          '</body>'.
          "</html>\n";
 
-?>
\ No newline at end of file
+?>
index d44373aed57ab2f341a5dc30d7ba103407642c04..6e02591c3a6a42db8c45cf2b3e0aecd7f334102d 100644 (file)
@@ -1,22 +1,38 @@
 <?php
 
-   /**
-    **  read_body.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail Development Team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  This file is used for reading the msgs array and displaying
-    **  the resulting emails in the right frame.
-    **
-    **  $Id$
-    */
-
-    require_once('../src/validate.php');
-    require_once('../functions/imap.php');
-    require_once('../functions/mime.php');
-    require_once('../functions/date.php');
-    require_once('../functions/url_parser.php');
+/**
+ * read_body.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This file is used for reading the msgs array and displaying
+ * the resulting emails in the right frame.
+ *
+ * $Id$
+ /
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/mime.php');
+require_once('../functions/date.php');
+require_once('../functions/url_parser.php');
    
     $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
     sqimap_mailbox_select($imapConnection, $mailbox);
index 0e62b671c63dedd8bd72a015993a07caa61a8963..d5fe55fde0aaa79451fd47b6ff26af6190eaaeca 100644 (file)
@@ -1,24 +1,40 @@
 <?php
 
-    /**
-     **  redirect.php
-     **  Derived from webmail.php by Ralf Kraudelt <kraude@wiwi.uni-rostock.de>
-     **
-     **  Copyright (c) 1999-2001 The Squirrelmail Development Team
-     **  Licensed under the GNU GPL. For full terms see the file COPYING.
-     **
-     **  Prevents users from reposting their form data after a successful logout.
-     **
-     **  $Id$
-     **/
-
-    require_once('../functions/i18n.php');
-    require_once('../functions/strings.php');
-    require_once('../config/config.php');
-    require_once('../functions/prefs.php');
-    require_once('../functions/imap.php');
-    require_once('../functions/plugin.php');
-    require_once('../functions/constants.php');
+/**
+ * redirect.php
+ * Derived from webmail.php by Ralf Kraudelt <kraude@wiwi.uni-rostock.de>
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Prevents users from reposting their form data after a successful logout.
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../functions/i18n.php');
+require_once('../functions/strings.php');
+require_once('../config/config.php');
+require_once('../functions/prefs.php');
+require_once('../functions/imap.php');
+require_once('../functions/plugin.php');
+require_once('../functions/constants.php');
 
     function attachment_common_parse($str, $debug) {
         global $attachment_common_types, $attachment_common_types_parsed;
index bd1fb1df85ef419b827bd4c5036794acb96916b2..d2623abd4d6bd2e2c29257dee8fb96b73293dc4d 100644 (file)
@@ -1,24 +1,40 @@
 <?php
 
-   /**
-    **  retrievalerror.php
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Submits a message which Squirrelmail couldn't handle
-    **  because of malformedness of the message
-    **  sends it to retrievalerror@squirrelmail.org
-    **  Of course, this only happens when the end user has chosen to do so
-    **
-    **  $Id$
-    **/
-
-   require_once('../src/validate.php');
-   require_once("../functions/imap.php");
-   require_once("../functions/smtp.php");
-   require_once("../functions/page_header.php");
-   require_once("../src/load_prefs.php");
+/**
+ * retrievalerror.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Submits a message which Squirrelmail couldn't handle
+ * because of malformedness of the message
+ * sends it to retrievalerror@squirrelmail.org
+ * Of course, this only happens when the end user has chosen to do so
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once("../functions/imap.php");
+require_once("../functions/smtp.php");
+require_once("../functions/page_header.php");
+require_once("../src/load_prefs.php");
 
    $destination = "retrievalerror@squirrelmail.org";
 
index 90131e734f479933a655b915ba1cd947cfa74452..9fedb9559e23cdd3a588df591681faa104c61efc 100644 (file)
@@ -1,19 +1,34 @@
 <?php
 
-    /**
    ** right_main.php
    **
    ** Copyright (c) 1999-2001 The Squirrelmail Development Team
    ** Licensed under the GNU GPL. For full terms see the file COPYING.
    **
    ** $Id$
    **/
+/**
+ * right_main.php
+ *
+ * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
 
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
 
-   require_once('../src/validate.php');
-   require_once('../functions/imap.php');
-   require_once('../functions/imap_search.php');
-   require_once('../functions/array.php');
+require_once('../src/validate.php');
+require_once('../functions/imap.php');
+require_once('../functions/imap_search.php');
+require_once('../functions/array.php');
 
     function s_opt( $val, $sel, $tit ) {
         echo "            <option value=\"$val\"";
    do_hook("search_bottom");
    sqimap_logout ($imapConnection);
 ?>
-</body></html>
\ No newline at end of file
+</body></html>
index c0f90204f9dc19acb8c9aea18dc3d2da56203c93..ed82aeb2e5223fa8bce9e941919d3d3b06befcab 100644 (file)
@@ -1,20 +1,35 @@
 <?php
 
-   /**
-    **  signout.php -- cleans up session and logs the user out
-    **
-    **  Copyright (c) 1999-2001 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Cleans up after the user. Resets cookies and terminates
-    **  session.
-    **
-    **  $Id$
-    **/
+/**
+ * signout.php -- cleans up session and logs the user out
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ *  Cleans up after the user. Resets cookies and terminates session.
+ *
+ * $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/prefs.php');
-   require_once('../functions/plugin.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/prefs.php');
+require_once('../functions/plugin.php');
 
    // Erase any lingering attachments
    if (! isset($attachments)) {
index 635c2e06455def2c827d05e1c233def7e4fff84c..8d78791c47b428b6fe24bd3eacbb899d4e174912 100644 (file)
@@ -1,21 +1,34 @@
 <?php
 
-    /**
    ** validate.php
    **
    ** Copyright (c) 1999-2001 The SquirrelMail Development Team
    ** Licensed under the GNU GPL. For full terms see the file COPYING.
    **
    ** $Id$
    **/
+/**
+ * validate.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
 
-    if (defined ('validate_php')) { return; }
-    define ('validate_php', true);
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
 
-    session_start();
-    require_once('../functions/i18n.php');
-    require_once('../functions/auth.php');
-    require_once('../functions/strings.php');
+session_start();
+require_once('../functions/i18n.php');
+require_once('../functions/auth.php');
+require_once('../functions/strings.php');
 
     is_logged_in();
 
index 5af777dde1dfef8bf5043a0a05ec85a24d27aa93..bbd03823ce1a196a992b4e4457ae5179ddd84d2a 100644 (file)
@@ -1,21 +1,37 @@
 <?php
 
-   /**
   ** vcard.php
   **
   ** Copyright (c) 1999-2001 The SquirrelMail Development Team
   ** Licensed under the GNU GPL. For full terms see the file COPYING.
   **
   ** This file shows an attched vcard
   **
   ** $Id$
   **/
+/**
+ * vcard.php
+ *
+ * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * This file shows an attched vcard
+ *
+ * $Id$
+ */
 
-   require_once('../src/validate.php');
-   require_once('../functions/date.php');
-   require_once('../functions/page_header.php');
-   require_once('../functions/mime.php');
-   require_once('../src/load_prefs.php');
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the require_once below looks.                        ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+require_once('../src/validate.php');
+require_once('../functions/date.php');
+require_once('../functions/page_header.php');
+require_once('../functions/mime.php');
+require_once('../src/load_prefs.php');
 
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);