* message.
*
* $Id$
+ * @package plugins
+ * @subpackage abook_take
*/
+/**
+ * If SM_PATH isn't defined, define it. Required to include files.
+ * @ignore
+ */
if (!defined('SM_PATH')) {
define('SM_PATH','../../');
}
/* SquirrelMail required files. */
require_once(SM_PATH . 'functions/url_parser.php');
+/**
+ * Initialize the plugin
+ */
function squirrelmail_plugin_init_abook_take()
{
global $squirrelmail_plugin_hooks;
* the To, Cc, From and Reply-To headers.
*
* $Id$
+ * @package plugins
+ * @subpackage abook_take
*/
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
<?php
-/*
+/**
* This function tell other modules what users have access
* to the plugin.
*
* Philippe Mingo
*
* $Id$
+ * @package plugins
+ * @subpackage administrator
*/
+/**
+*
+*/
function adm_check_user() {
global $PHP_SELF;
require_once(SM_PATH . 'functions/global.php');
* Philippe Mingo
*
* $Id$
+ * @package plugins
+ * @subpackage administrator
*/
+/** */
require_once( SM_PATH . 'functions/constants.php' );
/* Define constants for the various option types. */
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage administrator
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
* Philippe Mingo
*
* $Id$
+ * @package plugins
+ * @subpackage administrator
*/
+/**
+ * parse the config file
+ */
function parseConfig( $cfg_file ) {
global $newcfg;
/* ---------------------- main -------------------------- */
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Administrator plugin. Allows remote administration. Philippe Mingo
*
* $Id$
+ * @package plugins
+ * @subpackage administrator
*/
+/** @ignore */
require_once(SM_PATH . 'plugins/administrator/auth.php');
function squirrelmail_plugin_init_administrator() {
* This is a standard Squirrelmail-1.2 API for plugins.
*
* $Id$
+ * @package plugins
+ * @subpackage bug_report
*/
+/**
+ * @ignore
+ */
define('SM_PATH','../../');
require_once(SM_PATH . 'include/validate.php');
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage bug_report
**/
header("Location:../../src/login.php\n\n");
* This is a standard Squirrelmail-1.2 API for plugins.
*
* $Id$
+ * @package plugins
+ * @subpackage bug_report
*/
/* This button fills out a form with your setup information already
gathered -- all you have to do is type. */
-/* Initialize the bug report plugin */
+/**
+ * Initialize the bug report plugin
+ * @return void
+ */
function squirrelmail_plugin_init_bug_report() {
global $squirrelmail_plugin_hooks;
* Displays the main calendar page (month view).
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
+
+/**
+*/
define('SM_PATH','../../');
/* Calender plugin required files. */
* functions to operate on calendar data files.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
-// this is array that contains all events
-// it is three dimensional array with fallowing structure
-// $calendardata[date][time] = array(length,priority,title,message);
+/** this is array that contains all events
+ * it is three dimensional array with fallowing structure
+ * $calendardata[date][time] = array(length,priority,title,message); */
$calendardata = array();
-//read events into array
-//data is | delimited, just like addresbook
-//files are structured like this:
-//date|time|length|priority|title|message);
-//files are divide by year for performance increase
+/**
+ * read events into array
+ *
+ * data is | delimited, just like addressbook
+ * files are structured like this:
+ * date|time|length|priority|title|message
+ * files are divided by year for performance increase */
function readcalendardata() {
global $calendardata, $username, $data_dir, $year;
* Displays the day page (day view).
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
+/** @ignore */
define('SM_PATH','../../');
/* Calender plugin required files. */
* functions to create a event for calendar.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
+ */
+
+/**
+ * @ignore
*/
define('SM_PATH','../../');
* Functions to delete a event.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
+ */
+
+/**
+ * @ignore
*/
define('SM_PATH','../../');
* Functions to edit an event.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
+
+/** @ignore */
define('SM_PATH','../../');
/* Calender plugin required files. */
* miscelenous functions.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
-
+/**
+ * @return void
+ */
function calendar_header() {
//Add Second layer ofCalendar links to upper menu
global $color,$year,$day,$month;
* Redirects to the login page.
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
header("Location:../../src/login.php\n\n");
* init plugin into squirrelmail
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
+/**
+ * Initialize the plugin
+ * @return void
+ */
function squirrelmail_plugin_init_calendar() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar';
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage delete_move_next
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage delete_move_next
*/
+/**
+ * Initialize the plugin
+ * @return void
+ */
function squirrelmail_plugin_init_delete_move_next() {
global $squirrelmail_plugin_hooks;
* Also view plugins/README.plugins for more information.
*
* $Id$
+ * @package plugins
+ * @subpackage filters
*/
+/**
+*
+*/
function filters_SaveCache () {
global $data_dir, $SpamFilters_DNScache;
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage filters
**/
header("Location:../../src/login.php\n\n");
* Also view plugins/README.plugins for more information.
*
* $Id$
+ * @package plugins
+ * @subpackage filters
*/
-/* Path for SquirrelMail required files. */
+/** Path for SquirrelMail required files. */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Also view plugins/README.plugins for more information.
*
* $Id$
+ * @package plugins
+ * @subpackage filters
*/
-/* SquirrelMail required files. */
+/** SquirrelMail required files. */
require_once(SM_PATH . 'plugins/filters/filters.php');
/*
* Also view plugins/README.plugins for more information.
*
* $Id$
+ * @package plugins
+ * @subpackage filters
*/
-/* Path for SquirrelMail required files. */
+/** Path for SquirrelMail required files. */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* fortune above the message listing.
*
* $Id$
+ * @package plugins
+ * @subpackage fortune
*/
+/**
+*
+*/
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
* the person is logged or not.
*
* $Id$
+ * @package plugins
*/
header("Location:../index.php");
<?PHP
-/* functions for info plugin
+/**
+ * functions for info plugin
* Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* by: Jason Munro jason@stdbev.com
*
* $Id$
- *
+ * @package plugins
+ * @subpackage info
*/
+/**
+ * Get the IMAP capabilities
+ * @return array
+ */
function get_caps($imap_stream) {
return sqimap_run_command_list($imap_stream, 'CAPABILITY',false, $responses, $message,false);
}
+/**
+ * Run an IMAP test and return the results
+ * @return array Response from the IMAP server
+ */
function imap_test($imap_stream, $string) {
global $default_charset;
print "<TR><TD>".$string."</TD></TR>";
return $response;
}
+/**
+ * Print the IMAP response to options.php
+ */
function print_response($response) {
foreach($response as $index=>$value) {
if (is_array($value)) {
<?PHP
-/* options page for IMAP info plugin
+/**
+ * options page for IMAP info plugin
* Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* jason@stdbev.com
*
* $Id$
- *
+ * @package plugins
+ * @subpackage info
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
<?php
-/* setup file for the IMAP server info plugin
+/** setup file for the IMAP server info plugin
* Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* by: Jason Munro jason@stdbev.com
*
* $Id$
- *
+ * @package plugins
+ * @subpackage info
*/
+/** @ignore */
require_once (SM_PATH . 'plugins/info/functions.php');
function squirrelmail_plugin_init_info() {
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage listcommands
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage listcommands
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* commands such as (un)subscribe, help and list archives.
*
* $Id$
+ * @package plugins
+ * @subpackage listcommands
*/
+/**
+ * Initialize the listcommands plugin
+ */
function squirrelmail_plugin_init_listcommands () {
global $squirrelmail_plugin_hooks;
* pop3 class
*
* $Id$
+ * @package plugins
+ * @subpackage mail_fetch
*/
+/**
+ * This is the pop3 class - DOCUMENT ME
+ */
class POP3 {
var $ERROR = ''; // Error string.
* Fetch code.
*
* $Id$
+ * @package plugins
+ * @subpackage mail_fetch
*/
+/** @ignore */
define('SM_PATH','../../');
require_once(SM_PATH . 'include/validate.php');
** Adapted for MailFetch by Philippe Mingo <mingo@rotedic.com>
**
** $Id$
+ * @package plugins
+ * @subpackage mail_fetch
**/
+ /**
+ * hex2bin - document me
+ */
function hex2bin( $data ) {
/* Original code by josh@superfork.com */
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage mail_fetch
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
* Setup of the mailfetch plugin.
*
* $Id$
+ * @package plugins
+ * @subpackage mail_fetch
*/
+/** @ignore */
define('SM_PATH','../../');
require_once(SM_PATH . 'include/validate.php');
** Setup of the mailfetch plugin.
**
** $Id$
+ * @package plugins
+ * @subpackage mail_fetch
**/
-
+
+ /** */
require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
+ /**
+ * Initialize the plugin
+ */
function squirrelmail_plugin_init_mail_fetch() {
global $squirrelmail_plugin_hooks;
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage message_details
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage message_details
*/
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage message_details
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+* @package plugins
+* @subpackage message_details
**/
-
+/**
+ * Initialize the plugin
+ */
function squirrelmail_plugin_init_message_details()
{
global $squirrelmail_plugin_hooks;
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage newmail
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
*
* Displays all options relating to new mail sounds
*
- * $Id$
+ * $Id$
+ * @package plugins
+ * @subpackage newmail
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Displays all options relating to new mail sounds
*
* $Id$
+ * @package plugins
+ * @subpackage newmail
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* too (with a plugin).
*
* $Id$
+ * @package plugins
+ * @subpackage newmail
+ */
+
+ /**
*/
include_once(SM_PATH . 'functions/display_messages.php');
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage newmail
*/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage sent_subfolders
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
* This is a standard Squirrelmail-1.2 API for plugins.
*
* $Id$
+ * @package plugins
+ * @subpackage sent_subfolders
*/
+/**
+ *
+ */
define('SMPREF_SENT_SUBFOLDERS_DISABLED', 0);
define('SMPREF_SENT_SUBFOLDERS_YEARLY', 1);
define('SMPREF_SENT_SUBFOLDERS_QUARTERLY', 2);
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage spamcop
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
** Licensed under the GNU GPL. For full terms see the file COPYING.
**
** $Id$
+ * @package plugins
+ * @subpackage spamcop
**/
+/** @ignore */
define('SM_PATH','../../');
require_once(SM_PATH . 'include/validate.php');
** Copyright (c) 1999-2003 The SquirrelMail development team
** Licensed under the GNU GPL. For full terms see the file COPYING.
**
- ** $Id$
+ ** $Id$
+ * @package plugins
+ * @subpackage spamcop
**/
+/** @ignore */
require_once(SM_PATH . 'functions/global.php');
-/* Initialize the plugin */
+/** Initialize the plugin */
function squirrelmail_plugin_init_spamcop() {
global $squirrelmail_plugin_hooks, $data_dir, $username,
$spamcop_is_composing;
** Copyright (c) 1999-2003 The SquirrelMail development team
** Licensed under the GNU GPL. For full terms see the file COPYING.
**
- ** $Id$
+ ** $Id$
+ * @package plugins
+ * @subpackage spamcop
**/
+/** @ignore */
define('SM_PATH','../../');
/* SquirrelMail required files. */
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage squirrelspell
**/
header("Location:../../../src/login.php\n\n");
* the person is logged or not.
*
* $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
header("Location: ../../index.php");
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage squirrelspell
**/
header("Location:../../../src/login.php\n\n");
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage squirrelspell
**/
header("Location:../../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
*
* @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
* @version $Date$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
*
*
* $Id$
+ * @package plugins
+ * @subpackage squirrelspell
*/
+/** */
require_once(SM_PATH . 'functions/prefs.php');
/* Just for poor wretched souls with E_ALL. :) */
*
* @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
* @version $Date$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
*
* @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
* @version $Date$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
/**
* Load the stuff needed from squirrelmail
+ * @ignore
*/
-
define('SM_PATH','../../');
/* SquirrelMail required files. */
*
* @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
* @version $Date$
+ * @package plugins
+ * @subpackage squirrelspell
*/
/**
/**
* Load some necessary stuff from squirrelmail.
+ * @ignore
*/
define('SM_PATH','../../');
** Redirects to the login page.
**
** $Id$
+ * @package plugins
+ * @subpackage translate
**/
header("Location:../../src/login.php\n\n");
exit();
-?>
\ No newline at end of file
+?>
* Pick your translator to translate the body of incoming mail messages
*
* $Id$
+ * @package plugins
+ * @subpackage translate
*/
-/* Path for SquirrelMail required files. */
+/**
+ * Path for SquirrelMail required files.
+ * @ignore
+ */
define('SM_PATH','../../');
/* SquirrelMail required files. */
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* $Id$
+ * @package plugins
+ * @subpackage translate
*/
/* Easy plugin that sends the body of the message to a new browser
*/
-/* Initialize the translation plugin */
+/**
+ * Initialize the translation plugin
+ * @return void
+ */
function squirrelmail_plugin_init_translate() {
global $squirrelmail_plugin_hooks;