/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright ©2006 by sTEFANs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* This file contains common definitions and parameters.
* Is usually not topic of customisation. The only exception
* is the CSS style sheet (CSS_STYLESHEET) that should be used.
* @copyright Copyright ©2006 by sTEFANs
* @license http://opensource.org/licenses/lgpl-license.php GNU General Public License
include_once('translation_keys.inc.php');
/** The one and only include for translation functions. */
include_once('translation.inc.php');
/** Common utility functions */
include_once('utils.inc.php');
* CSS style sheet to be used for SWC. This value
* defines the path that points the stylesheet.
define('CSS_STYLESHEET', 'styles/default.css');
* Numeric values of array indexes
* used for command execution result
* array and action arrays.
* Index of commandline text within
* SVN excution result array.
* Index of standard output array
* within SVN excution result array.
* Index of error output array
* within SVN excution result array.
* Index of command result code
* within SVN excution result array.
* Defined indexes for $_SESSION.
define('IDX_ROOT_URL', 'root_url');
* @name IDX_MAIN_FRAME_SRC
define('IDX_MAIN_FRAME_SRC', 'main_frame_src');
* @name IDX_CTRL_FRAME_SRC
define('IDX_CTRL_FRAME_SRC', 'ctrl_frame_src');
define('IDX_CONFIG_FILE', 'config');
define('IDX_SEL_PROJECT', 'selected_project');
define('IDX_ACTION', 'action');
* @name IDX_ACTION_COMMAND
define('IDX_ACTION_COMMAND', 'action_command');
* @name IDX_ACTION_CREATE_ARCHIVE
define('IDX_ACTION_CREATE_ARCHIVE', 'action_create_archive');
define('IDX_EXEC_RES', 'execution_results');
define('IDX_SWITCH_PATH', 'switch');
* @name IDX_REUSE_SESSION
define('IDX_REUSE_SESSION', 'reuse');
* @name IDX_USER_SETTINGS
define('IDX_USER_SETTINGS', 'user_settings');
* Defined indexes of user settings array.
* @name IDX_SETTINGS_VERSION
define('IDX_SETTINGS_VERSION', 'settings_version');
* @name IDX_SETTINGS_WINDOWS
define('IDX_SETTINGS_WINDOWS', 'settings_windows');
* @name OPT_PIN_PROJECT_PAGE
define('OPT_PIN_PROJECT_PAGE', 'pin_project_page');
* @name OPT_MINIMIZE_CTRL_BAR
define('OPT_MINIMIZE_CTRL_BAR', 'minimize_control_bar');
* @name OPT_WEBSPACE_AUTO_UPDATE
define('OPT_WEBSPACE_AUTO_UPDATE', 'auto_update_webspace');
* @name OPT_ALL_IN_ONE_WINDOW
define('OPT_ALL_IN_ONE_WINDOW', 'all_in_one_window');
* @name OPT_SEPARATE_RESULT_WINDOW
define('OPT_SEPARATE_RESULT_WINDOW', 'separate_result_window');
* @name OPT_SEPARATE_MAIN_WINDOW
define('OPT_SEPARATE_MAIN_WINDOW', 'separate_main_window');
define('OPT_FRAME_WIDTH', 'frame_width');
define('OPT_FRAME_HEIGHT', 'frame_height');
* @name OPT_SHOW_SVN_CMD_BAR
define('OPT_SHOW_SVN_CMD_BAR', 'show_svn_cmd_bar');
* @name OPT_SHOW_SVN_SWITCH_BAR
define('OPT_SHOW_SVN_SWITCH_BAR', 'show_svn_switch_bar');
* @name OPT_OVERWRITE_ARCHIVE
define('OPT_OVERWRITE_ARCHIVE', 'overwrite_archive');
* Defined SVN actions and commands
* used by svn_executor.inc.php.
define('ACTION_STATUS', 'status');
define('ACTION_INFO', 'info');
define('ACTION_UPDATE', 'update');
define('ACTION_CLEANUP', 'cleanup');
define('ACTION_ARCHIVE', 'archive');
define('ACTION_SWITCH', 'switch');
define('ACTION_CHECKOUT', 'checkout');
define('ACTION_SVN_CMD', 'svn_cmd');
define('ACTION_SVN_HELP', 'svn_help');
define('ACTION_LIST_REPOSITORY', 'list_repository');
* @name ACTION_CREATE_ARCHIVE
define('ACTION_CREATE_ARCHIVE', 'create_archive');
* Defined paths and include files that could change.
* Path to default <b>SwcFactoryConfig</b>.
define('STD_CONFIG_FILE', 'config/std_config_factory.inc.php');
* Path to default main frame that prints some
define('STD_MAIN_FRAME', 'default_main_frame.php');
* Path to control content page.
define('STD_CTRL_CONTENT', 'inc/swc_control_content.inc.php');
* Path to detail content.
* @name STD_DETAILS_CONTENT
define('STD_DETAILS_CONTENT', 'inc/swc_details_content.inc.php');
* Path to archive content.
* @name STD_ARCHIVE_CONTENT
define('STD_ARCHIVE_CONTENT', 'inc/swc_archive_content.inc.php');
* Path to separate details page.
define('STD_DETAILS_PAGE', 'swc_details_page.php');
* Path to default help page
define('STD_HELP_PAGE', 'swc_help_page.php');
* Path to default translation table
* @name STD_TRANSLATION_TABLE
define('STD_TRANSLATION_TABLE', '_default.php');
* Default path for resources.
* @name STD_RESOURCE_PATH
define('STD_RESOURCE_PATH', 'inc/resources/');