Added minimum GNU License
authorlbergman <lbergman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 5 Jul 2000 14:13:44 +0000 (14:13 +0000)
committerlbergman <lbergman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 5 Jul 2000 14:13:44 +0000 (14:13 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@592 7612ce4b-ef26-0410-bec9-ea0150e637f0

24 files changed:
src/addrbook_popup.php
src/addrbook_search.php
src/addrbook_search_html.php
src/addressbook.php
src/addressbook_csvimport.php
src/compose.php
src/delete_message.php
src/download.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/left_help.php
src/left_main.php
src/load_prefs.php
src/move_messages.php
src/msg_highlight.php
src/options.php
src/options_submit.php
src/read_body.php

index 27fb93b3f0cd9e5af7083599856648a5cf3b6124..f8248efe561c6ab68c12c7680be1063c0309a640 100644 (file)
@@ -2,6 +2,9 @@
    /**
     **  addrbook_popup.php
     **
+    **  Copyright (c) 1999-2000 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.
     **
     **/
index a4b74f4e281c60ba0d7d1e8319f70ce56aa88784..d89d118b5f4043f2c6d6b76dd571b0472a526a7f 100644 (file)
@@ -2,6 +2,9 @@
    /**
     **  addrbook_search.php
     **
+    **  Copyright (c) 1999-2000 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
index e07d8f9d9ddede4cfaae72921e61ce74adf1ba68..11a7416f47f4e305843a843ee3647663ccbe2845 100644 (file)
@@ -2,6 +2,8 @@
    /**
     **  addrbook_search.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 
     **
index c98549bfc26368def2189d93239cedbef1155927..685ea8365a84c0a1136562e10cbf6048482e0e9e 100644 (file)
@@ -2,6 +2,9 @@
    /**
     **  addressbook.php
     **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
     **  Manage personal address book.
     **
     **/
index 1b262d2ca200cc4ef4fbda85c3a8c08c12b472da..9899f361bd0bf25abaa59efc35660eae24d274d8 100644 (file)
@@ -1,30 +1,16 @@
 <?php
-/*
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU Library General Public License for more details.
- *
- *  You should have received a copy of the GNU Library General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-  /****************************************************************
-   **  
-   **  csvimport.php
-   **                  copyright 2000 Lewis Bergman - lbergman@abi.tconline.net
+  /**
+   **  addressbook_csvimport.php
+   **  
+   **  Copyright (c) 1999-2000 The SquirrelMail development team
+   **  Licensed under the GNU GPL. For full terms see the file COPYING.
    **                  
    **  Import csv files for address book
    **      This takes a comma delimited file uploaded from addressbook.php
    **      and allows the user to rearrange the field order to better
    **      fit the address book. A subset of data is manipulated to save time.
    **
-   ****************************************************************/
+   **/
 
 
    session_start();
index 9e894364cb1f4fb162e2a4d6590e3e1c41e17875..60ff75823fdbc2d61300d9c7af282239d278e4f7 100644 (file)
@@ -1,5 +1,11 @@
 <?php
-   /** This code sends a mail.
+   /** 
+    ** compose.php
+    **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    ** This code sends a mail.
     **
     ** There are 3 modes of operation:
     **  - Start new mail
index fdaefc5a93fc23739c3cb4213406b25b5b759991..5caa9f29a3e6e68fff6a19c43082b630401f63ec 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  delete_message.php
+    **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  Deletes a meesage from the IMAP server 
+    **  
+    **/
+
    session_start();
 
    if (!isset($config_php))
index fa61287cba4117134cdf4f59bddc47b4c99f332f..9d6d25e5a1835fcbed30de9439db584dd2a27bd7 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  download.php
+    **
+    **  Copyright (c) 1999-2000 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.
+    **/
+
    session_start();
 
    if (!isset($config_php))
index ecc1ef18a2e08cb7ea116a3054312b02e098fc2e..91d88d81b62852d35325717fa5ebc7f0eafd4564 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  empty_trash.php
+    **
+    **  Copyright (c) 1999-2000 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.
+    **/
+
    session_start();
 
    include("../config/config.php");
index cf385562d4305c36ed6747c64af758b1322cb556..89a17fa72cf30111121a5ce9b0a897cb8da72541 100644 (file)
@@ -1,4 +1,15 @@
 <?php
+   /**
+    **  folders.php
+    **
+    **  Copyright (c) 1999-2000 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.
+    **/
+
    session_start();
 
    if (!isset($config_php))
index 7b321d9400a6450994fe778b47f2f6e3396a1136..505e10a716d332956ae0001e6c5b48bb44e2d050 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  folders_create.php
+    **
+    **  Copyright (c) 1999-2000 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
+    **/
+
    session_start();
 
    if (!isset($config_php))
index 0a3eef3eed9a247291822b67520668beb3883a5f..d3a1ff307e2217f4d4c55a3bff82770fba2435a5 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  folders_delete.php
+    **
+    **  Copyright (c) 1999-2000 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
+    **/
+
    session_start();
 
    /*
index 52359c6cc7260c80730789370ec4d707b8fc5e7e..67de7ea50d2c386f2cff84b31811c9b5ae0d838f 100644 (file)
@@ -1,4 +1,51 @@
 <?php
+   /**
+    **  folders_rename_do.php
+    **
+    **  Copyright (c) 1999-2000 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
+    **/
+
+   session_start();
+
+   if (!isset($config_php))
+      include("../config/config.php");
+   if (!isset($strings_php))
+      include("../functions/strings.php");
+   if (!isset($page_header_php))
+      include("../functions/page_header.php");
+   if (!isset($imap_php))
+      include("../functions/imap.php");
+   if (!isset($display_messages_php))
+      include("../functions/display_messages.php");
+
+   include("../src/load_prefs.php");
+
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+   $dm = sqimap_get_delimiter($imapConnection);
+
+   if ($method == "sub") {
+      $mailbox = trim($mailbox);
+      sqimap_subscribe ($imapConnection, $mailbox);
+   } else {
+      sqimap_unsubscribe ($imapConnection, $mailbox);
+   }
+
+   displayPageHeader($color, "None");
+   echo "<BR><BR><BR><CENTER><B>";
+   if ($method == "sub") {
+      echo _("Subscribed Successfully!");
+      echo "</B><BR><BR>";
+      echo _("You have been successfully subscribed.");
+   } else {
+      echo _("Unsubscribed Successfully!");
+      echo "</B><BR><BR>";
+      echo _("You have been successfully unsubscribed.");
+   }
+   echo "<BR><A HREF=\"webmail.php?right_frame=folders.php\" TARGET=_top>";
    session_start();
 
    if (!isset($config_php))
index d574edae90f0bfd3e427ed9b837c5f4a77049276..58fad366c492cf2606ff5c4ff184ad9ac147c357 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  folders_rename_getname.php
+    **
+    **  Copyright (c) 1999-2000 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
+    **/
+
    session_start();
 
    if (!isset($config_php))
index a4141fda198180ac8dd00b60113163091946b282..ddaccc75c992f163a180a00972587dc191515876 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+   /**
+    **  folders_subscribe.php
+    **
+    **  Copyright (c) 1999-2000 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
+    **/
+
    session_start();
 
    if (!isset($config_php))
index 81ad490bcd82bb42b873d57e8a7bf6dbae73eb7a..15419ff5d601ba20aab065ae26d50cb2e52286fe 100644 (file)
@@ -3,13 +3,16 @@
 
 <?php
 
-/**
- ** help.php
- **
- ** This checks if the user's preferred language has a directory and file present
- ** then loads it or english if preferred is not found.
- **
- **/
+   /**
+    ** help.php
+    **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  This checks if the user's preferred language has a directory and file present
+    **  then loads it or english if preferred is not found.
+    **
+    **/
 
   if (!isset($config_php))
       include("../config/config.php");
index b457293218e034f3ff855aff2315df9b99eb1da3..24b2d43757769472ee56f6e5996495ee2354f243 100644 (file)
@@ -2,7 +2,10 @@
    /**
     **  left_help.php
     **
-    **  This is the code for the left bar.  The left bar normally shows the folders
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  This is the code for the left help bar.  The left bar normally shows the folders
     **  available, and has cookie information. This file is only used for the help system.
     **  To be used, webmail must be called with ?help.php.
     **
index 4f14b5e34c001842381464f9c1626b4ddeeef072..5ec8a4f3e4dabef9cf80c99e8db201ea11e53e5d 100644 (file)
@@ -1,6 +1,8 @@
 <?php
    /**
     **  left_main.php
+    **  Copyright (c) 1999-2000 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.
index b30859c9c270a9171a57e42d5bc67cf14f00914a..b2b2055ad13d8140cd674357620606e1647afc95 100644 (file)
@@ -1,4 +1,15 @@
 <?php
+   /**
+    **  load_prefs.php
+    **
+    **  Copyright (c) 1999-2000 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.
+    **
+    **/
+
    if (!isset($config_php))
       include("../config/config.php");
    if (!isset($prefs_php))
index b208e39e7312c8ca53f76b5392bd4745f0c0bb30..de17ca937dfc12b213684b0d2b7cdabeb0da1930 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+   /**
+    **  move_messages.php
+    **
+    **  Copyright (c) 1999-2000 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.
+    **/
+
    session_start();
 
    if (!isset($config_php))
index dc35e48517775b437bae681ccb13a9db2aaa18d1..6d2824bf1c6c823e118fe8af777039becb617601 100644 (file)
@@ -1,4 +1,16 @@
 <?php
+   /**
+    **  msg_highlight.php
+    **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  Called from the options page, this script presents the user with
+    **  the available choices and entry fields associated with the
+    **  highlighting option.
+    **/
+
+
    session_start();
 
    if (!isset($config_php))
index 83a6fd311f65dcf66a28aa3631b2d0219e980a20..a832181e6e2728cbdd11b1c118107bd9dc768d21 100644 (file)
@@ -1,4 +1,15 @@
 <?php
+   /**
+    **  options.php
+    **
+    **  Copyright (c) 1999-2000 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.
+    **
+    **/
+
    session_start();
 
    if (!isset($config_php))
index ea4276f1330b2336a81620b0ef97fc1b1c011aba..f61ce73053ab13f33927a18fe9b4a5d31d4c278f 100644 (file)
@@ -1,4 +1,15 @@
 <?php
+   /**
+    **  options_submit.php
+    **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  This script saves all the options to the proper file when the 
+    **  submit button is pressed. Also displays conformation message.
+    **/
+
+
    session_start();
 
    if (!isset($config_php))
index 5b984338c5214a2c0ec9ed58ef54d97af38e2ef4..cc06a47888fed68166ccf61615b05f1a95d0e40a 100644 (file)
@@ -1,4 +1,19 @@
 <?php
+  /**
+   ** read_body.php
+   **
+   **  Copyright (c) 1999-2000 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.
+   **/
+
+
+
+
+
+
    session_start();
 
    if (!isset($config_php))