Browse Source

Added minimum GNU License

lbergman 25 years ago
parent
commit
23fb10fe55

+ 3 - 0
src/addrbook_popup.php

@@ -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.
     **
     **/

+ 3 - 0
src/addrbook_search.php

@@ -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

+ 2 - 0
src/addrbook_search_html.php

@@ -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 
     **

+ 3 - 0
src/addressbook.php

@@ -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.
     **
     **/

+ 6 - 20
src/addressbook_csvimport.php

@@ -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();

+ 7 - 1
src/compose.php

@@ -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

+ 10 - 0
src/delete_message.php

@@ -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))

+ 10 - 0
src/download.php

@@ -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))

+ 10 - 0
src/empty_trash.php

@@ -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");

+ 11 - 0
src/folders.php

@@ -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))

+ 10 - 0
src/folders_create.php

@@ -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))

+ 10 - 0
src/folders_delete.php

@@ -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();
 
    /*

+ 47 - 0
src/folders_rename_do.php

@@ -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))

+ 10 - 0
src/folders_rename_getname.php

@@ -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))

+ 10 - 0
src/folders_subscribe.php

@@ -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))

+ 10 - 7
src/help.php

@@ -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");

+ 4 - 1
src/left_help.php

@@ -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.
     **

+ 2 - 0
src/left_main.php

@@ -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.

+ 11 - 0
src/load_prefs.php

@@ -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))

+ 9 - 0
src/move_messages.php

@@ -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))

+ 12 - 0
src/msg_highlight.php

@@ -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))

+ 11 - 0
src/options.php

@@ -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))

+ 11 - 0
src/options_submit.php

@@ -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))

+ 15 - 0
src/read_body.php

@@ -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))