File/nasmail/plugins/administrator/functions.php

Description

Administrator plugin - Functions

  • version: $Id: functions.php 446 2007-06-26 10:05:39Z tokul $
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Functions
admin_check_delimiter (line 229)

Fixes trailing delimiter issues in paths

  • return: path with trailing delimiter
string admin_check_delimiter (string $path)
  • string $path: Path which should be checked for trailing delimiter
change_to_rel_path (line 146)

Change paths containing SM_PATH to admin-friendly paths

relative to the config dir, i.e.: '' --> <empty string> SM_PATH . 'images/logo.gif' --> ../images/logo.gif '/absolute/path/logo.gif' --> /absolute/path/logo.gif 'http://whatever/' --> http://whatever Note removal of quotes in returned value

  • return: new path
string change_to_rel_path (string $old_path)
  • string $old_path: path that has to be converted
change_to_sm_path (line 167)

Change relative path (relative to config dir) to

internal SM_PATH, i.e.: empty_string --> '' ../images/logo.gif --> SM_PATH . 'images/logo.gif' images/logo.gif --> SM_PATH . 'config/images/logo.gif' /absolute/path/logo.gif --> '/absolute/path/logo.gif' http://whatever/ --> 'http://whatever'

  • return: new path
string change_to_sm_path (string $old_path, [boolean $allow_data_dir = false])
  • string $old_path: path that has to be converted
  • boolean $allow_data_dir: allow_data_dir (since 1.2) allow use of $data_dir variable in setting.
parseConfig (line 16)

parse the config file

void parseConfig (string $cfg_file)
  • string $cfg_file

Documentation generated on Sun, 22 Nov 2009 17:36:31 +0200 by phpDocumentor 1.4.3