b2evolution PHP Cross Reference Blogging Systems

Source: /inc/_ext/phpsvnclient/definitions.php - 71 lines - 4553 bytes - Summary - Text - Print

   1  <?php
   2  
   3  /*

   4   * **************************************************************************

   5   *   Copyright (C) 2007-2008 by Sixdegrees                                 *

   6   *   cesar@sixdegrees.com.br                                               *

   7   *   "Working with freedom"                                                *

   8   *   http://www.sixdegrees.com.br                                          *

   9   *                                                                         *

  10   *   Modified by Ethan Smith (ethan@3thirty.net), April 2008               *

  11   *      - Added definitions to fetch modified files with commit logs and   *

  12   *        for reading these filename                                       *

  13   *                                                                         *

  14   *   Permission is hereby granted, free of charge, to any person obtaining *

  15   *   a copy of this software and associated documentation files (the       *

  16   *   "Software"), to deal in the Software without restriction, including   *

  17   *   without limitation the rights to use, copy, modify, merge, publish,   *

  18   *   distribute, sublicense, and/or sell copies of the Software, and to    *

  19   *   permit persons to whom the Software is furnished to do so, subject to *

  20   *   the following conditions:                                             *

  21   *                                                                         *

  22   *   The above copyright notice and this permission notice shall be        *

  23   *   included in all copies or substantial portions of the Software.       *

  24   *                                                                         *

  25   *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *

  26   *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *

  27   *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*

  28   *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *

  29   *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *

  30   *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *

  31   *   OTHER DEALINGS IN THE SOFTWARE.                                       *

  32   * **************************************************************************

  33   */
  34  if( ! defined( 'EVO_MAIN_INIT' ) ) die( 'Please, do not access this page directly.' );
  35  
  36  define("PHPSVN_NORMAL_REQUEST", '<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop>
  37  <getlastmodified xmlns="DAV:"/> <checked-in xmlns="DAV:"/><version-name xmlns="DAV:"/><version-controlled-configuration xmlns="DAV:"/><resourcetype xmlns="DAV:"/><baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/><repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/></prop></propfind>');
  38  define("PHPSVN_GET_FILE_SIZE", '<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop>
  39  <getcontentlength xmlns="DAV:"/><version-controlled-configuration xmlns="DAV:"/><resourcetype xmlns="DAV:"/><baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/><repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/></prop></propfind>');
  40  define("PHPSVN_VERSION_REQUEST", '<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><checked-in xmlns="DAV:"/></prop></propfind>');
  41  define("PHPSVN_LOGS_REQUEST", '<?xml version="1.0" encoding="utf-8"?> <S:log-report xmlns:S="svn:"> <S:start-revision>%d</S:start-revision><S:end-revision>%d</S:end-revision><S:path></S:path><S:discover-changed-paths/></S:log-report>');
  42  
  43  define("SVN_LAST_MODIFIED", "lp1:getlastmodified");
  44  define("SVN_URL", "D:href");
  45  define("SVN_RELATIVE_URL", "lp3:baseline-relative-path");
  46  define("SVN_FILE_ID", "lp3:repository-uuid");
  47  define("SVN_STATUS", "D:status");
  48  define("SVN_IN_FILE", "D:propstat");
  49  define("SVN_FILE", "D:response");
  50  
  51  define("SVN_LOGS_BEGINGS", "S:log-item");
  52  define("SVN_LOGS_VERSION", "D:version-name");
  53  define("SVN_LOGS_AUTHOR", "D:creator-displayname");
  54  define("SVN_LOGS_DATE", "S:date");
  55  
  56  // file changes. Note that we grouping ALL changed files together,

  57  // so we will list deleted and renamed files here as well

  58  define("SVN_LOGS_MODIFIED_FILES", "S:modified-path");
  59  define("SVN_LOGS_ADDED_FILES", "S:added-path");
  60  define("SVN_LOGS_DELETED_FILES", "S:deleted-path");
  61  define("SVN_LOGS_RENAMED_FILES", "S:replaced-path");
  62  
  63  define("SVN_LOGS_COMMENT", "D:comment");
  64  
  65  define("NOT_FOUND", 2);
  66  define("AUTH_REQUIRED", 3);
  67  define("UNKNOWN_ERROR", 4);
  68  define("NO_ERROR", 1)
  69  
  70  //test definitions

  71  ?>

title

Description

title

Description

title

Description

title

title

Body