Our Sponsors



PHP Nuke themes, stock photos, icons, drupal themes and more.
Custom jobs at low cost, free lancers and service buyers.



Western Studios :: View topic - integration of SquirrelMail with phpnuke
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


integration of SquirrelMail with phpnuke



 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> Hack and Mods
Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 6
Next Group: 44 posts
Mgccl wrote:

Quote:
Enclosed are the files to allow better integration of SquirrelMail with
PHP-Nuke. Integration may be a bit of an exaggeration, but it allows one
to use SquirrelMail instead of the WebMail that comes with PHP-Nuke.

The enclosed files are all that I have in the WebMail modules directory.
Everything else I deleted (especially the attachments directory).
Note that I did not include the contents of the images and language directories
in this zip, but I did leave them intact on my system.

I only modified 2 files - index.php and mailheader.php

In the index.php file, I changed it to call SquirrelMail -
echo "<center><form method=\"post\" action=\"/webmail/src/redirect.php\">";

Note also that I wanted to use the stored values for email username and
password that get set in the PHP-Nuke Webmail system. So I just query those
out of the database and use them (in clear text using a hidden html item).

As in:
echo "<input type=\"hidden\" name=\"login_username\" value=\"$username\">";
echo "<input type=\"hidden\" name=\"secretkey\" value=\"$password\">";

This is not the most secure way to do this, but it was the least amount of
coding. If this is a problem, I would suggest using the SquirrelMail login
php file instead.

You will notice that I also removed the ability to have WebMail use multiple
email accounts. I still use the same settings for defining the webmail, but
I assume that the users will be using a specific name for the WebMail account.
We use "school", (since this was put together for the faculty and staff at our
elementary and Middle School). So the sql changed in the index.php to:
$query = "select * from $prefix"._popsettings." where uid = $userid and account='school'";

You can of couse make it whatever you would like. You could also allow multiple
accounts as well using the old sql syntax and provide a listing several
different choices to the user. I chose to simply list the number of messages
in the inbox, and providing a single button to click to go to the inbox using
SquirrelMail.

I also changed the mailheader.php file to remove the compose, inbox and exit
items from the Webmail page. They were either redundant or no longer needed.

Finally, there is a replacement script for the SquirrelMail signout.php file.
This file goes in the src directory in your WebMail install.
The changes in signout.php prevent users from inadvertantly siging out of the
PHPNuke site and allowing users to go back in the browser history and getting
back in to SquirrelMail without a password.

Note that you can also set the variable $signout in the config.php file.
This will bypass the signout.php file and return the user to the pathname specified.
So if you set $signout = '/' then when they click the signout url in SquirrelMail,
they will be returned to the home page of PHP-Nuke.

Hope this makes sense.

Enjoy.

Tom yarmas
tyarmas@yahoo.com

it's the quote from the squirrelmail module, I got it, but never used it
think original webmail are the best

Posted: Thu Feb 23, 2006 11:34 am


WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 41
Next Group: 9 posts
zeus wrote:

It would be nice if your can integrate SquirrelMail to phpnuke. I havn't seen any mod like that yet. But keep SPAMERS in mind. Cuz once you open it for your register members/guests, they are going to use the mailing system to spam people which is not good for your site and your host.

Thats one of the main reason why you won't see many developers working on phpnuke e-mail module.

Posted: Sun Feb 26, 2006 9:30 pm

Western Studios

X-perienced
X-perienced
~PHP Nuke User~


Posts: 125
Next Group: 25 posts
shay wrote:

Thanks for posting this. However i am too afarid of what the spammers may do that is just the reason why i have added a e-mail system for users on to my site.

Posted: Sun Mar 05, 2006 3:55 pm

Post new topic   Reply to topic    Western Studios Forum Index -> PHP Nuke -> Hack and Mods All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts I'm back 1 xtrax 699 Sat Mar 04, 2006 7:18 pm
admin View latest post
No new posts Ajax - The past is back 0 admin 707 Wed Nov 16, 2005 2:53 pm
admin View latest post
No new posts We're back 0 admin 630 Thu May 05, 2005 8:04 am
admin View latest post
No new posts Site back online 2 admin 821 Tue Apr 05, 2005 10:36 am
admin View latest post
No new posts Downloads will be back soon 1 admin 758 Wed Feb 23, 2005 2:36 pm
admin View latest post
 
Forums ©