sTEFANs Subversion Web Contol (SWC)
Inc
[ class tree: Swc ] [ index: Swc ] [ all elements ]

Source for file var.inc.php

Documentation is available at var.inc.php

  1. <?php
  2. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. SVN Web Control
  4. Copyright ©2006 by sTEFANs
  5. Created on 25.02.2006
  6. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330,
  20. Boston, MA 02111-1307, USA.
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. */
  23.  
  24. /**
  25.  * This file contains common definitions and parameters.
  26.  * Is usually not topic of customisation. The only exception
  27.  * is the CSS style sheet (CSS_STYLESHEET) that should be used.
  28.  * 
  29.  * @package Swc
  30.  * @subpackage Inc
  31.  * @author Stefan Schraml
  32.  * @copyright Copyright ©2006 by sTEFANs
  33.  * @license http://opensource.org/licenses/lgpl-license.php GNU General Public License
  34.  * @version v1.0.0
  35.  * @since v1.0.0
  36.  */
  37.  
  38. /** Translation keys. */
  39. include_once('translation_keys.inc.php');
  40. /** The one and only include for translation functions. */
  41. include_once('translation.inc.php');
  42. /** Common utility functions */
  43. include_once('utils.inc.php');
  44.  
  45. /**
  46.  * CSS style sheet to be used for SWC. This value
  47.  * defines the path that points the stylesheet.
  48.  * @name CSS_STYLESHEET
  49.  * @since v1.0.0
  50.  */
  51. define('CSS_STYLESHEET', 'styles/default.css');
  52.  
  53. /**#@+
  54.  * Numeric values of array indexes
  55.  * used for command execution result
  56.  * array and action arrays.
  57.  */
  58.  
  59. /**
  60.  * Index of commandline text within
  61.  * SVN excution result array.
  62.  * @name IDX_CMDLINE
  63.  * @since v1.0.0
  64.  */
  65. define('IDX_CMDLINE', 0);
  66.  
  67. /**
  68.  * Index of standard output array
  69.  * within SVN excution result array.
  70.  * @name IDX_STDOUT
  71.  * @since v1.0.0
  72.  */
  73. define('IDX_STDOUT', 1);
  74.  
  75. /**
  76.  * Index of error output array
  77.  * within SVN excution result array.
  78.  * @name IDX_ERROUT
  79.  * @since v1.0.0
  80.  */
  81. define('IDX_ERROUT', 2);
  82.  
  83. /**
  84.  * Index of command result code
  85.  * within SVN excution result array.
  86.  * @name IDX_CMD_RC
  87.  * @since v1.0.0
  88.  */
  89. define('IDX_CMD_RC', 3);
  90.  
  91. /**
  92.  * Title text index of
  93.  * SVN command.
  94.  * @name IDX_TITLE
  95.  * @since v1.0.0
  96.  */
  97. define('IDX_TITLE', 4);
  98.  
  99. /**
  100.  * Name text index
  101.  * @name IDX_NAME
  102.  * @since v1.0.0
  103.  */
  104. define('IDX_NAME', 0);
  105.  
  106. /**
  107.  * Value index
  108.  * @name IDX_VALUE
  109.  * @since v1.0.0
  110.  */
  111. define('IDX_VALUE', 1);
  112. /**#@-*/
  113.  
  114.  
  115.  * Defined indexes for $_SESSION.
  116.  */
  117.  
  118. /**
  119.  * @name IDX_ROOT_URL
  120.  * @since v1.0.0
  121.  */
  122. define('IDX_ROOT_URL', 'root_url');
  123.  
  124. /**
  125.  * @name IDX_MAIN_FRAME_SRC
  126.  * @since v1.0.0
  127.  */
  128. define('IDX_MAIN_FRAME_SRC', 'main_frame_src');
  129.  
  130. /**
  131.  * @name IDX_CTRL_FRAME_SRC
  132.  * @since v1.0.0
  133.  */
  134. define('IDX_CTRL_FRAME_SRC', 'ctrl_frame_src');
  135.  
  136. /**
  137.  * @name IDX_CONFIG_FILE
  138.  * @since v1.0.0
  139.  */
  140. define('IDX_CONFIG_FILE', 'config');
  141.  
  142. /**
  143.  * @name IDX_SEL_PROJECT
  144.  * @since v1.0.0
  145.  */
  146. define('IDX_SEL_PROJECT', 'selected_project');
  147.  
  148. /**
  149.  * @name IDX_ACTION
  150.  * @since v1.0.0
  151.  */
  152. define('IDX_ACTION', 'action');
  153.  
  154. /**
  155.  * @name IDX_ACTION_COMMAND
  156.  * @since v1.0.0
  157.  */
  158. define('IDX_ACTION_COMMAND', 'action_command');
  159.  
  160. /**
  161.  * @name IDX_ACTION_CREATE_ARCHIVE
  162.  * @since v1.1.0
  163.  */
  164. define('IDX_ACTION_CREATE_ARCHIVE', 'action_create_archive');
  165.  
  166. /**
  167.  * @name IDX_EXEC_RES
  168.  * @since v1.0.0
  169.  */
  170. define('IDX_EXEC_RES', 'execution_results');
  171.  
  172. /**
  173.  * @name IDX_SWITCH_PATH
  174.  * @since v1.0.0
  175.  */
  176. define('IDX_SWITCH_PATH', 'switch');
  177.  
  178. /**
  179.  * @name IDX_REUSE_SESSION
  180.  * @since v1.0.0
  181.  */
  182. define('IDX_REUSE_SESSION', 'reuse');
  183.  
  184. /**
  185.  * @name IDX_USER_SETTINGS
  186.  * @since v1.0.0
  187.  */
  188. define('IDX_USER_SETTINGS', 'user_settings');
  189. /**#@-*/
  190.  
  191.  
  192.  * Defined indexes of user settings array.
  193.  */
  194.  
  195. /**
  196.  * @name IDX_SETTINGS_VERSION
  197.  * @since v1.0.0
  198.  */
  199. define('IDX_SETTINGS_VERSION', 'settings_version');
  200.  
  201. /**
  202.  * @name IDX_SETTINGS_WINDOWS
  203.  * @since v1.0.0
  204.  */
  205. define('IDX_SETTINGS_WINDOWS', 'settings_windows');
  206.  
  207. /**
  208.  * @name OPT_PIN_PROJECT_PAGE
  209.  * @since v1.0.0
  210.  */
  211. define('OPT_PIN_PROJECT_PAGE', 'pin_project_page');
  212.  
  213. /**
  214.  * @name OPT_MINIMIZE_CTRL_BAR
  215.  * @since v1.0.0
  216.  */
  217. define('OPT_MINIMIZE_CTRL_BAR', 'minimize_control_bar');
  218.  
  219. /**
  220.  * @name OPT_WEBSPACE_AUTO_UPDATE
  221.  * @since v1.0.0
  222.  */
  223. define('OPT_WEBSPACE_AUTO_UPDATE', 'auto_update_webspace');
  224.  
  225. /**
  226.  * @name OPT_ALL_IN_ONE_WINDOW
  227.  * @since v1.0.0
  228.  */
  229. define('OPT_ALL_IN_ONE_WINDOW', 'all_in_one_window');
  230.  
  231. /**
  232.  * @name OPT_SEPARATE_RESULT_WINDOW
  233.  * @since v1.0.0
  234.  */
  235. define('OPT_SEPARATE_RESULT_WINDOW', 'separate_result_window');
  236.  
  237. /**
  238.  * @name OPT_SEPARATE_MAIN_WINDOW
  239.  * @since v1.0.0
  240.  */
  241. define('OPT_SEPARATE_MAIN_WINDOW', 'separate_main_window');
  242.  
  243. /**
  244.  * @name OPT_FRAME_WIDTH
  245.  * @since v1.0.0
  246.  */
  247. define('OPT_FRAME_WIDTH', 'frame_width');
  248.  
  249. /**
  250.  * @name OPT_FRAME_HEIGHT
  251.  * @since v1.0.0
  252.  */
  253. define('OPT_FRAME_HEIGHT', 'frame_height');
  254.  
  255. /**
  256.  * @name OPT_SHOW_SVN_CMD_BAR
  257.  * @since v1.0.0
  258.  */
  259. define('OPT_SHOW_SVN_CMD_BAR', 'show_svn_cmd_bar');
  260.  
  261. /**
  262.  * @name OPT_SHOW_SVN_SWITCH_BAR
  263.  * @since v1.0.0
  264.  */
  265. define('OPT_SHOW_SVN_SWITCH_BAR', 'show_svn_switch_bar');
  266.  
  267. /**
  268.  * @name OPT_OVERWRITE_ARCHIVE
  269.  * @since v1.0.0
  270.  */
  271. define('OPT_OVERWRITE_ARCHIVE', 'overwrite_archive');
  272. /**#@-*/
  273.  
  274.  
  275.  * Defined SVN actions and commands
  276.  * used by svn_executor.inc.php.
  277.  */
  278.  
  279. /**
  280.  * @name ACTION_STATUS
  281.  * @since v1.0.0
  282.  */
  283. define('ACTION_STATUS', 'status');
  284.  
  285. /**
  286.  * @name ACTION_LOG
  287.  * @since v1.0.0
  288.  */
  289. define('ACTION_LOG', 'log');
  290.  
  291. /**
  292.  * @name ACTION_INFO
  293.  * @since v1.0.0
  294.  */
  295. define('ACTION_INFO', 'info');
  296.  
  297. /**
  298.  * @name ACTION_UPDATE
  299.  * @since v1.0.0
  300.  */
  301. define('ACTION_UPDATE', 'update');
  302.  
  303. /**
  304.  * @name ACTION_CLEANUP
  305.  * @since v1.0.0
  306.  */
  307. define('ACTION_CLEANUP', 'cleanup');
  308.  
  309. /**
  310.  * @name ACTION_ARCHIVE
  311.  * @since v1.0.0
  312.  */
  313. define('ACTION_ARCHIVE', 'archive');
  314.  
  315. /**
  316.  * @name ACTION_SWITCH
  317.  * @since v1.0.0
  318.  */
  319. define('ACTION_SWITCH', 'switch');
  320.  
  321. /**
  322.  * @name ACTION_CHECKOUT
  323.  * @since v1.0.0
  324.  */
  325. define('ACTION_CHECKOUT', 'checkout');
  326.  
  327. /**
  328.  * @name ACTION_SVN_CMD
  329.  * @since v1.0.0
  330.  */
  331. define('ACTION_SVN_CMD', 'svn_cmd');
  332.  
  333. /**
  334.  * @name ACTION_SVN_HELP
  335.  * @since v1.0.0
  336.  */
  337. define('ACTION_SVN_HELP', 'svn_help');
  338.  
  339. /**
  340.  * @name ACTION_SVN_HELP
  341.  * @since v1.0.0
  342.  */
  343. define('ACTION_LIST_REPOSITORY', 'list_repository');
  344.  
  345. /**
  346.  * @name ACTION_CREATE_ARCHIVE
  347.  * @since v1.1.0
  348.  */
  349. define('ACTION_CREATE_ARCHIVE', 'create_archive');
  350. /**#@-*/
  351.  
  352.  
  353.  * Defined paths and include files that could change.
  354.  */
  355.  
  356. /**
  357.  * Path to default <b>SwcFactoryConfig</b>.
  358.  * @name STD_CONFIG_FILE
  359.  * @since v1.0.0
  360.  */
  361. define('STD_CONFIG_FILE', 'config/std_config_factory.inc.php');
  362.  
  363. /**
  364.  * Path to default main frame that prints some
  365.  * error messages.
  366.  * @name STD_MAIN_FRAME
  367.  * @since v1.0.0
  368.  */
  369. define('STD_MAIN_FRAME', 'default_main_frame.php');
  370.  
  371. /**
  372.  * Path to control content page.
  373.  * @name STD_CTRL_CONTENT
  374.  * @since v1.0.0
  375.  */
  376. define('STD_CTRL_CONTENT', 'inc/swc_control_content.inc.php');
  377.  
  378. /**
  379.  * Path to detail content.
  380.  * @name STD_DETAILS_CONTENT
  381.  * @since v1.0.0
  382.  */
  383. define('STD_DETAILS_CONTENT', 'inc/swc_details_content.inc.php');
  384. /**
  385.  * Path to archive content.
  386.  * @name STD_ARCHIVE_CONTENT
  387.  * @since v1.0.0
  388.  */
  389. define('STD_ARCHIVE_CONTENT', 'inc/swc_archive_content.inc.php');
  390.  
  391. /**
  392.  * Path to separate details page.
  393.  * @name STD_DETAILS_PAGE
  394.  * @since v1.0.0
  395.  */
  396. define('STD_DETAILS_PAGE', 'swc_details_page.php');
  397.  
  398. /**
  399.  * Path to default help page
  400.  * @name STD_HELP_PAGE
  401.  * @since v1.0.0
  402.  */
  403. define('STD_HELP_PAGE', 'swc_help_page.php');
  404.  
  405. /**
  406.  * Path to default translation table
  407.  * @name STD_TRANSLATION_TABLE
  408.  * @since v1.0.0
  409.  */
  410. define('STD_TRANSLATION_TABLE', '_default.php');
  411.  
  412. /**
  413.  * Default path for resources.
  414.  * @name STD_RESOURCE_PATH
  415.  * @since v1.0.0
  416.  */
  417. define('STD_RESOURCE_PATH', 'inc/resources/');
  418. /**#@-*/
  419.  
  420. ?>

Documentation generated on Fri, 03 Nov 2006 18:45:07 +0100 by phpDocumentor 1.3.0RC6
for sTEFANs POWERED BY eBC.bz