X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fmailto.php;h=0ad9224fc78221582a25fff4f16f6307e63201ab;hb=48d015b4373687e272b90168c0859ab4617babc0;hp=51db8a3caaaf46f25de7c2d6a7b90f4716c73ae0;hpb=82d304a0501324b276cabab1870755d5352bd21c;p=squirrelmail.git diff --git a/src/mailto.php b/src/mailto.php index 51db8a3c..0ad9224f 100644 --- a/src/mailto.php +++ b/src/mailto.php @@ -3,9 +3,6 @@ /** * mailto.php -- mailto: url handler * - * Copyright (c) 1999-2004 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * This checks to see if we're logged in. If we are we open up a new * compose window for this email, otherwise we go to login.php * (the above functionality has been disabled, by default you are required to @@ -14,17 +11,19 @@ * Use the following url to use mailto: * http:////src/mailto.php?emailaddress=%1 * see ../contrib/squirrelmail.mailto.reg for a Windows Registry file - * $Id$ + * @copyright © 1999-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ * @package squirrelmail */ -/** Path for SquirrelMail required files. */ -define('SM_PATH','../'); +// reduce the included files in int.php +$bLogin = true; -/* SquirrelMail required files. */ -require_once(SM_PATH . 'config/config.php'); -require_once(SM_PATH . 'functions/global.php'); -require_once(SM_PATH . 'functions/strings.php'); +/** + * Include the SquirrelMail initialization file. + */ +require('../include/init.php'); /* Force users to login each time? */ $force_login = true; @@ -63,7 +62,6 @@ if(sqgetGlobalVar('emailaddress', $emailaddress)) { } $url = substr($url, 0, -1); } -sqsession_is_active(); if($force_login == false && sqsession_is_registered('user_is_logged_in')) { if($compose_only == true) { @@ -77,4 +75,5 @@ if($force_login == false && sqsession_is_registered('user_is_logged_in')) { session_write_close(); header('Location: ' . get_location() . '/' . $redirect); -?> + +?> \ No newline at end of file