* @subpackage administrator
*/
+define('PAGE_NAME', 'administrator_options');
+
/**
* parse the config file
*
* empty_string --> ''
* ../images/logo.gif --> SM_PATH . 'images/logo.gif'
* images/logo.gif --> SM_PATH . 'config/images/logo.gif'
+ * C:/absolute/win/path --> 'C:/absolute/win/path'
* /absolute/path/logo.gif --> '/absolute/path/logo.gif'
* http://whatever/ --> 'http://whatever'
*
function change_to_sm_path($old_path) {
if ( $old_path === '' || $old_path == "''" ) {
return "''";
- } elseif ( preg_match("/^(\/|http)/", $old_path) ) {
+ } elseif ( preg_match("/^(\/|http)/", $old_path) ||
+ substr($old_path,1,2) == ':/' ) {
return "'" . $old_path . "'";
} elseif ( preg_match("/^(\$|SM_PATH)/", $old_path) ) {
return $old_path;
" * SquirrelMail Configuration File\n".
" * Created using the Administrator Plugin\n".
" */\n".
- "\n".
- "global \$version;\n" );
+ "\n" );
foreach ( $newcfg as $k => $v ) {
if ( $k{0} == '$' && $v <> '' || is_int($v)) {