Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/fortune setup.php,1.18,1.19

Update of /cvsroot/squirrelmail/squirrelmail/plugins/fortune
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/fortune

Modified Files:
	setup.php 
Log Message:
Centralized init

Index: setup.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/fortune/setup.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -w -r1.18 -r1.19
--- setup.php	23 Jan 2006 18:42:22 -0000	1.18
+++ setup.php	5 Apr 2006 00:22:06 -0000	1.19
 <at>  <at>  -11,14 +11,6  <at>  <at> 
  */

 /**
- * If SM_PATH isn't defined, define it.
- *  <at> ignore
- */
-if (!defined('SM_PATH'))  {
-    define('SM_PATH','../../');
-}
-
-/**
  * Init plugin
  *  <at> access private
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/spamcop options.php,1.37,1.38 spamcop.php,1.38,1.39

Update of /cvsroot/squirrelmail/squirrelmail/plugins/spamcop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/spamcop

Modified Files:
	options.php spamcop.php 
Log Message:
Centralized init

Index: options.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/spamcop/options.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -w -r1.37 -r1.38
--- options.php	5 Feb 2006 11:18:50 -0000	1.37
+++ options.php	5 Apr 2006 00:22:10 -0000	1.38
 <at>  <at>  -10,10 +10,11  <at>  <at> 
  *  <at> subpackage spamcop
  */

-/**  <at> ignore */
-define('SM_PATH','../../');
-/* SquirrelMail functions */
-require_once(SM_PATH . 'include/validate.php');
+
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
 /* plugin functions */
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/administrator auth.php,1.24,1.25 defines.php,1.69,1.70

Update of /cvsroot/squirrelmail/squirrelmail/plugins/administrator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/administrator

Modified Files:
	auth.php defines.php 
Log Message:
Centralized init

Index: auth.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/administrator/auth.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -r1.24 -r1.25
--- auth.php	23 Jan 2006 18:41:26 -0000	1.24
+++ auth.php	5 Apr 2006 00:22:02 -0000	1.25
 <at>  <at>  -21,7 +21,6  <at>  <at> 
  */
 function adm_check_user() {
     global $PHP_SELF, $plugins;
-    require_once(SM_PATH . 'functions/global.php');

     /* fail if the plugin is not enabled */
     if ( !in_array('administrator', $plugins) ) {

Index: defines.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/administrator/defines.php,v
retrieving revision 1.69
retrieving revision 1.70
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/abook_take functions.php,1.12,1.13 setup.php,1.17,1.18 take.php,1.20,1.21

Update of /cvsroot/squirrelmail/squirrelmail/plugins/abook_take
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/abook_take

Modified Files:
	functions.php setup.php take.php 
Log Message:
Centralized init

Index: functions.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/abook_take/functions.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -r1.12 -r1.13
--- functions.php	5 Feb 2006 11:18:50 -0000	1.12
+++ functions.php	5 Apr 2006 00:22:02 -0000	1.13
 <at>  <at>  -12,10 +12,6  <at>  <at> 
  *  <at> subpackage abook_take
  */

-/** SquirrelMail required files. */
-require_once(SM_PATH . 'functions/url_parser.php');
-require_once(SM_PATH . 'functions/forms.php');
-
 function valid_email ($email, $verify)
 {
     global $Email_RegExp_Match;

Index: setup.php
===================================================================
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/functions abook_database.php,1.38,1.39 addressbook.php,1.85,1.86 attachment_common.php,1.41,1.42 auth.php,1.53,1.54 date.php,1.67,1.68 db_prefs.php,1.46,1.47 display_messages.php,1.92,1.93 file_prefs.php,1.43,1.44 folder_manip.php,1.7,1.8 gettext.php,1.29,1.30 global.php,1.64,1.65 html.php,1.27,1.28 identity.php,1.17,1.18 imap.php,1.55,1.56 imap_asearch.php,1.47,1.48 imap_general.php,1.230,1.231 imap_mailbox.php,1.271,1.272 mailbox_display.php,1.461,1.462 mime.php,1.367,1.368 page_header.php,1.209,1.210 plugin.php,1.49,1.50 prefs.php,1.83,1.84 strings.php,1.243,1.244 tree.php,1.42,1.43

Update of /cvsroot/squirrelmail/squirrelmail/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/functions

Modified Files:
	abook_database.php addressbook.php attachment_common.php 
	auth.php date.php db_prefs.php display_messages.php 
	file_prefs.php folder_manip.php gettext.php global.php 
	html.php identity.php imap.php imap_asearch.php 
	imap_general.php imap_mailbox.php mailbox_display.php mime.php 
	page_header.php plugin.php prefs.php strings.php tree.php 
Log Message:
Centralized init

Index: abook_database.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/functions/abook_database.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -w -r1.38 -r1.39
--- abook_database.php	23 Jan 2006 18:39:32 -0000	1.38
+++ abook_database.php	5 Apr 2006 00:22:01 -0000	1.39
 <at>  <at>  -13,7 +13,6  <at>  <at> 
 /** Needs the DB functions */
 if (!include_once('DB.php')) {
     // same error also in db_prefs.php
-    require_once(SM_PATH . 'functions/display_messages.php');
     $error  = _("Could not include PEAR database functions required for the database backend.") . "<br />\n";
     $error .= sprintf(_("Is PEAR installed, and is the include path set correctly to find %s?"),
                         '<tt>DB.php</tt>') . "<br />\n";

(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/include/options display.php,1.59,1.60 folder.php,1.24,1.25

Update of /cvsroot/squirrelmail/squirrelmail/include/options
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/include/options

Modified Files:
	display.php folder.php 
Log Message:
Centralized init

Index: display.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/include/options/display.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -w -r1.59 -r1.60
--- display.php	12 Mar 2006 14:38:37 -0000	1.59
+++ display.php	5 Apr 2006 00:22:00 -0000	1.60
 <at>  <at>  -247,6 +247,7  <at>  <at> 
         }
     }

+
     /*** Load the General Options into the array ***/
     $optgrps[SMOPT_GRP_MAILBOX] = _("Mailbox Display Options");
     $optvals[SMOPT_GRP_MAILBOX] = array();

Index: folder.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/include/options/folder.php,v
retrieving revision 1.24
retrieving revision 1.25
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/mail_fetch README,1.7,1.8 fetch.php,1.50,1.51 functions.php,1.17,1.18 options.php,1.40,1.41 setup.php,1.31,1.32

Update of /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/mail_fetch

Modified Files:
	README fetch.php functions.php options.php setup.php 
Log Message:
Centralized init

Index: README
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch/README,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -r1.7 -r1.8
--- README	26 Feb 2006 10:52:34 -0000	1.7
+++ README	5 Apr 2006 00:22:09 -0000	1.8
 <at>  <at>  -91,7 +91,7  <at>  <at> 
 Some plugin settings can be adjusted in config/mail_fetch_config.php or
 plugins/mail_fetch/config.php files. 

-See plugins/mail_fetch/config_default.php
+See plugins/mail_fetch/config_sample.php

 
 Note for mod_gzip users

Index: fetch.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch/fetch.php,v
retrieving revision 1.50
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/translate functions.php,1.15,1.16 options.php,1.39,1.40 setup.php,1.28,1.29

Update of /cvsroot/squirrelmail/squirrelmail/plugins/translate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/translate

Modified Files:
	functions.php options.php setup.php 
Log Message:
Centralized init

Index: functions.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/translate/functions.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -r1.15 -r1.16
--- functions.php	19 Mar 2006 10:51:37 -0000	1.15
+++ functions.php	5 Apr 2006 00:22:11 -0000	1.16
 <at>  <at>  -11,13 +11,13  <at>  <at> 
  */

 /**
- * Define for wrecked souls accessing functions script directly
- *  <at> ignore
+ * do not allow to call this file directly
  */
-if (!defined('SM_PATH'))  {
-    define('SM_PATH','../../');
+if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) ||
+     (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) {
+    header("Location: ../../src/login.php");
+    die();
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/squirrelspell setup.php,1.26,1.27 sqspell_config.php,1.23,1.24 sqspell_functions.php,1.33,1.34 sqspell_interface.php,1.24,1.25 sqspell_options.php,1.25,1.26

Update of /cvsroot/squirrelmail/squirrelmail/plugins/squirrelspell
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/squirrelspell

Modified Files:
	setup.php sqspell_config.php sqspell_functions.php 
	sqspell_interface.php sqspell_options.php 
Log Message:
Centralized init

Index: setup.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/squirrelspell/setup.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -w -r1.26 -r1.27
--- setup.php	23 Jan 2006 18:43:27 -0000	1.26
+++ setup.php	5 Apr 2006 00:22:10 -0000	1.27
 <at>  <at>  -14,8 +14,6  <at>  <at> 
  *  <at> todo remove sqspell_ prefix from main php scripts.
  */

-/**  <at> ignore */
-if (! defined('SM_PATH')) define('SM_PATH','../../');

 /**
  * Standard SquirrelMail plugin initialization API.

Index: sqspell_config.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/squirrelspell/sqspell_config.php,v
(Continue reading)

Marc Groot Koerkamp | 5 Apr 2006 02:22
Picon

CVS: squirrelmail/plugins/change_password/backend ldap.php,1.11,1.12 merak.php,1.8,1.9 peardb.php,1.3,1.4 poppassd.php,1.8,1.9 template.php,1.7,1.8 vmailmgrd.php,1.9,1.10

Update of /cvsroot/squirrelmail/squirrelmail/plugins/change_password/backend
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15615/plugins/change_password/backend

Modified Files:
	ldap.php merak.php peardb.php poppassd.php template.php 
	vmailmgrd.php 
Log Message:
Centralized init

Index: ldap.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/change_password/backend/ldap.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -r1.11 -r1.12
--- ldap.php	23 Jan 2006 18:42:22 -0000	1.11
+++ ldap.php	5 Apr 2006 00:22:05 -0000	1.12
 <at>  <at>  -11,17 +11,18  <at>  <at> 
  */

 /**
- * If SM_PATH isn't defined, define it.  Required to include files.
- *  <at> ignore
+ * do not allow to call this file directly
  */
-if (!defined('SM_PATH')) define('SM_PATH','../../../');
+if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) ||
+     (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) {
+    header("Location: ../../../src/login.php");
+    die();
(Continue reading)


Gmane