mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
Added new e_CURDIR constant. Needed it for use with plugins that can be installed in *anyDir*
This commit is contained in:
parent
2f33412cea
commit
e4861f5d8f
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
| $Revision: 1.48 $
|
||||
| $Date: 2008-01-27 11:02:33 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.49 $
|
||||
| $Date: 2008-02-17 05:01:28 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
//
|
||||
@ -430,6 +430,8 @@ if ($pref['user_tracking'] == "session") {
|
||||
}
|
||||
|
||||
define("e_SELF", ($pref['ssl_enabled'] == '1' ? "https://".$_SERVER['HTTP_HOST'] : "http://".$_SERVER['HTTP_HOST']) . ($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME']));
|
||||
$parts = pathinfo(e_SELF);
|
||||
define('e_CURDIR', substr($parts['dirname'], strrpos($parts['dirname'], '/')+1));
|
||||
|
||||
// if the option to force users to use a particular url for the site is enabled, redirect users there as needed
|
||||
// Now matches RFC 2616 (sec 3.2): case insensitive, https/:443 and http/:80 are equivalent.
|
||||
|
Loading…
x
Reference in New Issue
Block a user