Preparation to begin using phpdocumentor.
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Oct 2003 21:27:47 +0000 (21:27 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Oct 2003 21:27:47 +0000 (21:27 +0000)
Added basic @package/@subpackage tags
The decode/ files were documented slightly more thoroughly, although they're almost self-explanatory anyway.

The individual functions in the functions/ files need to be documented though, and now that this commit is in, anyone willing to write docblocks for functions should get cracking ;)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6040 7612ce4b-ef26-0410-bec9-ea0150e637f0

74 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/attachment_common.php
functions/auth.php
functions/constants.php
functions/date.php
functions/db_prefs.php
functions/decode/big5.php
functions/decode/cp10000.php
functions/decode/cp10006.php
functions/decode/cp10007.php
functions/decode/cp10017.php
functions/decode/cp10029.php
functions/decode/cp10079.php
functions/decode/cp10081.php
functions/decode/cp1250.php
functions/decode/cp1251.php
functions/decode/cp1252.php
functions/decode/cp1253.php
functions/decode/cp1254.php
functions/decode/cp1255.php
functions/decode/cp1256.php
functions/decode/cp1257.php
functions/decode/cp1258.php
functions/decode/cp855.php
functions/decode/cp866.php
functions/decode/gb2312.php
functions/decode/iso-ir-111.php
functions/decode/iso8859-1.php
functions/decode/iso8859-10.php
functions/decode/iso8859-11.php
functions/decode/iso8859-13.php
functions/decode/iso8859-14.php
functions/decode/iso8859-15.php
functions/decode/iso8859-16.php
functions/decode/iso8859-2.php
functions/decode/iso8859-3.php
functions/decode/iso8859-4.php
functions/decode/iso8859-5.php
functions/decode/iso8859-6.php
functions/decode/iso8859-7.php
functions/decode/iso8859-8.php
functions/decode/iso8859-9.php
functions/decode/koi8-r.php
functions/decode/koi8-u.php
functions/decode/tis620.php
functions/decode/utf-8.php
functions/display_messages.php
functions/file_prefs.php
functions/gettext.php
functions/global.php
functions/html.php
functions/i18n.php
functions/identity.php
functions/imap.php
functions/imap_asearch.php
functions/imap_general.php
functions/imap_mailbox.php
functions/imap_messages.php
functions/imap_search.php
functions/imap_utf7_local.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/strings.php
functions/tree.php
functions/url_parser.php

index aad2871354e57df24080e863fcae30d218180d5d..0a2b09b6af97c119f26192bc5191e701c40f9693 100644 (file)
  *        "AddressBook" class instead.
  *
  * $Id$
+ * @package squirrelmail
  */
-   
+
+/** Needs the DB functions */   
 require_once('DB.php');
-   
+
+/**
+ * Undocumented class - stores the addressbook in a sql database
+ * @package squirrelmail
+ */
 class abook_database extends addressbook_backend {
     var $btype = 'local';
     var $bname = 'database';
index 95e2dd39dd7ce4bee0e003bbee9c6a0c3e722bdd..93fd0f89920172b77536fb345e77365c3ca444da 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * abook_local_file.php
+ * abook_global_file.php
  *
  * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  * Make sure you configure this before using it!
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * Undocumented class - fixme
+ * @package squirrelmail
+ */
 class abook_global_file extends addressbook_backend {
     var $btype = 'local';
     var $bname = 'global_file';
index 191431482bc61643a2fa61e1133bc0a2872d8f25..98383918c8fab99a82387a2c8ecd6e97e1e20c79 100644 (file)
  *       "AddressBook" class instead.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * Undocumented class - fixme
+ * @package squirrelmail
+ */
 class abook_ldap_server extends addressbook_backend {
     var $btype = 'remote';
     var $bname = 'ldap_server';
index 61b0e0ce1be5aae08cba7f6ef73f2ce5ea05a765..49f82845ad31d39e1235666382d08cb2a48f85ff 100644 (file)
  *       "AddressBook" class instead.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * Store the addressbook in a local file
+ */
 class abook_local_file extends addressbook_backend {
     var $btype = 'local';
     var $bname = 'local_file';
@@ -384,4 +388,4 @@ class abook_local_file extends addressbook_backend {
     }
 
 } /* End of class abook_local_file */
-?>
\ No newline at end of file
+?>
index a6f916b4b799f02b186618d806d69c932d1a3608..dcafc36a68231d9a7020703676b4dfca498ef8f4 100644 (file)
@@ -9,9 +9,10 @@
  * Functions and classes for the addressbook system.
  *
  * $Id$
+ * @package squirrelmail
  */
 
-/*
+/**
    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"
@@ -31,7 +32,7 @@
 
 global $addrbook_dsn;
 
-/*
+/**
    Create and initialize an addressbook object.
    Returns the created object
 */
index ad36120b508810a160f38a7e3d9a7a0d2fea2e93..2f6e9b0599420a325ff46add5afa605df506de76 100644 (file)
@@ -9,8 +9,12 @@
  * This file provides the handling of often-used attachment types.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * Needs documentation
+ */
 require_once(SM_PATH . 'functions/global.php');
 
 global $attachment_common_show_images_list;
index 85eb8ff3bdf8299948d77e062a5552684d126615..6f7a872b357da00b3026f1ea206dae793113547a 100644 (file)
@@ -9,9 +9,10 @@
  * Contains functions used to do authentication.
  *
  * $Id$
+ * @package squirrelmail
  */
 
-/* Put in a safety net here, in case a naughty admin didn't run conf.pl when they upgraded */
+/** Put in a safety net here, in case a naughty admin didn't run conf.pl when they upgraded */
 
 if (! isset($smtp_auth_mech)) {
   $smtp_auth_mech = 'none';
index 00f771edda2259c6e0fc5e5e6b1467f64733d993..263ba72e818fddf703bfc04bd7d82dbdf5cea87f 100644 (file)
  * src/load_prefs.php.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Need to enable plugin functions for a hook */
 require_once(SM_PATH . 'functions/plugin.php');  /* Required for the hook */
 
 /**************************************************************/
index 8edb856c02b1cf72ccc9c36dc6414730f3a28cdc..1c894d22ecf1f5b5e60b2566af64175220dc489b 100644 (file)
  * (as specified in RFC 822) -- 'Tue' is optional
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Load up some useful constants */
 require_once(SM_PATH . 'functions/constants.php');
 
-/* corrects a time stamp to be the local time */
+/** corrects a time stamp to be the local time */
 function getGMTSeconds($stamp, $tzc) {
     /* date couldn't be parsed */
     if ($stamp == -1) {
index a973f363987285afc38a3eeaa37294f870664ddf..71f372a8fe3a9c997bada49cae8e8d5cb0938ea1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/*
+/**
  * db_prefs.php
  *
  * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * by using conf.pl or the administrator plugin
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Unknown database */
 define('SMDB_UNKNOWN', 0);
+/** MySQL */
 define('SMDB_MYSQL', 1);
+/** PostgreSQL */
 define('SMDB_PGSQL', 2);
 
 require_once('DB.php');
@@ -67,6 +71,10 @@ function cachePrefValues($username) {
     sqsession_register($prefs_are_cached, 'prefs_are_cached');
 }
 
+/**
+ * Completely undocumented class - someone document it!
+ * @package squirrelmail
+ */
 class dbPrefs {
     var $table = 'userprefs';
     var $user_field = 'user';
index bbc6b1b0888642dd5f657301e5499759e77c491d..6a00c39ef5843192b290f88a1c34d3a52bfa5d48 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/*
+/**
  * decode/big5.php
  * $Id$
  *
  * in the creation of products supporting Unicode.  Unicode, Inc.
  * specifically excludes the right to re-distribute this file directly
  * to third parties or other organizations whether for profit or not.
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode big5 encoded string
+ * @param string $string big5 string
+ * @return string $string decoded string
+ */
 function charset_decode_big5 ($string) {
     global $default_charset;
 
@@ -13765,4 +13771,4 @@ function charset_decode_big5 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 4da2ba4b4d3de11c6f39d1cdc8efc5815a4cea9d..95c539807d9ff712a981c0b9d8f2ab67ed44ca29 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10000.php
  * $Id$
  *
  *  Date:          04/24/96
  *  Authors:       Lori Brownell <loribr@microsoft.com>
  *                 K.D. Chang    <a-kchang@microsoft.com>
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp10000 (MacRoman) string
+ * @param string $string String to decode
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10000 ($string) {
     global $default_charset;
 
@@ -167,4 +174,4 @@ function charset_decode_cp10000 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index b7d9f7d73aa0b24f710143b38a29292beb3b501a..ec5e7af780ec1d9a267eb91a05cbae6ddf4b1153 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10006.php
  * $Id$
  *
  *  Date:          04/24/96
  *  Authors:       Lori Brownell <loribr@microsoft.com>
  *                 K.D. Chang    <a-kchang@microsoft.com>
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp10006 (MacGreek) string
+ * @param string $string String to decode
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10006 ($string) {
     global $default_charset;
 
@@ -167,4 +174,4 @@ function charset_decode_cp10006 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index 2e288c4efad8c084e63bec9434c4ed6a90fe90d5..0794efd3c2ba149b0022e8a285eb304b0ae3118b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10007.php
  * $Id$
  *
  *   Date:          04/24/96
  *   Authors:       Lori Brownell <loribr@microsoft.com>
  *          K.D. Chang    <a-kchang@microsoft.com>
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp10007 (MacCyrillic) string
+ * @param string $string MacCyrillic string to decode
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10007 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp10007 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index 77c638769a9393d5e8098be7d47387ea2ad53cf8..57d6e55a1f19e6edbeec1ebd9f41969789c7ddae 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10017.php
  * $Id$
  *
  * 1. ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/CYRILLIC.TXT
  * 2. http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html
  * 3. http://shlimazl.nm.ru/rus/cptable.htm (page in Russian)
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode a cp10017 (MacUkrainian) string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10017 ($string) {
     global $default_charset;
 
@@ -166,4 +173,4 @@ function charset_decode_cp10017 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index f7f45ecb69294dedab347eb1a1d548b96662ce54..cd06b688fc1af8f5c30ed61646cda5f935113c30 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10029.php
  * $Id$
  *
  *  Date:          04/24/96
  *  Authors:       Lori Brownell <loribr@microsoft.com>
  *                 K.D. Chang    <a-kchang@microsoft.com>
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp10029 (MacLatin2) string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10029 ($string) {
     global $default_charset;
 
@@ -167,4 +174,4 @@ function charset_decode_cp10029 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index 212cd36c0fd2675c9cdd79966ee2dcdfd263c382..5853ddb3521a2aa672082ac131d4f117cd294105 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10079.php
  * $Id$
  *
  *  Date:          04/24/96
  *  Authors:       Lori Brownell <loribr@microsoft.com>
  *                 K.D. Chang    <a-kchang@microsoft.com>
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode a cp10079 (MacIcelandic) string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10079 ($string) {
     global $default_charset;
 
@@ -167,4 +174,4 @@ function charset_decode_cp10079 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index fc892c0cd8babf92d8a9eed27d36465baf838d3d..ec0d3de7e18f18d0de955080ca63fe477306cfc4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp10081.php
  * $Id$
  *
  *  Date:          04/24/96
  *  Authors:       Lori Brownell <loribr@microsoft.com>
  *                 K.D. Chang    <a-kchang@microsoft.com>
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp10081(MacTurkish) encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp10081 ($string) {
     global $default_charset;
 
@@ -167,4 +174,4 @@ function charset_decode_cp10081 ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file
+?>
index 2b7369dd2e12959523c976d6923f70011e5a98d9..a5ca5b82e0ae1fc6fbfd721b92f92a2b3e9ffc89 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1250.php
  * $Id$
  *
  *  Table format:  Format A
  *  Date:          04/15/98
  *  Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode a cp1250 string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1250 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1250 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 6ba0ca07c2d21c4c72d17767872b74ecb75ff804..91763f84645550445958c1c35c8df4750a9985d4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1251.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          04/15/98
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp1251-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1251 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1251 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index a62b24820a8a54e076e78fb141f70f4e88cda5ed..ad0d19ed6647a3e7539d50bed51ff524c13f87ec 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1252.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          04/15/98
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode cp1252-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 
 function charset_decode_cp1252 ($string) {
@@ -168,4 +175,4 @@ function charset_decode_cp1252 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 268ef2c64b4fd223d871f676dc89e4e1752bfa66..029612553ce212bb900a323f246ad9a30e903143 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1253.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          04/15/98
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp1253-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1253 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1253 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 08f1c0b9776a23ec56ca6ec0b020aa64fa28ab9a..51b605c952ff98043ca76e1a545b810200a836e3 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1254.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          04/15/98
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp1254-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1254 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1254 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index ad54e75e71b117317d055468e4e4ac9ada370a14..1f92952d6e6ffa939ef719a6d80d9c4bee09138d 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1255.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          1/7/2000
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp1255-encoded string
+ * @param string $string Encoded string
+ * @return string $string decoded string
+ */
 function charset_decode_cp1255 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1255 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8effc8073835c2a5c09f544f4c3faf5a25702286..bc1259a58383203e067d9f5bf5f3df9207b60242 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1256.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          01/5/99
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * decode cp1256-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1256 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1256 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8a60f6bfc6d0ed6f2b086b51478ca87ec04b0dde..d3f9eb63a1a8291c8eab2e1df121d607f1018632 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1257.php
  * $Id$
  *
  *  Table format:  Format A
  *  Date:          04/15/98
  *  Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode cp1257-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1257 ($string) {
     global $default_charset;
 
@@ -156,4 +162,4 @@ function charset_decode_cp1257 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 431ad41de6c0e79122db7df0010ac7abf5fd5253..860ca390d93e9c616b95f11e391a0ea2472f66f0 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp1258.php
  * $Id$
  *
  *   Table format:  Format A
  *   Date:          04/15/98
  *   Contact:       cpxlate@microsoft.com
- *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decde a cp1258-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp1258 ($string) {
     global $default_charset;
 
@@ -168,4 +174,4 @@ function charset_decode_cp1258 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index e8e219e8af5371c8c6db51e1f384e12630a3cdd0..45b968ae70d407b940265905534d73e81e11f184 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp855.php
  * $Id$
  *
  *   Date:          04/24/96
  *   Authors:       Lori Brownell <loribr@microsoft.com>
  *                  K.D. Chang    <a-kchang@microsoft.com>
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode a cp855-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp855 ($string) {
     global $default_charset;
 
@@ -167,4 +174,4 @@ function charset_decode_cp855 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 63e221bda4dd527cfcb59e42ff932ab64e3e47bf..ea4632b2b1df014fc11a358ed0d8a55dfb1a4b2d 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/cp866.php
  * $Id$
  *
     Authors:       Lori Brownell <loribr@microsoft.com>
                    K.D. Chang    <a-kchang@microsoft.com>
     The entries are in cp866_DOSCyrillicRussian order
+ * @package squirrelmail
+ * @subpackage decode
 */
 
-
+/**
+ * Decode a cp866-encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
+ */
 function charset_decode_cp866 ($string) {
     global $default_charset;
 
index 38be0af38a94ee3794b62277773935100693a0d0..22e9f3df1478124d44458bfcb5e80af13d314d7f 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/gb2312.php
  * $Id$
  *
  * Unicode Standard, and to make copies of this file in any form for
  * internal or external distribution as long as this notice remains
  * attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+
+/**
+ * Decode gb2312-euk encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_gb2312 ($string) {
     global $default_charset;
@@ -7498,4 +7506,4 @@ function charset_decode_gb2312 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index bd10ca047bd74d8a8f0a821f469566385ea101e9..cee5069c651f2dae10f5ac85602df799298342f6 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso-ir-111.php
  * $Id$
  *
  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
  * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode iso-ir-111 encoded strings
+ * @param string $string Encoded string
+ * @return string Decoded string
+ */
 function charset_decode_iso_ir_111 ($string) {
     global $default_charset;
 
@@ -156,4 +164,4 @@ function charset_decode_iso_ir_111 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 66cff92ff73e919dedc9ea63abaac8c326c57787..5bbe7430b78a3806f8b2efa32a63abbe12fba2f6 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-1.php
  * $Id$
  *
@@ -8,7 +8,14 @@
  *
  * This file contains iso-8859-1 decoding function that is needed to read
  * iso-8859-1 encoded mails in non-iso-8859-1 locale.
- * 
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-1 string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_1 ($string) {
     global $default_charset;
@@ -30,4 +37,4 @@ function charset_decode_iso8859_1 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8cdb0deb533c0cf331ffb1e04a42a721cd76fddb..655b1247bd147b1b17f28d9f554ea58497c8ae86 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-10.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso-8859-10 encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_10 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_10 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 044bc1756f81ee1ec92bb336490f6a4a28788752..7d34f72d5c2c6acb9278366cf1a9651eba3a2f1b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-11.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-11 string
+ * @param string $string Encoded string
+ * @return string $string Decoded string 
  */
 function charset_decode_iso8859_11 ($string) {
     global $default_charset;
@@ -144,4 +151,4 @@ function charset_decode_iso8859_11 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8b85a6dd689ff73d24cda4fc3ced0b7338aae169..475a5f06ca85957c0fd226ad67d0d46659f6159b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-13.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-13
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_13 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_13 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 16ecca9f6922d9ce8c996d714ab3116236840ed6..2203fc07903469ab9fb3b2745a63b5ee1734beb8 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-14.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-14 encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string 
  */
 function charset_decode_iso8859_14 ($string) {
     global $default_charset;
@@ -153,4 +160,4 @@ function charset_decode_iso8859_14 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 35a665ea15e346872527a6b38d6519370653089b..af83a572dc6fe7b6922a8faa7d3e177c1bf45abf 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-15.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-15 encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_15 ($string) {
     global $default_charset;
@@ -153,4 +160,4 @@ function charset_decode_iso8859_15 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 90c2396ce6c2c0a62ca3ebfb446c563980c561ae..f5e969199df4eb2e3fbacc96846d8c81549c6fdd 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-16.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-16 string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_16 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_16 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index c4e03698b1686b4e3b5485cfea7443219ad383ed..1dd5c6ad9899d0e62ea78f6975e336cb7b8185fb 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-2.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-2 encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_2 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_2 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8893795fe7e48784e0c21a5148367db166482105..eb408910e3a9bdd32c7d5b07cef932c6aeaa80ae 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-3.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-3 encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_3 ($string) {
     global $default_charset;
@@ -145,4 +152,4 @@ function charset_decode_iso8859_3 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index f93636b3bf7808184db687b5dbd3eae01c5ed1f0..e2b0247ed59603a441b75e3261610957d92a71c5 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-4.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-4 string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_4 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_4 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 5d9703476975570342ac289521893e0e15bb1f5b..7c3ae2b33a23215292b0983ab7ea1114308efb56 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-5.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-5 encoded string
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_5 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_5 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index e90053a334005f2e9c0217f07effe3a649895e0f..c67dbf27baf2541e0e837ee7daa3204c141ad947 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-6.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-6 strings
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_6 ($string) {
     global $default_charset;
@@ -107,4 +114,4 @@ function charset_decode_iso8859_6 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 850fef4b708bdd48f61e60becd204b6098735654..e9d90fc5363be57da0a0a0e3a0f4d562640772c4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-7.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-7 encoded strings
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_7 ($string) {
     global $default_charset;
@@ -146,4 +153,4 @@ function charset_decode_iso8859_7 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 0f3d0b8b8ae821f3c1114358e3b359a5d984bc55..439d4b006959d1bde8c13f303df9cae9f15af933 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-8.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-8 encoded strings
+ * @param string $string Encoded string
+ * @return string $string Decoded string
  */
 function charset_decode_iso8859_8 ($string) {
     global $default_charset;
@@ -116,4 +123,4 @@ function charset_decode_iso8859_8 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 6d6a52dead2fb1d074e1c973a904a676d191c5e9..41b41b35eeef921a230826dfe635a5522c62421d 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/iso8859-9.php
  * $Id$
  *
  *     Unicode Standard, and to make copies of this file in any form for
  *     internal or external distribution as long as this notice remains
  *     attached.
- *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode iso8859-9 encoded strings
+ * @param string $string Encoded string
+ * @return string Decoded string
  */
 function charset_decode_iso8859_9 ($string) {
     global $default_charset;
@@ -152,4 +159,4 @@ function charset_decode_iso8859_9 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index fee1ab9a2df4e4ab8d064a610f4e1d859aa2fd08..84628d813d35c7e47fccf8717437643a6384e736 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/koi8-r.php
  * $Id$
  *
  * internal or external distribution as long as this notice remains
  * attached.
  *
+ * @package squirrelmail
+ * @subpackage decode
  */
 
+/**
+ * Decode koi8r strings
+ * @param string $string Encoded string
+ * @return string Decoded string
+ */
 function charset_decode_koi8r ($string) {
     global $default_charset;
 
@@ -184,4 +191,4 @@ function charset_decode_koi8r ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8b5bb0b914209adc6765447e9d8ce6470da56dce..f01ce9e566cae1caf6c37fdf6e3789a4881d476b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/koi8-u.php
  * $Id$
  *
  * HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode koi8-u encoded strings
+ * @param string $string Encoded string
+ * @return string Decoded string
  */
 function charset_decode_koi8u ($string) {
     global $default_charset;
@@ -187,4 +195,4 @@ function charset_decode_koi8u ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index 8e1b4d7199432674b0b72fae19978452294d4c2a..53183175fff09f6f19334852c98bc872fff6ba47 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/tis620.php
  * $Id$
  *
  *  5. http://charts.unicode.org/Unicode.charts/normal/U0E00.html
  *  6. http://www.unicode.org/
  *
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode tis620 encoded strings
+ * @param string $string Encoded string
+ * @return string Decoded string
  */
 function charset_decode_tis620 ($string) {
     global $default_charset;
@@ -150,4 +158,4 @@ function charset_decode_tis620 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index b5baec647d32f2796a54fe836044136849a7e03d..72f2a160102b7d4c125e4df0fbe4bab0cd4ba01f 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * decode/utf-8.php
  * $Id$
  *
  *
  * decoding cycle is unfinished. please test and report problems to tokul@users.sourceforge.net
  * 
+ * @package squirrelmail
+ * @subpackage decode
+ */
+
+/**
+ * Decode utf-8 strings
+ * @param string $string Encoded string
+ * @return string Decoded string
  */
 function charset_decode_utf8 ($string) {
   global $default_charset;
@@ -42,4 +50,4 @@ function charset_decode_utf8 ($string) {
     return $string;
 }
 
-?>
\ No newline at end of file
+?>
index f035a2014e7a0a8b174865bba30974766280285c..0e5831ad38599afc7440ca464011ec82ef7f6a77 100644 (file)
@@ -10,6 +10,7 @@
  * about any other message you can think of.
  *
  * $Id$
+ * @package squirrelmail
  */
 
 /**
@@ -18,7 +19,7 @@
  * called "src", "functions", or "plugins", but people who do that need
  * to be beaten with a steel pipe anyway.
  *
- * @return  the base uri of squirrelmail installation.
+ * @return string the base uri of squirrelmail installation.
  */
 function sqm_baseuri(){
     global $base_uri, $PHP_SELF;
index f21e89f757f998ea252557295646f454fd67d075..b579bdd42f58cd84e7e9a5ec7402e0a36ed282eb 100644 (file)
@@ -9,9 +9,10 @@
  * This contains functions for manipulating user preferences in files
  *
  * $Id$
+ * @package squirrelmail
  */
 
-/* include this for error messages */
+/** include this for error messages */
 include_once(SM_PATH . 'functions/display_messages.php');
 
 /**
index 924904b9d6d9a373ee93bbf3f7729a8c392c2de2..fa74b24f80610bb26185b7673072570c00b74b11 100644 (file)
  *   $sm_language, I think
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Almost everything requires global.php... */
 require_once(SM_PATH . 'functions/global.php');
 
 global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded,
index d4e5c535d32fff7938efeae9b3c4bd1446cde00f..6344ddcb7282ef22f7d595fedb75ee368803d294 100644 (file)
  * php versions. 
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Bring in the config file. */
 require_once(SM_PATH . 'config/config.php');
 
-/* set the name of the session cookie */
+/** set the name of the session cookie */
 if(isset($session_name) && $session_name) {  
     ini_set('session.name' , $session_name);  
 } else {  
     ini_set('session.name' , 'SQMSESSID');  
 }
 
-/* If magic_quotes_runtime is on, SquirrelMail breaks in new and creative ways.
- * Force magic_quotes_runtime off.
- * tassium@squirrelmail.org - I put it here in the hopes that all SM code includes this.
- * If there's a better place, please let me know.
+/** If magic_quotes_runtime is on, SquirrelMail breaks in new and creative ways.
+ *  Force magic_quotes_runtime off.
+ *  tassium@squirrelmail.org - I put it here in the hopes that all SM code includes this.
+ *  If there's a better place, please let me know.
  */
 ini_set('magic_quotes_runtime','0');
 
index 3a6c4142e06f133885a064c6868adceab922e867..b82dc5eefd9ad3ddebfaea305037f383cb5bbed3 100644 (file)
  * html outputs.
  *
  * $Id$
+ * @package squirrelmail
  */
 
-    function html_tag( $tag,                // Tag to output
+/**
+ * Generate html tags
+ *
+ * @param string $tag Tag to output
+ * @param string $val Value between tags
+ * @param string $align Alignment (left, center, etc)
+ * @param string $bgcolor Back color in hexadecimal
+ * @param string $xtra Extra options
+ * @return string HTML ready for output
+ */
+function html_tag( $tag,                // Tag to output
                        $val = '',           // Value between tags
                        $align = '',         // Alignment
                        $bgcolor = '',       // Back color
index 03c485547bd16725786b427ab51df4303afc2f7e..3d99ed0690253bba2e694310d8c7161a30a71720 100644 (file)
  * encoded using Unicode entities according to HTML 4.0.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Everything uses global.php... */
 require_once(SM_PATH . 'functions/global.php');
 
-/* Decodes a string to the internal encoding from the given charset */
+/**
+ * Decodes a string to the internal encoding from the given charset
+ * 
+ * @param string $charset
+ * @param string $string Text to be decoded
+ * @return string Decoded text
+ */
 function charset_decode ($charset, $string) {
     global $languages, $squirrelmail_language, $default_charset;
     global $use_php_recode, $use_php_iconv, $agresive_decoding;
index 6cece7438d33d67c2683e9f41a57bb1e2ad5d1a7..4b22f542d667e94fde6140175c9b8de311a2832d 100644 (file)
@@ -9,9 +9,10 @@
  * This contains utility functions for dealing with multiple identities
  *
  * $Id$
- *
+ * @package squirrelmail
  */
 
+/** Used to simplify includes */
 if (!defined('SM_PATH')) {
     define('SM_PATH','../');
 }
@@ -21,6 +22,7 @@ include_once(SM_PATH . 'include/load_prefs.php');
 /**
 * Returns an array of all the identities.
 * Array is keyed: full_name, reply_to, email_address, index, signature
+* @return array full_name,reply_to,email_address,index,signature
 */
 function get_identities() {
 
index 3abe4a4875b5903001f2e1defe25430b747ce36e..b4a9bc93309a741bf375b448340ffab64f3f3b94 100644 (file)
  * They have been organized into these sections for simplicity sake.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Includes */
 require_once(SM_PATH . 'functions/imap_mailbox.php');
 require_once(SM_PATH . 'functions/imap_messages.php');
 require_once(SM_PATH . 'functions/imap_general.php');
index df6209ccadd79814971bf71115596b3304884754..f3dc5676533690801f0fde3ee4e1309ff2109bae 100644 (file)
@@ -7,15 +7,17 @@
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * IMAP asearch routines
- * Alex Lemaresquier - Brainstorm - alex at brainstorm.fr
+ * @author Alex Lemaresquier - Brainstorm - alex at brainstorm.fr
  * See README file for infos.
+ * @package squirrelmail
  *
  */
 
+/** This functionality requires the IMAP and date functions */
 require_once(SM_PATH . 'functions/imap_general.php');
 require_once(SM_PATH . 'functions/date.php');
 
-/* Set to TRUE to dump the imap dialogue */
+/** Set to TRUE to dump the imap dialogue */
 $imap_asearch_debug_dump = FALSE;
 
 $imap_asearch_opcodes = array(
@@ -372,4 +374,4 @@ function sqimap_asearch($imapConnection, $mailbox_array, $biop_array, $unop_arra
        return $mbox_msgs;
 }
 
-?>
\ No newline at end of file
+?>
index adad93496b55700c6622fa4682b70b3f65cb12f5..ddbb9fdd2b195fe6d45ed7982156f5e1035ec76e 100755 (executable)
@@ -9,8 +9,10 @@
  * This implements all functions that do general imap functions.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Includes.. */
 require_once(SM_PATH . 'functions/page_header.php');
 require_once(SM_PATH . 'functions/auth.php');
 
index 5d8a1a6af93d23dbe74d58a791b472340e14f383..929276ac1fc763d0bdb8748ce899f23cf6a9feeb 100755 (executable)
@@ -9,18 +9,24 @@
  * This impliments all functions that manipulate mailboxes
  *
  * $Id$
+ * @package squirrelmail
  */
+
+/** UTF7 support */
 require_once(SM_PATH . 'functions/imap_utf7_local.php');
 
 global $boxesnew;
 
-/*
-   FIXME. This class should be extracted and placed in a separate file that 
-   can be included before we start the session. That makes caching of the tree
-   possible. On a refresh mailboxes from left_main.php the only function that 
-   should be called is the sqimap_get_status_mbx_tree. In case of subscribe 
-   / rename / delete / new we have to create methods for adding/changing the 
-   mailbox in the mbx_tree without the need for a refresh.
+/**
+ * Mailboxes class
+ * 
+ * FIXME. This class should be extracted and placed in a separate file that 
+ * can be included before we start the session. That makes caching of the tree
+ * possible. On a refresh mailboxes from left_main.php the only function that 
+ * should be called is the sqimap_get_status_mbx_tree. In case of subscribe 
+ * / rename / delete / new we have to create methods for adding/changing the 
+ * mailbox in the mbx_tree without the need for a refresh.
+ * @package squirrelmail
 */
 
 class mailboxes {
index a01ca6152010062117bbe03faf110d5bd25b9d53..f3e1023c14eba918194944f2ddcef561cfb50365 100755 (executable)
@@ -7,14 +7,20 @@
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This implements functions that manipulate messages
+ * NOTE: Quite a few functions in this file are obsolete
  *
  * $Id$
+ * @package squirrelmail
  */
 
-/* NOTE: quite some functions in this file are not used anymore. */
-
-/* Copies specified messages to specified folder */
-/* obsolete */
+/**
+ * Copies specified messages to specified folder
+ * @param int $imap_stream The resource ID for the IMAP connection
+ * @param string $start Beginning of range to copy
+ * @param string $end End of the range to copy
+ * @param string $mailbox Which box to copy to
+ * @deprecated This function is obsolete and should not be used
+ */
 function sqimap_messages_copy ($imap_stream, $start, $end, $mailbox) {
     global $uid_support;
     $read = sqimap_run_command ($imap_stream, "COPY $start:$end " . sqimap_encode_mailbox_name($mailbox), true, $response, $message, $uid_support);
@@ -22,6 +28,10 @@ function sqimap_messages_copy ($imap_stream, $start, $end, $mailbox) {
 
 /**
 * copy a range of messages ($id) to another mailbox ($mailbox)
+* @param int $imap_stream The resource ID for the IMAP socket
+* @param string $id The list of messages to copy
+* @param string $mailbox The destination to copy to
+* @return void
 */
 function sqimap_msgs_list_copy ($imap_stream, $id, $mailbox) {
     global $uid_support;
@@ -31,6 +41,10 @@ function sqimap_msgs_list_copy ($imap_stream, $id, $mailbox) {
 
 /**
 * move a range of messages ($id) to another mailbox. Deletes the originals.
+* @param int $imap_stream The resource ID for the IMAP socket
+* @param string $id The list of messages to move
+* @param string $mailbox The destination to move to
+* @return void
 */
 function sqimap_msgs_list_move ($imap_stream, $id, $mailbox) {
     global $uid_support;
@@ -40,8 +54,15 @@ function sqimap_msgs_list_move ($imap_stream, $id, $mailbox) {
 }
 
 
-/* Deletes specified messages and moves them to trash if possible */
-/* obsolete */
+/**
+ * Deletes specified messages and moves them to trash if possible
+ * @deprecated This function is obsolete and should no longer be used
+ * @param int $imap_steam The resource ID for the IMAP connection
+ * @param string $start Start of range
+ * @param string $end End of range
+ * @param string $mailbox Mailbox messages are being deleted from
+ * @return void
+ */
 function sqimap_messages_delete ($imap_stream, $start, $end, $mailbox) {
     global $move_to_trash, $trash_folder, $auto_expunge, $uid_support;
 
@@ -61,7 +82,9 @@ function sqimap_msgs_list_delete ($imap_stream, $mailbox, $id, $bypass_trash=fal
 }
 
 
-/* Sets the specified messages with specified flag */
+/**
+ * Sets the specified messages with specified flag
+ */
 function sqimap_messages_flag ($imap_stream, $start, $end, $flag, $handle_errors) {
     global $uid_support;
     $read = sqimap_run_command ($imap_stream, "STORE $start:$end +FLAGS (\\$flag)", $handle_errors, $response, $message, $uid_support);
index 38832fc1be862cc1af0ec8fc60ea3d7ac8b743cb..5028a810c25d6565b3b3c23b4826edad7d27fd2d 100644 (file)
@@ -9,8 +9,12 @@
  * IMAP search routines
  *
  * $Id$
+ * @package squirrelmail
+ * @deprecated This search interface has been largely replaced by asearch
  */
 
+/**
+ * Load up a bunch of SM functions */
 require_once(SM_PATH . 'functions/imap.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'functions/mailbox_display.php');
index 3435f48f06c566b39558e1249d73f8465984bc09..9a15db9b21814e3c6e5f079e14ffebaa6a5ab6c5 100644 (file)
@@ -9,8 +9,16 @@
  * This implements all functions that do imap UTF7 conversions.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * @param string $str
+ * @param string $to_encoding
+ * @param string $from_encoding
+ * @param string $default_charset
+ * @return string
+ */
 function sqimap_mb_convert_encoding($str, $to_encoding, $from_encoding, $default_charset)
 {
   // Allows mbstring functions only with iso-8859-*, utf-8 and 
@@ -214,4 +222,4 @@ function decodeBASE64($s) {
        return $d;
 }
 
-?>
\ No newline at end of file
+?>
index 269f8987f434e5b7bfc7dfcd13a29ddaeee1663d..b8c59e84c415c8711f4f8f3b34b1ef57fa8815d3 100644 (file)
  * the person is logged or not.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Redirect back to the login page
+ * @ignore */
 header("Location:../index.php");
 
 /* pretty impressive huh? */
index aad15500edb990ca36078edc489672e2a3bf5ea8..aa15493bf412d7f4d48290510e4570cd0b9b7ce8 100644 (file)
  * table row that has sender, date, subject, etc...
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** The standard includes.. */
 require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/html.php');
 require_once(SM_PATH . 'class/html.class.php');
@@ -19,11 +21,14 @@ require_once(SM_PATH . 'functions/imap_mailbox.php');
 require_once(SM_PATH . 'functions/imap_messages.php');
 require_once(SM_PATH . 'functions/mime.php');
 
-/* Constants:
- *   PG_SEL_MAX:   default value for page_selector_max
+/**
+ * default value for page_selector_max
  */
 define('PG_SEL_MAX', 10);
 
+/**
+ * @param mixed $start UNDOCUMENTED
+ */
 function elapsed($start)
 {
    $end = microtime();
index 0d6ff0917851db96802e513d91c801978735234c..f642133ec7bde39cc671be78ff689cfef6746b68 100644 (file)
  * messages.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** The typical includes... */
 require_once(SM_PATH . 'functions/imap.php');
 require_once(SM_PATH . 'functions/attachment_common.php');
 
@@ -19,11 +21,13 @@ require_once(SM_PATH . 'functions/attachment_common.php');
 /* MIME DECODING                                                              */
 /* -------------------------------------------------------------------------- */
 
-/* This function gets the structure of a message and stores it in the "message" class.
+/**
+ * Get the MIME structure
+ * 
+ * This function gets the structure of a message and stores it in the "message" class.
  * It will return this object for use with all relevant header information and
  * fully parsed into the standard "message" object format.
  */
-
 function mime_structure ($bodystructure, $flags=array()) {
 
     /* Isolate the body structure and remove beginning and end parenthesis. */
@@ -1958,4 +1962,4 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX') {
      }
  }
 
-?>
\ No newline at end of file
+?>
index bdd5df1303642564a8f75d7909a9ddda7ce6eef0..b516e45d81b113ae2fe17ef4b83b754ad2edfccf 100644 (file)
@@ -9,6 +9,7 @@
  * Functions needed to display the options pages.
  *
  * $Id$
+ * @package squirrelmail
  */
 
 /**********************************************/
index bc63eced428808b71ddc765b81c0d652ed2e24f7..ef044bcb0317e4c01a4f08d71fdecd942713576a 100644 (file)
@@ -9,14 +9,18 @@
  * Prints the page header (duh)
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Include required files from SM */
 require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'functions/html.php');
 require_once(SM_PATH . 'functions/imap_mailbox.php');
 require_once(SM_PATH . 'functions/global.php');
 
-/* Always set up the language before calling these functions */
+/**
+ * Always set up the language before calling these functions
+ */
 function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
     global $squirrelmail_language;
 
index 9c70edd198771e86e23c05ca1fad37267f14b665..56315dc41d9cff76a791a4c8e5f0d01d0cc6105c 100644 (file)
  * Documentation on how to write plugins might show up some time.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Everything needs global.. */
 require_once(SM_PATH . 'functions/global.php');
 
 global $squirrelmail_plugin_hooks;
 $squirrelmail_plugin_hooks = array();
 
-/* This function adds a plugin. */
+/**
+ * This function adds a plugin.
+ * @param string $name Internal plugin name (ie. delete_move_next)
+ * @return void
+ */
 function use_plugin ($name) {
     if (file_exists(SM_PATH . "plugins/$name/setup.php")) {
         include_once(SM_PATH . "plugins/$name/setup.php");
@@ -29,7 +35,11 @@ function use_plugin ($name) {
     }
 }
 
-/* This function executes a hook. */
+/**
+ * This function executes a hook.
+ * @param string $name Name of hook to fire
+ * @return mixed $data
+ */
 function do_hook ($name) {
     global $squirrelmail_plugin_hooks;
     $data = func_get_args();
index 10ea919a3d78f2e76454382eb9e66ca8f959dff4..8521f39b01e043b3017cfd3836723f62d32db4f5 100644 (file)
@@ -9,8 +9,10 @@
  * This contains functions for manipulating user preferences
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Include global.php */
 require_once(SM_PATH . 'functions/global.php');
 
 sqgetGlobalVar('prefs_cache', $prefs_cache, SQ_SESSION );
index 9e137cab90a1ae271d4803faeb8dfe04cb127a3b..8f2cfa7c38a5ce0e270977998388a99ddc37754f 100644 (file)
@@ -10,6 +10,7 @@
  * used by the rest of the Squirrelmail code.
  *
  * $Id$
+ * @package squirrelmail
  */
 
 /**
index 8639292220e17d846c477fdc8518b20c6136ed24..c35bc0e2eaa5da0fc46ea5b28a9ad30e32c01033 100644 (file)
  * used by the rest of the Squirrelmail code.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/** Clearly, this needs the IMAP functions.. */
 require_once(SM_PATH . 'functions/imap.php');
 
 /**
- * findParentForChild
- *
  * Recursive function to find the correct parent for a new node
  */
 
index 20b1fdae39e54b761009d62e702588d4969daf8d..02181fbe972eddafc01b8587556775dbc2c22649 100644 (file)
  * used by the rest of the Squirrelmail code.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * Undocumented - complain, then patch.
+ */
 function replaceBlock (&$in, $replace, $start, $end) {
     $begin = substr($in,0,$start);
     $end   = substr($in,$end,strlen($in)-$end);