plugin:websvn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:websvn [2010-10-03 15:19] – HåkanS | plugin:websvn [2023-12-21 19:02] (current) – new download url Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : foss@stefanix.net | email : foss@stefanix.net | ||
Line 13: | Line 13: | ||
tags : links, include, repository | tags : links, include, repository | ||
- | downloadurl: | + | downloadurl: |
- | ---- | + | bugtracker : |
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | screenshot_img: | ||
+ | ---- | ||
===== Description ===== | ===== Description ===== | ||
- | This plugin offers a convenient way to reference files in a Subversion repository. It assumes that the repository is made web-accessible with [[http:// | ||
- | |||
+ | This plugin offers a convenient way to reference files in a Subversion repository. It assumes that the repository is made web-accessible with [[http:// | ||
===== Usage ===== | ===== Usage ===== | ||
+ | |||
**Link** to a particular file in your WebSVN-served subversion repository. | **Link** to a particular file in your WebSVN-served subversion repository. | ||
- | < | + | |
- | <websvn repository/ | + | |
- | </code> | + | |
Alternatively the file listing can be **iframe-inlined** by adding a trailing space to the path: | Alternatively the file listing can be **iframe-inlined** by adding a trailing space to the path: | ||
- | < | + | |
- | <websvn repository/ | + | |
- | </ | + | |
- | + | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
Point your Plugin Manager to this url: [[http:// | Point your Plugin Manager to this url: [[http:// | ||
Line 44: | Line 43: | ||
===== Source Code ===== | ===== Source Code ===== | ||
- | syntax.php | ||
- | <code php> | + | |
+ | < | ||
<?php | <?php | ||
/** | /** | ||
Line 64: | Line 63: | ||
// | // | ||
global $websvn_root_url; | global $websvn_root_url; | ||
- | $websvn_root_url = " | + | $websvn_root_url = " |
// | // | ||
Line 85: | Line 84: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 116: | Line 115: | ||
* Handle the match | * Handle the match | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
$match = html_entity_decode(substr($match, | $match = html_entity_decode(substr($match, | ||
if(substr($match, | if(substr($match, | ||
Line 134: | Line 133: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
global $websvn_root_url; | global $websvn_root_url; | ||
list($repository, | list($repository, |
plugin/websvn.1286111996.txt.gz · Last modified: 2010-10-03 15:19 by HåkanS