If you try to upgrade to the latest and greatest, you will find that a
couple things break the shared calendar plugin; all of which are inclusion
related. The things are:

1) The new tendancy to use SM_PATH
2) src/validate.php is now in include/validate.php
3) src/load_prefs.php is now in include/validate.php

There are obviously alot of ways to fix this simple problem...the way I
did it has its benefits...mainly it seemed like the least change to the
original intent of the calendar, and it seems to reflect new trends. At
any rate, here are the diffs, so you may patch if you please. Other than
that, I have two notes:

1) 1.4 RC 2a, Rocks...Works perfect for me...in a production environment
2) I still want my Squirrel-Mail T-Shirt

# cd some_dir/plugins/calendar
# for i in *.php; do
    echo;
    echo -n "Changes to ";
    echo $i;
    echo;
    diff ../../../html.old/plugins/calendar/$i $i;
  done;

Changes to admin_options.php

9,12c9,13
< require_once('shared_functions.php');
< chdir ('..');
< require_once('../src/validate.php');
< require_once('../functions/page_header.php');
---
> define('SM_PATH','../../');
>
> require_once(SM_PATH . 'plugins/calendar/shared_functions.php');
> include_once(SM_PATH . 'include/validate.php');
> include_once(SM_PATH . 'functions/page_header.php');

Changes to calendar.php

14,23c14,24
< require_once('calendar_data.php');
< require_once('functions.php');
< require_once('shared_functions.php');
< chdir('..');
< require_once('../src/validate.php');
< require_once('../functions/strings.php');
< require_once('../functions/date.php');
< require_once('../config/config.php');
< require_once('../functions/page_header.php');
< require_once('../src/load_prefs.php');
---
> define('SM_PATH','../../');
>
> require_once(SM_PATH . '/plugins/calendar/calendar_data.php');
> require_once(SM_PATH . '/plugins/calendar/functions.php');
> require_once(SM_PATH . '/plugins/calendar/shared_functions.php');
> require_once(SM_PATH . 'include/validate.php');
> require_once(SM_PATH . 'functions/strings.php');
> require_once(SM_PATH . 'functions/date.php');
> require_once(SM_PATH . 'config/config.php');
> require_once(SM_PATH . 'functions/page_header.php');
> require_once(SM_PATH . 'include/load_prefs.php');

Changes to calendar_check.php

3,11c3
<  include_once ("calendar_data.php");
<  include_once ("functions.php");
<  include_once ("shared_functions.php");
<  chdir("..");
<  include_once ("../src/validate.php");
<  include_once('../functions/strings.php');
<  include_once('../config/config.php');
<  include_once('../functions/page_header.php');
<  include_once('../src/load_prefs.php');
---
> define('SM_PATH','../../');
12a5,12
> include_once(SM_PATH . 'plugins/calendar/calendar_data.php');
> include_once(SM_PATH . 'plugins/calendar/functions.php');
> include_once(SM_PATH . 'plugins/calendar/shared_functions.php');
> include_once(SM_PATH . 'include/validate.php');
> include_once(SM_PATH . 'functions/strings.php');
> include_once(SM_PATH . 'config/config.php');
> include_once(SM_PATH . 'functions/page_header.php');
> include_once(SM_PATH . 'include/load_prefs.php');

Changes to calendar_data.php


Changes to day.php

12,21c12,22
< require_once('calendar_data.php');
< require_once('functions.php');
< require_once('shared_functions.php');
< chdir('..');
< require_once('../src/validate.php');
< require_once('../functions/strings.php');
< require_once('../functions/date.php');
< require_once('../config/config.php');
< require_once('../functions/page_header.php');
< require_once('../src/load_prefs.php');
---
> define('SM_PATH','../../');
>
> require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
> require_once(SM_PATH . 'plugins/calendar/functions.php');
> require_once(SM_PATH . 'plugins/calendar/shared_functions.php');
> require_once(SM_PATH . 'include/validate.php');
> require_once(SM_PATH . 'functions/strings.php');
> require_once(SM_PATH . 'functions/date.php');
> require_once(SM_PATH . 'config/config.php');
> require_once(SM_PATH . 'functions/page_header.php');
> require_once(SM_PATH . 'include/load_prefs.php');

Changes to event_create.php

13,22c13,23
< require_once('calendar_data.php');
< require_once('functions.php');
< require_once('shared_functions.php');
< chdir('..');
< require_once('../src/validate.php');
< require_once('../functions/strings.php');
< require_once('../functions/date.php');
< require_once('../config/config.php');
< require_once('../functions/page_header.php');
< require_once('../src/load_prefs.php');
---
> define('SM_PATH','../../');
>
> require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
> require_once(SM_PATH . 'plugins/calendar/functions.php');
> require_once(SM_PATH . 'plugins/calendar/shared_functions.php');
> require_once(SM_PATH . 'include/validate.php');
> require_once(SM_PATH . 'functions/strings.php');
> require_once(SM_PATH . 'functions/date.php');
> require_once(SM_PATH . 'config/config.php');
> require_once(SM_PATH . 'functions/page_header.php');
> require_once(SM_PATH . 'include/load_prefs.php');

Changes to event_delete.php

13,22c13,23
< require_once('calendar_data.php');
< require_once('functions.php');
< require_once('shared_functions.php');
< chdir('..');
< require_once('../src/validate.php');
< require_once('../functions/strings.php');
< require_once('../functions/date.php');
< require_once('../config/config.php');
< require_once('../functions/page_header.php');
< require_once('../src/load_prefs.php');
---
> define('SM_PATH','../../');
>
> require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
> require_once(SM_PATH . 'plugins/calendar/functions.php');
> require_once(SM_PATH . 'plugins/calendar/shared_functions.php');
> require_once(SM_PATH . 'include/validate.php');
> require_once(SM_PATH . 'functions/strings.php');
> require_once(SM_PATH . 'functions/date.php');
> require_once(SM_PATH . 'config/config.php');
> require_once(SM_PATH . 'functions/page_header.php');
> require_once(SM_PATH . 'include/load_prefs.php');

Changes to event_edit.php

13,22c13,23
< require_once('calendar_data.php');
< require_once('functions.php');
< require_once('shared_functions.php');
< chdir('..');
< require_once('../src/validate.php');
< require_once('../functions/strings.php');
< require_once('../functions/date.php');
< require_once('../config/config.php');
< require_once('../functions/page_header.php');
< require_once('../src/load_prefs.php');
---
> define('SM_PATH','../../');
>
> require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
> require_once(SM_PATH . 'plugins/calendar/functions.php');
> require_once(SM_PATH . 'plugins/calendar/shared_functions.php');
> require_once(SM_PATH . 'include/validate.php');
> require_once(SM_PATH . 'functions/strings.php');
> require_once(SM_PATH . 'functions/date.php');
> require_once(SM_PATH . 'config/config.php');
> require_once(SM_PATH . 'functions/page_header.php');
> require_once(SM_PATH . 'include/load_prefs.php');

Changes to functions.php


Changes to index.php


Changes to setup.php


Changes to shared_functions.php

-- 
---------------------------------------------------
| Caleb Phillips
| The Studio Resource
| IT Specialist
|
| Handcrafted for you in Squirrel-Mail
----------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to