|
@@ -20,29 +20,6 @@ if (! defined('SM_PATH')) define('SM_PATH','../');
|
|
|
*/
|
|
|
include_once(SM_PATH . 'functions/plugin.php');
|
|
|
|
|
|
-/**
|
|
|
- * Find out where SquirrelMail lives and try to be smart about it.
|
|
|
- * The only problem would be when SquirrelMail lives in directories
|
|
|
- * called "src", "functions", or "plugins", but people who do that need
|
|
|
- * to be beaten with a steel pipe anyway.
|
|
|
- *
|
|
|
- * @return string the base uri of SquirrelMail installation.
|
|
|
- * @since 1.2.6
|
|
|
- */
|
|
|
-function sqm_baseuri(){
|
|
|
- global $base_uri, $PHP_SELF;
|
|
|
- /**
|
|
|
- * If it is in the session, just return it.
|
|
|
- */
|
|
|
- if (isset($base_uri)){
|
|
|
- return $base_uri;
|
|
|
- }
|
|
|
- $dirs = array('|src/.*|', '|plugins/.*|', '|functions/.*|');
|
|
|
- $repl = array('', '', '');
|
|
|
- $base_uri = preg_replace($dirs, $repl, $PHP_SELF);
|
|
|
- return $base_uri;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Displays error message and URL to message listing
|
|
|
* @param string $message error message
|
|
@@ -219,4 +196,4 @@ function error_option_save($message) {
|
|
|
$optpage_save_error=array_merge($optpage_save_error,array($message));
|
|
|
}
|
|
|
// vim: et ts=4
|
|
|
-?>
|
|
|
+?>
|