mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Added new e_CURDIR constant. Needed it for use with plugins that can be installed in *anyDir*
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.48 $
|
| $Revision: 1.49 $
|
||||||
| $Date: 2008-01-27 11:02:33 $
|
| $Date: 2008-02-17 05:01:28 $
|
||||||
| $Author: e107coders $
|
| $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']));
|
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
|
// 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.
|
// Now matches RFC 2616 (sec 3.2): case insensitive, https/:443 and http/:80 are equivalent.
|
||||||
|
Reference in New Issue
Block a user