/* ---------------------- main -------------------------- */
-chdir('..');
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
*/
session_start();
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
require_once(SM_PATH . 'config/config.php');
require_once(SM_PATH . 'functions/strings.php');
*
* $Id$
*/
+define('SM_PATH','../../');
-require_once('calendar_data.php');
-require_once('functions.php');
-
-chdir('..');
-define('SM_PATH','../');
+/* Calender plugin required files. */
+require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
+require_once(SM_PATH . 'plugins/calendar/functions.php');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
* Displays the day page (day view).
*
* $Id$
- */
-require_once('calendar_data.php');
-require_once('functions.php');
+define('SM_PATH','../../');
-chdir('..');
-define('SM_PATH','../');
+/* Calender plugin required files. */
+require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
+require_once(SM_PATH . 'plugins/calendar/functions.php');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
*
* $Id$
*/
-
-require_once('calendar_data.php');
-require_once('functions.php');
-chdir('..');
define('SM_PATH','../');
+/* Calender plugin required files. */
+require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
+require_once(SM_PATH . 'plugins/calendar/functions.php');
+
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'functions/strings.php');
*
* $Id$
*/
-
-require_once('calendar_data.php');
-require_once('functions.php');
-chdir('..');
define('SM_PATH','../');
+/* Calender plugin required files. */
+require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
+require_once(SM_PATH . 'plugins/calendar/functions.php');
+
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'functions/strings.php');
*
* $Id$
*/
-
-require_once('calendar_data.php');
-require_once('functions.php');
-chdir('..');
define('SM_PATH','../');
+/* Calender plugin required files. */
+require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
+require_once(SM_PATH . 'plugins/calendar/functions.php');
+
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'functions/strings.php');
* Written by: Jason Munro
* jason@stdbev.com
*/
-chdir('..');
-define('SM_PATH','../');
+
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
* $Id$
*/
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
<?php
- /**
- ** mail_fetch/fetch.php
- **
- ** Copyright (c) 1999-2002 The SquirrelMail Project Team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Fetch code.
- **
- ** $Id$
- **/
+/**
+ * mail_fetch/fetch.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Fetch code.
+ *
+ * $Id$
+ */
- chdir('..');
- define('SM_PATH','../');
-
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'functions/page_header.php');
- require_once(SM_PATH . 'functions/imap.php');
- require_once(SM_PATH . 'include/load_prefs.php');
- require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php');
- require_once(SM_PATH . 'functions/i18n.php');
- require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
- require_once(SM_PATH . 'functions/html.php' );
+define('SM_PATH','../../');
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'include/load_prefs.php');
+require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php');
+require_once(SM_PATH . 'functions/i18n.php');
+require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
+require_once(SM_PATH . 'functions/html.php' );
function Mail_Fetch_Status($msg) {
echo html_tag( 'table',
<?php
- /**
- ** mail_fetch/options.php
- **
- ** Copyright (c) 1999-2002 The SquirrelMail Project Team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Setup of the mailfetch plugin.
- **
- ** $Id$
- **/
+/**
+ * mail_fetch/options.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Setup of the mailfetch plugin.
+ *
+ * $Id$
+ */
- chdir('..');
- define('SM_PATH','../');
+define('SM_PATH','../../');
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'functions/imap.php');
- require_once(SM_PATH . 'include/load_prefs.php');
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'include/load_prefs.php');
displayPageHeader( $color, 'None' );
<?php
/** Message Source
-*
-* Plugin to view the RFC822 raw message output and the bodystructure of a message
-*
-* Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
-* Licensed under the GNU GPL. For full terms see the file COPYING.
-*
-* $Id$
-**/
+ *
+ * Plugin to view the RFC822 raw message output and the bodystructure of a message
+ *
+ * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
<?php
/** Message Source
-*
-* Plugin to view the RFC822 raw message output and the bodystructure of a message
-*
-* Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
-* Licensed under the GNU GPL. For full terms see the file COPYING.
-*
-* $Id$
-**/
-/* Path for SquirrelMail required files. */
+ *
+ * Plugin to view the RFC822 raw message output and the bodystructure of a message
+ *
+ * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
-chdir('..');
-define('SM_PATH','../');
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
echo '<frame src="message_details_top.php?mailbox=' . urlencode($mailbox) .'&passed_id=' . "$passed_id". '" name="top_frame" scrolling="off">';
echo '<frame src="message_details_bottom.php?mailbox=' . urlencode($mailbox) .'&passed_id=' . "$passed_id" . '" name="bottom_frame">';
echo '</frameset>'."\n"."</html>\n";
-?>
\ No newline at end of file
+?>
<?php
+
/** Message Source
-*
-* Plugin to view the RFC822 raw message output and the bodystructure of a message
-*
-* Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
-* Licensed under the GNU GPL. For full terms see the file COPYING.
-*
-* $Id$
-**/
+ *
+ * Plugin to view the RFC822 raw message output and the bodystructure of a message
+ *
+ * Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * $Id$
+ */
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'functions/strings.php');
require_once(SM_PATH . 'config/config.php');
-
displayHtmlHeader( _("Message details"),
"<script language=\"javascript\">\n".
"<!--\n".
'</b>'.
'</body>'.
"</html>\n";
-?>
\ No newline at end of file
+?>
<?php
- /**
- ** newmail.php
- **
- ** Copyright (c) 1999-2002 The SquirrelMail Project Team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Displays all options relating to new mail sounds
- **
- ** $Id$
- **
- **/
- chdir('..');
- define('SM_PATH','../');
+/**
+ * newmail.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Displays all options relating to new mail sounds
+ *
+ * $Id$
+ */
- /* SquirrelMail required files. */
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'include/load_prefs.php');
- require_once(SM_PATH . 'functions/page_header.php');
+define('SM_PATH','../../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'include/load_prefs.php');
+require_once(SM_PATH . 'functions/page_header.php');
displayHtmlHeader( _("New Mail"), '', FALSE );
<?php
- /**
- ** newmails_opt.php
- **
- ** Copyright (c) 1999-2002 The SquirrelMail Project Team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Displays all options relating to new mail sounds
- **
- ** $Id$
- **
- **/
+/**
+ * newmails_opt.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Displays all options relating to new mail sounds
+ *
+ * $Id$
+ */
- chdir('..');
- define('SM_PATH','../');
+define('SM_PATH','../../');
- /* SquirrelMail required files. */
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'functions/page_header.php');
- require_once(SM_PATH . 'functions/display_messages.php');
- require_once(SM_PATH . 'functions/imap.php');
- require_once(SM_PATH . 'functions/array.php');
- require_once(SM_PATH . 'include/load_prefs.php');
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/display_messages.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/array.php');
+require_once(SM_PATH . 'include/load_prefs.php');
displayPageHeader($color, 'None');
* $Id$
*/
- chdir('../');
- define('SM_PATH','../');
+define('SM_PATH','../../');
- /* SquirrelMail required files. */
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'functions/html.php');
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/html.php');
- if (!isset($sound)) {
- $sound = "Click.wav";
- }
- $sound = str_replace('../plugins/newmail/', '', $sound);
- $sound = str_replace('../', '', $sound);
- $sound = str_replace("..\\", '', $sound);
+$sound = (!isset($sound) ? 'Click.wav' : $sound);
+$sound = str_replace('../plugins/newmail/', '', $sound);
+$sound = str_replace('../', '', $sound);
+$sound = str_replace("..\\", '', $sound);
displayHtmlHeader( _("Test Sound"), '', FALSE );
<?php
- chdir ('..');
- define('SM_PATH','../');
- require_once(SM_PATH . 'include/validate.php');
-
- displayPageHeader($color, "None");
-
- if (! isset($action))
- $action = '';
- if ($action == 'enable')
- setPref($data_dir, $username, 'spamcop_enabled', 1);
- elseif ($action == 'disable')
- setPref($data_dir, $username, 'spamcop_enabled', '');
- elseif ($action == 'save')
- setPref($data_dir, $username, 'spamcop_delete', '');
- elseif ($action == 'delete')
- setPref($data_dir, $username, 'spamcop_delete', 1);
- elseif ($action == 'meth' && isset($meth))
- setPref($data_dir, $username, 'spamcop_method', $meth);
- elseif ($action == 'save_id' && isset($ID))
- setPref($data_dir, $username, 'spamcop_id', $ID);
-
- global $spamcop_enabled, $spamcop_delete;
- spamcop_load();
-
- ?>
+
+define('SM_PATH','../../');
+require_once(SM_PATH . 'include/validate.php');
+
+displayPageHeader($color, "None");
+
+$action = (!isset($action) ? '' : $action);
+
+switch ($action) {
+ case 'enable':
+ setPref($data_dir, $username, 'spamcop_enabled', 1);
+ break;
+ case 'disable':
+ setPref($data_dir, $username, 'spamcop_enabled', '');
+ break;
+ case 'save':
+ setPref($data_dir, $username, 'spamcop_delete', '');
+ break;
+ case 'delete':
+ setPref($data_dir, $username, 'spamcop_delete', 1);
+ break;
+ case 'meth':
+ if (isset($meth)) {
+ setPref($data_dir, $username, 'spamcop_method', $meth);
+ }
+ break;
+ case 'save_id':
+ if (isset($ID)) {
+ setPref($data_dir, $username, 'spamcop_id', $ID);
+ }
+ break;
+}
+
+global $spamcop_enabled, $spamcop_delete;
+spamcop_load();
+
+?>
<br>
<table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>">
<center><b><?php echo _("Options") ?> - Message Filtering</b></center>
<?php
- chdir('..');
- chdir('..');
- define('SM_PATH','../');
+define('SM_PATH','../../');
- /* SquirrelMail required files. */
- require_once(SM_PATH . 'include/validate.php');
-
- include_once(SM_PATH . 'functions/imap.php');
+ /* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/imap.php');
displayPageHeader($color, $mailbox);
/**
* sqspell_interface.php
- * ----------------------
+ *
* Main wrapper for the pop-up.
*
* Copyright (c) 1999-2002 The SquirrelMail development team
* defaults. Don't change these, * the setuppable stuff is in
* sqspell_config.php
*/
-$SQSPELL_DIR='squirrelspell';
+$SQSPELL_DIR='plugins/squirrelspell/';
$SQSPELL_CRYPTO=FALSE;
/**
* Load the stuff needed from squirrelmail
*/
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'include/load_prefs.php');
-require_once("$SQSPELL_DIR/sqspell_config.php");
-require_once("$SQSPELL_DIR/sqspell_functions.php");
+require_once($SQSPELL_DIR . 'sqspell_config.php');
+require_once($SQSPELL_DIR . 'sqspell_functions.php');
/**
* $MOD is the name of the module to invoke.
* breaches.
*/
if (!isset($MOD) || !$MOD){
- $MOD='init';
+ $MOD='init';
} else {
- sqspell_ckMOD($MOD);
+ sqspell_ckMOD($MOD);
}
-/**
- * Include the module.
- */
-require_once("$SQSPELL_DIR/modules/$MOD.mod");
+/* Include the module. */
+require_once($SQSPELL_DIR . "modules/$MOD.mod");
+
?>
<?php
/**
* sqspell_options.php
- * --------------------
+ *
* Main wrapper for the options interface.
*
* Copyright (c) 1999-2002 The SquirrelMail development team
* Set a couple of constants and defaults. Don't change these,
* the configurable stuff is in sqspell_config.php
*/
-$SQSPELL_DIR='squirrelspell';
+$SQSPELL_DIR='plugins/squirrelspell/';
$SQSPELL_CRYPTO=FALSE;
/**
* Load some necessary stuff from squirrelmail.
*/
-chdir('..');
-define('SM_PATH','../');
+define('SM_PATH','../../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'include/load_prefs.php');
require_once(SM_PATH . 'functions/strings.php');
require_once(SM_PATH . 'functions/page_header.php');
-require_once("$SQSPELL_DIR/sqspell_config.php");
-require_once("$SQSPELL_DIR/sqspell_functions.php");
+require_once($SQSPELL_DIR . 'sqspell_config.php');
+require_once($SQSPELL_DIR . 'sqspell_functions.php');
/**
* $MOD is the name of the module to invoke.
sqspell_ckMOD($MOD);
}
-/**
- * Load the stuff already.
- */
-require_once("$SQSPELL_DIR/modules/$MOD.mod");
+/* Load the stuff already. */
+require_once($SQSPELL_DIR . "modules/$MOD.mod");
+
?>
<?php
- /**
- * options.php
- *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * Pick your translator to translate the body of incoming mail messages
- *
- * $Id$
- */
-
- /* Path for SquirrelMail required files. */
- chdir('..');
- define('SM_PATH','../');
-
- /* SquirrelMail required files. */
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'functions/strings.php');
- require_once(SM_PATH . 'functions/page_header.php');
- require_once(SM_PATH . 'functions/display_messages.php');
- require_once(SM_PATH . 'functions/imap.php');
- require_once(SM_PATH . 'functions/array.php');
- require_once(SM_PATH . 'functions/i18n.php');
- require_once(SM_PATH . 'include/load_prefs.php');
- displayPageHeader($color, 'None');
+
+/**
+ * options.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Pick your translator to translate the body of incoming mail messages
+ *
+ * $Id$
+ */
+
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/display_messages.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/array.php');
+require_once(SM_PATH . 'functions/i18n.php');
+require_once(SM_PATH . 'include/load_prefs.php');
+
+ displayPageHeader($color, 'None');
if (isset($submit_translate) && $submit_translate ) {
if (isset($translate_translate_server)) {