<?php
- /**
- ** index.php -- Displays the main frameset
- **
- ** Copyright (c) 1999-2004 The SquirrelMail development team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Redirects to the login page.
- **
- ** $Id$
- * @package plugins
- * @subpackage administrator
- **/
+/**
+ * index.php -- Displays the main frameset
+ *
+ * Copyright (c) 1999-2004 The SquirrelMail development team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Redirects to the login page.
+ *
+ * @version $Id$
+ * @package plugins
+ * @subpackage administrator
+ */
header("Location:../../src/login.php\n\n");
exit();
*
* Philippe Mingo
*
- * $Id$
+ * @version $Id$
* @package plugins
* @subpackage administrator
*/
/**
* parse the config file
+ *
+ * @param string $cfg_file
+ * @access private
*/
function parseConfig( $cfg_file ) {
}
}
-/* 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
-*/
+/**
+ * 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
+ *
+ * @param string $old_path path that has to be converted
+ * @return string new path
+ * @access private
+ */
function change_to_rel_path($old_path) {
$new_path = str_replace("SM_PATH . '", "../", $old_path);
$new_path = str_replace("../config/","", $new_path);
return $new_path;
}
-/* 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'
+/**
+ * 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'
+ *
+ * @param string $old_path path that has to be converted
+ * @return string new path
+ * @access private
*/
function change_to_sm_path($old_path) {
if ( $old_path === '' || $old_path == "''" ) {
*
* Administrator plugin. Allows remote administration. Philippe Mingo
*
- * $Id$
+ * @version $Id$
* @package plugins
* @subpackage administrator
*/
/** @ignore */
require_once(SM_PATH . 'plugins/administrator/auth.php');
+/**
+ * Init the plugin
+ * @access private
+ */
function squirrelmail_plugin_init_administrator() {
global $squirrelmail_plugin_hooks, $username;
}
}
+/**
+ * Register option block
+ * @access private
+ */
function squirrelmail_administrator_optpage_register_block() {
global $optpage_blocks;
global $AllowSpamFilters;
'js' => false
);
}
-?>
+?>
\ No newline at end of file